search for: eat1

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

Did you mean: eat
2012 Jan 13
2
Averaging over data sets
...ot imputed. Such data has many variables (some numeric, other factors), and more than 20000 observations. I do not know how to average them out. Any help? Below I provide a small example: Suppose Amelia provided two datasets: d1 <- data.frame(subject = c("Felipe", "John"), eat1 = 1:2, eat3 = 5:6, trt = c("t1", "t2")) d2 <- data.frame(subject = c("Felipe", "John"), eat1 = 3:4, eat3 = 6:7, trt = c("t1", "t2")) I tried (d1 + d2)/2 but I lose my factors. mean() did not work either. The result I'd like is:...