# Example usage:
GBTM_object <- LGMobject(
data = symptoms,
outvar = paste("sx", seq(from = 0, to = 24, by = 6), sep = "_"),
idvar = "id",
catvar = FALSE,
k = 3L,
starting_val = 500,
lgm_type = "gbtm",
polynomial = 3,
timescores = seq(from = 0, to = 24, by = 6),
timescores_indiv = FALSE,
output = c("TECH1", "TECH14", "SAMPSTAT", "STANDARDIZED"),
plot = "PLOT3",
save = "FSCORES"
)
Run the code above in your browser using DataLab