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 mod1$coef
> But how can I get p-values? ($p.values seems to work with cor.test() only)
>
> Thank you!
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> 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.
>


-- 
####################################
Mohamed Lajnef,IE INSERM U955 eq 15#
P?le de Psychiatrie 		   #	
H?pital CHENEVIER                  #
40, rue Mesly                      #
94010 CRETEIL Cedex FRANCE         #
Mohamed.lajnef@inserm.fr           #
tel : 01 49 81 32 79		   #
Sec : 01 49 81 32 90               #
fax : 01 49 81 30 99               #
####################################



	[[alternative HTML version deleted]]

