Parametric Bootstrap Confidence Intervals for Y-M-X (Standardized)
Source:R/manCTMed-boot-para-std-y-m-x.R
BootParaStdYMX.RdThe function generates parametric bootstrap method confidence intervals for the mediation model \(Y \to M \to X\) (Standardized).
Arguments
- boot
R object. Output of the
BootPara()function.- theta_hat
R object. Output of the
ThetaHat()function.- delta_t
Numeric vector. Vector of time intervals.
- ncores
Positive integer. Number of cores to use.
See also
Other Confidence Interval Functions:
BootPara(),
BootParaStdXMY(),
BootParaStdXYM(),
BootParaXMY(),
BootParaXYM(),
BootParaYMX(),
DeltaStdXMY(),
DeltaStdXYM(),
DeltaStdYMX(),
DeltaXMY(),
DeltaXYM(),
DeltaYMX(),
IllustrationBootPara(),
MCStdXMY(),
MCStdXYM(),
MCStdYMX(),
MCXMY(),
MCXYM(),
MCYMX()
Examples
if (FALSE) { # \dontrun{
set.seed(42)
library(dynr)
sim <- GenData(taskid = 1)
data <- RandomMeasurement(sim)
fit <- FitDynr(data, taskid = 1)
boot <- BootPara(
fit = fit,
path = getwd(),
prefix = "pb",
taskid = 1,
B = 1000L
)
theta_hat <- ThetaHat(fit)
ci <- BootParaStdYMX(boot = boot, theta_hat = theta_hat)
plot(ci)
plot(ci, type = "bc")
} # }