Skip to contents

The function generates delta method confidence intervals for the mediation model \(X \to Y \to M\).

Usage

DeltaXYM(phi_hat, delta_t = 1:30)

Arguments

phi_hat

R object. Output of the PhiHat() function.

delta_t

Numeric vector. Vector of time intervals.

Examples

if (FALSE) { # \dontrun{
set.seed(42)
library(dynr)
sim <- GenData(taskid = 1)
data <- RandomMeasurement(sim)
fit <- FitDynr(data, taskid = 1)
phi_hat <- PhiHat(fit)
ci <- DeltaXYM(phi_hat)
plot(ci)
} # }