easystats/see

SEM plot for `model_parameters()` fails when `component = "regression"`

strengejacke opened this issue · 0 comments

library(parameters)
library(lavaan)
#> This is lavaan 0.6-12
#> lavaan is FREE software! Please report any bugs.
structure <- " visual  =~ x1 + x2 + x3
               textual =~ x4 + x5 + x6
               speed   =~ x7 + x8 + x9 "

model <- lavaan::cfa(structure, data = HolzingerSwineford1939)
result <- model_parameters(model)
plot(result, component = "regression", ci = FALSE)
#> Error in data.frame(Name = as.character(edges[edges$Component == "Loading", : arguments imply differing number of rows: 0, 1

Created on 2022-09-22 with reprex v2.0.2