dr-JT / semoutput

Create nice looking output for CFA and SEM analyses using lavaan and semPlot packages
https://dr-jt.github.io/semoutput/
19 stars 3 forks source link

Error when running sem_tables(fit) #6

Closed over-soul closed 9 months ago

over-soul commented 9 months ago

Hello, I am getting this error:

> sem_tables(fit)
Error in if (x@call$se == "boot" | x@call$se == "bootstrap") { : 
  argument is of length zero

This is the full code:

# Specify the model parameters using intuitive syntax to write out equations
model <- ' visual  =~ x1 + x2 + x3 
              textual =~ x4 + x5 + x6
              speed   =~ x7 + x8 + x9 '

# Run a latent variable analysis
fit <- cfa(model, data = HolzingerSwineford1939, missing = "ML", std.lv = FALSE)

# Print styled tables
sem_tables(fit)
dr-JT commented 9 months ago

Hi @over-soul! Yep I just ran into the same error. Thanks for pointing this out. It should be fixed now.

It was caused by a small update I did for printing out certain warning messages.

over-soul commented 9 months ago

Thank you for the wonderful package and thank you for fixing.