Re: [R] how to test the random factor effect in lme

2012-02-15 Thread Greg Snow
This post https://stat.ethz.ch/pipermail/r-sig-mixed-models/2009q1/001819.html may help you understand why the standard p-values in some cases are not the right thing to do and what one alternative is. On Tue, Feb 14, 2012 at 3:36 PM, Xiang Gao wrote: > Hi > > I am working on a Nested one-way ANO

Re: [R] how to test the random factor effect in lme

2012-02-14 Thread David Winsemius
On Feb 14, 2012, at 5:36 PM, Xiang Gao wrote: Hi I am working on a Nested one-way ANOVA. I don't know how to implement R code to test the significance of the random factor Have you read what the unofficial Mixed Model FAQ says about testing for significance on random effects? http://glmm

[R] how to test the random factor effect in lme

2012-02-14 Thread Xiang Gao
Hi I am working on a Nested one-way ANOVA. I don't know how to implement R code to test the significance of the random factor My R code so far can only test the fixed factor : anova(lme(PCB~Area,random=~1|Sites, data = PCBdata)) numDF denDF F-value p-value (Intercept) 112 1