Hi friends,
Any idea why do i get this warning?And also why all computed p-values are
NaN.
Have shown below what i did in Windows r-console.:--
df
c1 c2
1 1 50
2 NA NA
3 4 NA
4 7 6
5 NA 7
6 10 10
r-cor(x=df,y=NULL,use=complete.obs,method=c(pearson))
r
c1 c2
c1
Obviously your df=0 in pt(STATISTIC, df).
Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
Mobile: +86-15810805877
Homepage: http://www.yihui.name
School of Statistics, Room 1037, Mingde Main Building,
Renmin University of China, Beijing, 100872,
Yihui Xie wrote:
Obviously your df=0 in pt(STATISTIC, df).
However, there are 3 complete observation pairs, not 2, and he wants r
as the off-diagonal element and not the whole correlation matrix.
(and df denotes two different things, but that is just aesthetics.)
Regards,
Yihui
--
Yihui
3 matches
Mail list logo