-
Notifications
You must be signed in to change notification settings - Fork 20
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
Could not find function "test" #140
Comments
What was the model specification, and how was your call to |
Thanks for your reply!
I believe that what happened was some type of package interference. I quit R and cleared the workspace, and once I did so, the model and powerSim ran. In case it is still helpful, I was using a lmer model like:
Power.A <- lmer(DV ~ IV1*IV2 + Covariate1 + Covariate2 + (1|id), REML = "TRUE", data = data)
And the call was :
sim <- powerSim(Power.A, test = fixed(“IV1:IV2”))
With immense appreciation for your contributions to the community,
Michael
… On Nov 14, 2018, at 5:06 PM, Peter Green ***@***.***> wrote:
What was the model specification, and how was your call to powerSim phrased?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#140 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/Aq9J5Rf-fdlkaNEFK7xmFnJ0RPC7OgyAks5uvJP5gaJpZM4Yd_sG>.
|
If it happens again, could you send me the output of |
I'd be happy to.
Thanks!
Michael
Sent from my iPhone.
… On Nov 15, 2018, at 3:23 PM, Peter Green ***@***.***> wrote:
If it happens again, could you send me the output of sessionInfo() please? There might be some way to avoid that sort of interference.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi again,
I do have one more question I am hoping you might be able to offer guidance on. I have fit a lmer model:
model <- lmer(dv ~ iv1*iv2 + (1 | id), REML = “TRUE”, data = data)
For this model, both iv1 and iv2 are within subject manipulations.
And I successfully ran an observed power analysis on this, as well as a power curve. I am trying to estimate the power for a specific sample size, and have used the code:
model2 <- extent(model, along = “id”, n = 300)
When I do this, which has worked with other models, I receive the error message: “Error in levels <-. factor’(*tmp*’, value = values) : number of levels differs.
Any guidance you might have on how to decipher this error would be ever so appreciated. Again, thank you for your real service to the broader community!
Michael
… On Nov 15, 2018, at 3:26 PM, Mikey Pasek ***@***.***> wrote:
I'd be happy to.
Thanks!
Michael
Sent from my iPhone.
On Nov 15, 2018, at 3:23 PM, Peter Green ***@***.*** ***@***.***>> wrote:
> If it happens again, could you send me the output of sessionInfo() please? There might be some way to avoid that sort of interference.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub <#140 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/Aq9J5WdohQlQ2xohcmqvaaaP5_zjt9Hkks5uvc0xgaJpZM4Yd_sG>.
>
|
Not sure what would be causing that, but you might try:
and the same for |
I ran into a similar issue. What was wrong was that I was loading the
Reversing the order in which I loaded the libraries and restarting R fixed the issue. |
Hi,
I have it a model in lmer and am trying to run powerSim on it. I have been getting an error message for each iteration that reads: "Testing ### could not find function "test""
Any guidance on what might be taking place would be appreciated!
Thank you,
Michael
The text was updated successfully, but these errors were encountered: