Closed rduesing closed 4 months ago
The likertHB
and likertOne
functions are intended for Likert-type items that are treated as continuous. Using a model that treats items are categorical with ordered=
is the reason for the errors because the input is incongruent with what the function is expecting. If your model is treating the Likert-type items as categorical (i.e., the model has ordered=
), then the appropriate function would be either catHB
or catOne
, which are designed to handle models with thresholds.
The README has been updated to clarify the difference between the two functions.
Hello!
I tried the newly implemented option to get DFI cutoffs for ordinal data with the WLSMV estimator. But I encountered some strange warnings, which I wanted to share, because I am not entirely sure if all went correctly under the hood.
I wanted to fit a four factorial ordinal model:
I tried two methods to tell R/lavaan that my items are ordinal, either within the lavaan cfa() command:
or directly change the data frame:
If I use the likertHB function, I get warnings for both approaches:
lavaan->lav_options_est_dwls(): estimator “DWLS” is not recommended for continuous data. Did you forget to set the ordered= argument?
and with the second approach with ordered data frame:
only defined on a data frame with all numeric-alike variables
Since I apparently set the "ordered=" argument, I am puzzled about this warnings. Any help is appreciated.
Best, Rainer