search for: q27j

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

Did you mean: 27j
2004 Oct 21
0
Hmisc: Using stratified weighted means (wtd.mean) within a function
Hello list, I have the following function which, as you can see, uses mean: meanratings <- round(apply(stack03[,c(102:121)],2,function(x) (tapply(x ,actcode, mean, na.rm=T))), digits=1) The above function yields the following output: q27a q27b q27c q27d q27e q27f q27g q27h q27i q27j q27k q27l q27m q27o q27p 1 7.8 8.1 7.7 7.9 7.9 NaN NaN 8.4 7.8 7.0 7.6 NaN NaN 7.1 6.0 2 8.3 8.6 8.5 8.2 8.3 NaN NaN 8.8 NaN 7.5 NaN 7.7 7.4 8.1 7.4 3 8.1 8.5 7.7 8.2 7.8 NaN NaN 8.2 8.3 7.1 7.8 NaN NaN 7.7 6.3 4 7.9 8.1 7.0 7.6 8.1 8.1 NaN 8...