neuropsychology / psycho.R

An R package for experimental psychologists
https://neuropsychology.github.io/psycho.R/
Other
144 stars 32 forks source link

BLAVAAN Analyze #103

Open dphipps190 opened 5 years ago

dphipps190 commented 5 years ago

Describe the problem. Hi,

I am currently trying to use the analyze function with Blavaan, but I amgetting errors, and I am not sure why.

I am using the following code:

fit <- bsem(bayesModelPB, cp = "srs", convergence = "auto", data=data)
FitSummary<- analyze(fit, CI = 90, standardize=T)
print(FitSummary)

However, I get the error

1: In log(z) : NaNs produced 2: In if (standardize == FALSE) { : the condition has length > 1 and only the first element will be used 3: the condition has length > 1 and only the first element will be used

When I print the results, only the fit statistics are presented.

I have also tried running the code as: FitSummary<- analyze(fit) And FitSummary<- analyze(fit, standardize=FALSE)

When standardized = False I get the error

Error in if (median >= 0) { : argument is of length zero

I have checked Blavaan and psycho, and reinstalled the most recent version of all packages and dependencies I could see. Is there anywhere I have gone wrong here?

DominiqueMakowski commented 5 years ago

@dphipps190 So sorry to answer only now! Unfortunately, I won't be able to fix the issue, as the analyze function will be deprecated in favour of the new report package currently in development. However, this doesn't solve your issue as support for lavaan and blavaan is not (yet) implemented 😕

I hope to add it as soon as possible, so please stay tuned :)

Sorry again!