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

getData does not work #5

Closed
BrexLed opened this issue May 19, 2020 · 1 comment
Closed

getData does not work #5

BrexLed opened this issue May 19, 2020 · 1 comment

Comments

@BrexLed
Copy link

BrexLed commented May 19, 2020

Dear Mark V. Murphy,
I am trying to bootstrap some CI using the semEff pkg.

I created an piecewiseSEM object and then I used the semEff function.
It looks there is a little issue with the getData function, what do you think?

Cattura

edit 1:
I also tried
bootEff(fit, ran.eff="random effect")
but the error is the same.

Thank you in advance

edit 2: I solved in this way

fit <- psem(
lmer( Y ~ X + M + (1|groupe_recode),
na.action = na.omit, data = dati)
)
summary(fit)

fitB <- list(
lmer( Y ~ -1 + X + M+ (1|groupe_recode),
na.action = na.omit, data = dati)
)

A=bootEff(fitB, ran.eff="groupe_recode",
type="perc", ncpu=3, R=1000)
CI=bootCI(A)

@murphymv
Copy link
Owner

Hi, many apologies that I missed this issue from a few months ago! I see you solved it yourself anyway - semEff doesn't currently support psem objects. This is easy to work around as those objects are created from a list of models anyway, so just supply the list of models instead.

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