You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package uses function car::Anova() that implements Kenward-Roger's approximation (KR) to find the degrees of freedom in mixed-effects models. KR could be very slow for a large number of data points. The implementation of KR in the car package is slower than the implementation in the pbkrtest package.
This issue could causes ART to behave strangely from the users' perspective
Assigning art() result to a variable is working as expected.
However, printing that variable (or directly calling art() without assigning the result to any variable) becomes unresponsive. This was because printing an art object also runs ANOVA behind the scene.
Luke (2017) found that KR and Satterthwaite’s approximation are comparable in terms of Type 1 error. Satterthwaite's method is less time-consuming.
I suggest the following:
Replace the call to car::Anova() with a call to lmerTest::anova(). The latter function uses KR from the pbkrtest package that is a bit faster than the car package. From the current implementation of the ARTool, I extracted the model using artlm() and convert it to lmerModLmerTest class before calling anova():
This all sounds very reasonable. I don't currently have a ton of cycles for this, so I'm not likely to get to it in the short term, but I am happy to accept pull requests :). The changes would probably have to happen in flat.anova.R
This package uses function
car::Anova()
that implements Kenward-Roger's approximation (KR) to find the degrees of freedom in mixed-effects models. KR could be very slow for a large number of data points. The implementation of KR in thecar
package is slower than the implementation in thepbkrtest
package.This issue could causes ART to behave strangely from the users' perspective
art()
result to a variable is working as expected.art()
without assigning the result to any variable) becomes unresponsive. This was because printing anart
object also runs ANOVA behind the scene.Luke (2017) found that KR and Satterthwaite’s approximation are comparable in terms of Type 1 error. Satterthwaite's method is less time-consuming.
I suggest the following:
car::Anova()
with a call tolmerTest::anova()
. The latter function uses KR from thepbkrtest
package that is a bit faster than thecar
package. From the current implementation of theARTool
, I extracted the model usingartlm()
and convert it tolmerModLmerTest
class before callinganova()
:art()
"Satterthwaite"
for theddf
parameter above.The text was updated successfully, but these errors were encountered: