Displaying 1 result from an estimated 1 matches for "e4ndigen".
2008 May 02
0
Using option na.rm=True in function SD does not work for matrix with complete columns of NAs (PR#11364)
...TA=
RY=3DGerman_Austria.1252;LC_NUMERIC=3DC;LC_TIME=3DGerman_Austria.1252
=20
attached base packages:
[1] stats graphics grDevices utils datasets 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.complet...