search for: lvmean

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

Did you mean: lsmean
2010 Feb 10
1
mean calculation within dataframe corrupted
Dear R-helpers, my little function below calculates the group score (tmpGroupMean) of an item, appends a "_mean" on its name and stores its value on this name. However, it does not calculate the mean of these scores (LVMean) in the same row correctly, as you can see in the below output which strangely also contains NAs. What is wrong?? Thanks for any hint!!! ###### ## start groupMeanForAllItems <- function(inputDataFrame, groupVector) { # build up result dataframe starting with group means result <- data.fram...