# Simple example with 2 phases, 10 timepoints per phase, and no covariates
result <- simulate_gls_once(
n_timepoints_per_phase = 10,
rho = 0.2,
betas = c("(Intercept)" = 0, "phase1" = 1),
formula = y ~ phase
)
Run the code above in your browser using DataLab