Skip to content

Analysis with standard deviations

1 message · Gang Chen

#
Let me use the Machines data that comes with nlme package as an
example to describe the situation I'm facing:
Classes 'nffGroupedData', 'nfGroupedData', 'groupedData' and
'data.frame':      54 obs. of  3 variables:
 $ Worker : Ord.factor w/ 6 levels "6"<"2"<"4"<"1"<..: 4 4 4 2 2 2 5 5 5 3 ...
 $ Machine: Factor w/ 3 levels "A","B","C": 1 1 1 1 1 1 1 1 1 1 ...
 $ score  : num  52 52.8 53.1 51.8 52.8 53.1 60 60.2 58.4 51.1 ...

Suppose I want to model the data with the following

Y_ijk = a_j + b_i + b_ij + e_ijk, i (worker) = 1,...,6, j (machine) =
1,...,3, k (sample repetitions) = 1,...,3
And suppose I don't have the whole data set Machines. Instead what I
have are Y_ij. (dot here means the score average across the k index:
those repeated samples for each (i,j)), and its standard deviation. So
my real data is myMachines as below:
My question is, how can I analyze myMachines with lme or lmer? In
other words, is there a way to take the standard deviations into
consideration when modeling?

Thanks in advance,
Gang