# \donttest{
head(SyntheticData)
LCVAR_outExample1 <- LCVAR(Data = SyntheticData,
yVars = 1:4, ID = 5, Beep = 9, Day = 10,
xContinuous = 7, xFactor = 8,
Clusters = 1:2, Lags = 1,
Center = TRUE,
Cores = 2, # Adapt to local machine
RndSeed = 123, Rand = 1, it = 25)
summary(LCVAR_outExample1)
summary(object = LCVAR_outExample1, show = "GNL", Number_of_Lags = 1)
coef(LCVAR_outExample1, Model = c(1, 1))
head(ExampleData)
LCVAR_outExample2 <- LCVAR(Data = ExampleData,
yVars = 1:4, ID = 5, Beep = 6,
xContinuous = 7, xFactor = 8,
Clusters = 1:2, Lags = 1:2,
Center = FALSE,
Cores = 2, RndSeed = 123,
Rand = 1,
it = 25, Conv = 1e-05)
summary(LCVAR_outExample2)
summary(object = LCVAR_outExample2, show = "GNL", Number_of_Lags = 1)
summary(object = LCVAR_outExample2, show = "GNC", Number_of_Clusters = 2)
coef(LCVAR_outExample2, Model = c(1, 1))
plot(LCVAR_outExample2, show = "specific", Model = c(1, 1))
LCVAR_outExample3 <- LCVAR(Data = ExampleData,
yVars = c("Item1", "Item2","Item3", "Item4"),
ID = "Person", Beep = "Timepoint",
xContinuous = "ContiniousVariable",
xFactor = "CategoricalVariable",
Clusters = 1:2, Lags = 1:2,
Center = FALSE,
Cores = 2, RndSeed = 123,
Rand = 1,
it = 25, Conv = 1e-05)
plot(LCVAR_outExample3, show = "GNL", Number_of_Lags = 1)
plot(LCVAR_outExample3, show = "GNC", Number_of_Clusters = 2)
# }
Run the code above in your browser using DataLab