Richard Scott <rscott at rochester.rr.com> writes:
How do I do a Variance Components Analysis?
Example Problem
Given: A gage study is run with three randomly selected OPERATORS,
two randomly selected FIXTURES and five randomly selected PARTS. All
possible combinations are studied (full factorial or fully crossed
experiment). The response is some measurement take for each of the 30
combinations.
How do I use R to find an estimate for the contribution each factor
makes to the overall measurement variation? In other words how do I do a
Variance Components analysis in R?
The model is
Expected(Var(Measurements)) = Var(due to OPERATORS) + Var(due to
FIXTURES) + Var(due to PARTS)+Var(due to NOISE)
You can do this with lme but, as I mentioned in our private
correspondence, lme is better designed for nested random effects than
for crossed random effects like this. You need to use the pdIdent
form of the variance-covariance matrix on the matrix of indicator
columns, created with formulas like ~ PARTS - 1, and combine those
with pdBlocked.
Do you really have a fully crossed design with random effects? It
seems strange to pick the PART at random then reuse that particular
part 6 times.
Anyway, here is how you would do it.
Douglas Bates bates at stat.wisc.edu
Statistics Department 608/262-2598
University of Wisconsin - Madison http://www.stat.wisc.edu/~bates/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._