[R] How to extract p value from the lmekin object obtained by fitting mixed model with function lmekin() in package coxme?

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Thu Sep 6 06:33:23 CEST 2012


Perhaps what you want to explore is the object returned from the summary method rather than the fit object?

coef(summary(kinfit))
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Tian-Xiao Zhang <ztxztx at gmail.com> wrote:

> Hi, R experts
>
>      I am currently using lmekin() function in coxme package to fit a
>mixed effect model for family based genetic data. How can I extract the
>p
>value from a lmekin object?  When I print the object in R console, I
>can
>see the p value and Z value are just over there. But I can not extract
>them
>by the coef() function. kinfit$coefficient$fixed (kinfit is the name of
>the
>lmekin object) just include the intercept and the value of fixed
>effects.
>Where are p and Z values?
>
>     Thank you!




More information about the R-help mailing list