Displaying 1 result from an estimated 1 matches for "3dcomplete".
Did you mean:
3d'complete
2008 May 02
0
Using option na.rm=True in function SD does not work for matrix with complete columns of NAs (PR#11364)
...sets methods base =20
=20
=20
a<-matrix(rnorm(100),10,10); a[1,]<-NA
> sd(a,na.rm=3DT)
Fehler in var(x, na.rm =3D na.rm) : keine vollst=E4ndigen Elementpaare
this error is clear as "sd" is using "var" and in case of na.rm=3DT =
"var" uses "na.method=3Dcomplete.obs" which is obviously never the case =
in this example.
=20
So I suggest to set the default.method for na.rm=3DT to =
"pairwise.complete.obs" to get the same result as in previous versions =
of R, that is the same as=20
> sqrt(diag(var(a,use=3D"pair")))
[1] NA...