Displaying 2 results from an estimated 2 matches for "rlwtest".
Did you mean:
latest
2006 Jul 10
1
Counting observations split by a factor when there are NAs in the data
...be kind!
My concern:
I cannot figure out a way to get an accurate count of observations of
one column of data split by a factor when there are NAs in the data.
I know how to use commands like tapply and summaryBy to obtain other
summary statistics I am interested in, such as the following:
tapply(RLWTEST, list(STATUS), mean, na.rm=T)
summaryBy(RLWTEST~STATUS, data=lh.forgotten, FUN=c(mean, sd, min, max),
na.rm=T)
However, with tapply I know I cannot use length to get a count where
there are NAs. summaryBy appears to work the same way. I do know how to
get a count of the entire column using sum:
su...
2006 Jul 10
0
Counting observations split by a factor when there are NA s in the data
...ut a way to get an accurate count of
> observations of one column of data split by a factor when
> there are NAs in the data.
>
> I know how to use commands like tapply and summaryBy to
> obtain other summary statistics I am interested in, such as
> the following:
> tapply(RLWTEST, list(STATUS), mean, na.rm=T)
> summaryBy(RLWTEST~STATUS, data=lh.forgotten, FUN=c(mean, sd,
> min, max),
> na.rm=T)
>
> However, with tapply I know I cannot use length to get a
> count where there are NAs. summaryBy appears to work the same
> way. I do know how to get a c...