# \donttest{
# Example usage:
LCGA_models <- fitLCGA(
data = symptoms,
outvar = paste('sx', seq(from = 0, to = 24, by = 6), sep = "_"),
catvar = FALSE,
idvar = "id",
starting_val = 500,
k = 3L,
timescores = seq(from = 0, to = 24, by = 6),
timescores_indiv = FALSE,
polynomial = 3,
output = c('TECH1', 'TECH14', 'SAMPSTAT', 'STANDARDIZED'),
wd = file.path('Results', 'Trajectories')
)
# Accessing the models:
LCGA_t <- LCGA_models[[1]] #with relaxed residual variance across time
LCGA_c <- LCGA_models[[2]] #with relaxed residual variance across class
LCGA_tc <- LCGA_models[[3]] #with relaxed residual variance across time and class
# }
Run the code above in your browser using DataLab