Parametric Bootstrap Confidence Intervals for X-M-Y (Standardized)
Source:R/manCTMed-boot-para-std-x-m-y.R
BootParaStdXMY.Rd
The function generates parametric bootstrap method confidence intervals for the mediation model \(X \to M \to Y\) (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()
,
BootParaStdXYM()
,
BootParaStdYMX()
,
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 <- BootParaStdXMY(boot = boot, theta_hat = theta_hat)
plot(ci)
plot(ci, type = "bc")
} # }