Skip to content

Commit 093957f

Browse files
20251106 - fixes
1 parent 216e11c commit 093957f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sem.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ To generate the syntax for a latent change score model, we use the [lcsm](https:
12441244

12451245
```{r}
12461246
bivariateLCSM_syntax <- specify_bi_lcsm(
1247-
timepoints = 10,
1247+
timepoints = 3,
12481248
var_x = "x",
12491249
model_x = list(
12501250
alpha_constant = TRUE, # alpha = intercept (constant change factor)
@@ -1274,7 +1274,7 @@ bivariateLCSM_fit <- fit_bi_lcsm(
12741274
model_x = list(
12751275
alpha_constant = TRUE, # alpha = intercept (constant change factor)
12761276
beta = TRUE, # beta = proportional change factor (latent true score predicting its change score)
1277-
phi = FALSE), # phi = autoregression of change scores
1277+
phi = TRUE), # phi = autoregression of change scores
12781278
model_y = list(
12791279
alpha_constant = TRUE, # alpha = intercept (constant change factor)
12801280
beta = TRUE, # beta = proportional change factor (latent true score predicting its change score)
@@ -1350,7 +1350,7 @@ plot_lcsm(
13501350
13511351
lavaanPlot::lavaanPlot2(
13521352
bivariateLCSM_fit,
1353-
#stand = TRUE, # currently throws error; uncomment out when fixed: https://github.com/alishinski/lavaanPlot/issues/52
1353+
stand = TRUE, # currently throws error; uncomment out when fixed: https://github.com/alishinski/lavaanPlot/issues/52
13541354
coef_labels = TRUE)
13551355
```
13561356

0 commit comments

Comments
 (0)