Closed WillemSleegers closed 1 year ago
You should use nnorHB
not cfaHB
. See the tutorial here: https://rpubs.com/dmcneish/1033222.
Why does that function have an estimator
argument then?
~The GitHub version is currently in beta and we're testing some things out~. cfaHB
can accommodate other estimators, but nnorHB
is the correct function to use if you have non-normal, continuous data. cfaHB
still uses simstandard
to simulate multivariate normal data (see #5), so it won't be useful if you want to use the MLR estimator. Note that for non-normal data, you will need to use a lavaan object or your dataset as the input.
Thanks for that. I think as a user I find that quite confusing (also see this tweet, which added to my confusion).
Conceptually, MLR = cML where c is correction factor for non-normality. cfaOne and cfaHB generate from normal distributions, in which case c=1 because there is no non-normality. So MLR = ML in these functions. The functions are* using MLR as indicated by that tweet, there is just no difference between MLR and ML with the type of data being generated by these functions.
If it makes it less confusing, I added a warning error message about MLR with functions that simulate from a normal distribution to inform users that MLR = ML with these functions and that the nnor group of functions may be more useful if the goal is to derive cutoffs that are sensitive to non-normality.
Thanks; I think an error is useful.
Thanks for the helpful feedback as always @WillemSleegers! We've added a few clarifying messages for other estimators as well. Please continue to let us know if you run into bugs or something is unclear - we really appreciate it.
Hi,
I was happy to see that the
cfaHb()
function now has support for various estimators, so I tried it out. Specifically, I tried out the following code:I expected the results of the two
cfaHB()
calls to differ, but they seem to be identical. In fact, thecfaHB()
call withestimator = "MLR"
is returning the exact same fit measure values as the default one, even though it should be returning the scaled/robust versions of the fit measures (if I understand correctly).Am I missing something or is there a bug here?