Tian-Xiao Zhang
2012-Sep-06 01:16 UTC
[R] How to extract p value from the lmekin object obtained by fitting mixed model with function lmekin() in package coxme?
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!
--
Tianxiao "Joshua" Zhang, Ph.D. student
Human and Statistical Genetics Program
Division of Biology and Biomedical Sciences
Washington University in St. Louis
[[alternative HTML version deleted]]
Jeff Newmiller
2012-Sep-06 04:33 UTC
[R] How to extract p value from the lmekin object obtained by fitting mixed model with function lmekin() in package coxme?
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!