[R] Testing significance of individual regression slopes
bgunter.4567 at gmail.com
Tue Sep 27 18:41:47 CEST 2016
You can't if I understand correctly: there is no individual subject
regression coefficient, only a variance component for a random subject
intercept. Do you mean that you want to "test" whether that component
is nonzero ?(It is, of course). If so, IIRC, lmer eschews such tests
for technical reasons -- they are based on approximations that lmer's
authors (esp. Doug Bates) contend are unreliable.
However, a web search on "test significance of lmer variance
components" brought up this:
and the "lmerTest" package, both of which seem relevant, again
assuming I have correctly divined your intent. You will have to
consult the literature or seek advice elsewhere (purely statistical
matters are generally OT here) to determine whether they are
appropriate for your situation.
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Tue, Sep 27, 2016 at 8:05 AM, Patzelt, Edward <patzelt at g.harvard.edu> wrote:
> Hi R-help,
> I have an lmer logistic regression with a within subjects IV and subject as
> a random factor:
> model <- lmer(optimal_choice ~ level_one_value_difference + (1|subid), data
> = dat)
> What I want is to test if the individual subject regression coefficient is
> significantly different from 0.
> Edward H Patzelt | Clinical Science PhD Student
> Psychology | Harvard University
> *Computational Cognitive Neuroscience Laboratory
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help