Skip to content

Commit

Permalink
20250204 - bounded estimation with random starts
Browse files Browse the repository at this point in the history
  • Loading branch information
isaactpetersen committed Feb 4, 2025
1 parent 1c3de81 commit 49738c1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions sem.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,25 @@ ggplot(plot_data, aes(x = Murder, y = predicted_slopes)) +
theme_classic()
```

# Bounded Estimation with Random Starts {#boundedEstimationRandomStarts}

For more info, see De Jonckere and Rosseel (2022, 2025).

```{r}
HS.model <- '
visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9
'
fit <- cfa(
HS.model,
data = HolzingerSwineford1939,
bounds = "pos.var", # forces all variances of both observed and latent variables to be strictly nonnegative
rstarts = 10,
verbose = TRUE)
```

# Power Analysis {#powerAnalysis}

https://isaactpetersen.github.io/Principles-Psychological-Assessment/sem.html#monteCarloPowerAnalysis
Expand Down

0 comments on commit 49738c1

Please sign in to comment.