search for: cpx_interp

Displaying 1 result from an estimated 1 matches for "cpx_interp".

2008 Mar 20
1
Use of Factors
...The mean function returns a value that is obviously wrong, though the count of observations in the subsets is correct. I am including code snippets to try to demostrate how this is all created:, sorry for the length of this Here is output when I try to use the mean function, mean_interp_HR=tapply(cpx_interp$HR[cpx_interp$visit==1 & cpx_interp$xl==0],cpx_interp$SubjId[cpx_interp$visit==1 & cpx_interp$xl==0],mean) Warning in mean.default(X[[1L]], ...) : argument is not numeric or logical: returning NA Warning in mean.default(X[[2L]], ...) : argument is not numeric or logical: returning NA Wa...