sun-shiqing 发表于 2015-9-3 18:59 
首先str(你的模型对象),然后看到pvalue所在的地方,用$提取就行了。不会的话请把代码发上来~
谢谢~请看一下 我就是用cor.test命令做了相关性分析
……
……
> cor.test(Humidity[1:end],Temp1[head:601],method="pearson")
Pearson's product-moment correlation
data: Humidity[1:end] and Temp1[head:601]
t = 6.0234, df = 510,
p-value = 3.273e-09
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
0.1749615 0.3368437
sample estimates:
cor
0.2577102
我希望把红色的Pvalue提出来 怎么写呢 谢谢