I would like to run a regression analysis without a constant (intercept) or a special one-way within-subject (repeated-measures) ANOVA. I'm not sure if the following command lines are correct or not:
m1 <- lme(Resp ~ Cond - 1, random = ~ Cond - 1 | Subj, TestData) or, m2 <- lmer(Resp ~ Cond - 1 +( Cond - 1 | Subj), TestData) Also I notice that both lme and lmer provide the correlation matrix of the fixed effects. So if there are more than 2 levels in the fixed effect of condition (Cond), how can I correct for sphericity violation in lme and lmer if I want to get an F test for condition effect? Thanks, Gang ______________________________________________ R-help@stat.math.ethz.ch 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.