runehaubo / lmerTestR

Repository for the R-package lmerTest
48 stars 9 forks source link

lmerTest::anova function #11

Closed toouggy closed 6 years ago

toouggy commented 6 years ago

Hi,

lmerTest::anova function gives the following error:

Error: 'anova' is not an exported object from 'namespace:lmerTest'

A few months ago, it was working just fine and now with the same code/data I get the above error.

I also noticed that the anova function does not pop up in autocomplete in Rstudio. It seems missing...

Please let me know what I am doing wrong.

Thank you.

runehaubo commented 6 years ago

anova is a method, not a function, so you should use anova(model) where model is an object of class lmerModLmerTest, i.e. produced by lmerTest::lmer.

For background and details see https://stat.ethz.ch/pipermail/r-sig-mixed-models/2018q1/026596.html.

Cheers Rune

toouggy commented 6 years ago

Thank you

From: Rune Haubo B Christensen notifications@github.com Reply-To: runehaubo/lmerTestR reply@reply.github.com Date: Friday, June 15, 2018 at 00:25 To: runehaubo/lmerTestR lmerTestR@noreply.github.com Cc: Francisco López lopezfj@msn.com, Author author@noreply.github.com Subject: Re: [runehaubo/lmerTestR] lmerTest::anova function (#11)

anova is a method, not a function, so you should use anova(model) where model is an object of class lmerModLmerTest, i.e. produced by lmerTest::lmer.

For background and details see https://stat.ethz.ch/pipermail/r-sig-mixed-models/2018q1/026596.htmlhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fpipermail%2Fr-sig-mixed-models%2F2018q1%2F026596.html&data=02%7C01%7C%7Cd85d6cf0bb5a426c357008d5d2912946%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636646443251985779&sdata=jvp57eTChSppVfgy6EJ43IHoLou0bsSVIGh4J7mlojU%3D&reserved=0.

Cheers Rune

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frunehaubo%2FlmerTestR%2Fissues%2F11%23issuecomment-397536912&data=02%7C01%7C%7Cd85d6cf0bb5a426c357008d5d2912946%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636646443252005790&sdata=q0rvYwsmSBSZV5D%2BsT1RhtraR7IorZ%2BbNAFHEKTivBc%3D&reserved=0, or mute the threadhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALc_0v0nkrMZ635wttVqUsGwsWoNfh33ks5t82FkgaJpZM4UpBEo&data=02%7C01%7C%7Cd85d6cf0bb5a426c357008d5d2912946%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636646443252015801&sdata=BAd%2FTtnGyXuD80gS6PfI3b9mj1NtsLIHpSDx8MK9PFg%3D&reserved=0.