[R] Testing significance of individual regression slopes

Bert Gunter 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:

https://www.r-bloggers.com/random-regression-coefficients-using-lme4/

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.

Cheers,
Bert






Bert Gunter

"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
> <http://gershmanlab.webfactional.com/>*
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> 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 mailing list