Re: [R] p-values from lm()

2012-06-14 Thread Mohamed Lajnef
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

Re: [R] p-values from lm()

2012-06-14 Thread Özgür Asar
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

Re: [R] p-values from lm()

2012-06-14 Thread Pascal Oettli
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? ($

[R] p-values from lm()

2012-06-14 Thread David Studer
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]]