melissagwolf / dynamic

Dynamic Fit Index Cutoffs For Latent Variable Models
GNU Affero General Public License v3.0
14 stars 2 forks source link

Using lavaan object causing str2lang error in cfaOne() #2

Closed jsakaluk closed 2 years ago

jsakaluk commented 2 years ago

Trying this functionality out on the sexual compulsivity dataset at the open-source psychometric project. Model script and fitting are as follows (toggled fixed-factor vs. marker variable didn't make a difference [my first guess at root of error]):

`scs.mod <- ' sc =~ Q1 + Q2 + Q3 + Q4 + Q5 + Q6 + Q7 + Q8 + Q9 + Q10 '

scs.fit <- cfa(scs.mod, data = scs.clean, estimator = "mlr", #robust ml estimation std.lv = TRUE, #using fixed-factor id/ss (latent var. constrained to 1) missing = "ml")#FIML for missingness

cfaOne(scs.fit) ` Results in

Error in str2lang(x) : <text>:2:0: unexpected end of input 1: ~ 12.1084* ^

melissagwolf commented 2 years ago

I can't get the data to download from the website. I'm getting an error that says "SCS.zip can't be downloaded securely". I tried it in two browsers. Could you link it another way so that I can debug?

melissagwolf commented 2 years ago

This has been resolved with one line of code! Please redownload the package from github.