-
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
No applicable method for 'test' applied to an object of class "c('glmerMod', 'merMod')" #167
Comments
That looks like maybe simr's heuristics are choosing the wrong test. Does it work if you manually specify the test? i.e. Is |
A is categorical here. I tried |
How about if you use |
That's what I was thinking too - and it was a function masking issue. I usually load simr last, but didn't here. Sorry for the bother! I'm now getting "Test did not return a p-value" with all interaction terms. I suspect that's due to model specification rather than anything in simr. Is that a correct assumption? |
That's a catch-all in the test wrapper, so could be a number of things, but most likely an You should be able to bypass the wrapper with |
Thanks! |
Sorry, triple-double dots: |
So there is an NA
Is there anything I can do about that? |
Try |
That does work. Is there a way to combine the single term deletion with simr so I can plot out a powerCurve? |
What does the |
In the model with my actual data (where I get the no p-value errors):
|
Aha, |
It's likely due to something in specification. When I run Have you encountered the |
I've tried a few more things and while my model runs fine in glmer with the specified values for When I try I get a flat plot at zero and lastResult()$errors shows: |
In case it's helpful to be able to reproduce my issue:
|
I am encountering the same problem. I am fairly new to I have the following model: where type is a categorical variable with 4 levels, p_id is the participant id, group is the group id. When I run I get the error "cannot find valid starting values: please specify some" in all 20 simulations, even if the glmer function runs smoothly. Running Any hint to how to fix it? |
It looks like the problem is happening at the simulation stage (it works for Workaround for now would be a custom simulation function, e.g.:
|
In fitting some gaussian log models, I am getting an error for each simulation in powerSim:
no applicable method for 'test' applied to an object of class "c('glmerMod', 'merMod')"
The model is relatively straightforward:
I then call powerSIm with
powerSim(Mod, test = fixed("A"), nsim = 100)
I get an estimated power of 0.00 with 100 errors (as above)
Has there been a change in how to call powerSim for glmer models?
The text was updated successfully, but these errors were encountered: