On 2010-12-10 03:24, deriK2000 wrote:
Dear list, I try to compare the mean of a variable given a value of a factor with the mean of the same variable for all K-1 other non-missing values of this factor. This procedure I want to repeat for each level of the factor. Having read the recommendations of this list I want to avoid creating K-1 dummy variables and searched for options of the pairwise.t.test. But couldn't find a solution. Anyone with a suggestion how to do the comparisions?
Sounds like you want the Dunnett test procedure which seems to be implemented in a number of packages: multcomp, asd, MCPAN and others. It would probably be a good idea to install package 'sos' and learn how to search with it. Peter Ehlers
Cheers, Derik
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.