Hi David,
summary(res)$coefficients[,"Pr(>|z|)"] or summary(res)$coefficients[,4]
M
Regrads
Le 14/06/12 12:44, David Studer a écrit :
> Hi everyone!
>
> Can anyone tell me, how to obtain p.values from a linear model?
>
> Example:
> mod1<-lm(dV~iV1+iV2)
>
> Now, I can get the coefficients with
Dear David,
Try
summary(mod1)$coef[,4]
Best
Ozgur
--
View this message in context:
http://r.789695.n4.nabble.com/p-values-from-lm-tp4633357p4633361.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
ht
Hello,
What do you want to do with these p-values?
Best Regards
Le 12/06/14 19:44, David Studer a écrit :
Hi everyone!
Can anyone tell me, how to obtain p.values from a linear model?
Example:
mod1<-lm(dV~iV1+iV2)
Now, I can get the coefficients with mod1$coef
But how can I get p-values? ($
Hi everyone!
Can anyone tell me, how to obtain p.values from a linear model?
Example:
mod1<-lm(dV~iV1+iV2)
Now, I can get the coefficients with mod1$coef
But how can I get p-values? ($p.values seems to work with cor.test() only)
Thank you!
[[alternative HTML version deleted]]
4 matches
Mail list logo