Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLAVAAN Analyze #103

Open
dphipps190 opened this issue Mar 4, 2019 · 1 comment
Open

BLAVAAN Analyze #103

dphipps190 opened this issue Mar 4, 2019 · 1 comment

Comments

@dphipps190
Copy link

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
Copy link
Member

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants