Parametric Bootstrap (Illustration)
Source:R/manCTMed-illustration-boot-para.R
IllustrationBootPara.Rd
The function generates simulated datasets
based on a fitted model and refits the model
to each generated dataset using the dynr
package.
Arguments
- fit
R object. Fitted CT-VAR model.
- path
Path to a directory to store bootstrap samples and estimates.
- prefix
Character string. Prefix used for the file names for the bootstrap samples and estimates.
- taskid
Positive integer. Task ID.
- B
Positive integer. Number of bootstrap samples.
- ncores
Positive integer. Number of cores to use.
- seed
Integer. Random seed.
See also
Other Confidence Interval Functions:
BootPara()
,
BootParaStdXMY()
,
BootParaStdXYM()
,
BootParaStdYMX()
,
BootParaXMY()
,
BootParaXYM()
,
BootParaYMX()
,
DeltaStdXMY()
,
DeltaStdXYM()
,
DeltaStdYMX()
,
DeltaXMY()
,
DeltaXYM()
,
DeltaYMX()
,
MCStdXMY()
,
MCStdXYM()
,
MCStdYMX()
,
MCXMY()
,
MCXYM()
,
MCYMX()
Examples
if (FALSE) { # \dontrun{
library(dynr)
sim <- IllustrationGenData(seed = 42)
data <- IllustrationPrepData(sim)
fit <- IllustrationFitDynr(data)
summary(fit)
IllustrationBootPara(
fit = fit,
path = getwd(),
prefix = "pb",
taskid = 1,
B = 1000L,
seed = 42
)
} # }