Re: [R-sig-eco] LMER: applying a random term to only one level of a factor

2016-04-07 Thread Aislinn Pearson
Thank you very much for your help Bob. I think that's a great idea. -Original Message- From: R-sig-ecology [mailto:r-sig-ecology-boun...@r-project.org] On Behalf Of r-sig-ecology-requ...@r-project.org Sent: 07 April 2016 11:00 To: r-sig-ecology@r-project.org Subject: R-sig-ecology Digest,

Re: [R-sig-eco] temporal autocorrelation with lme

2016-04-07 Thread Thierry Onkelinx
Dear Jean-Yves, The mailing strips HTML and most of the attachment. Hence we can't see the plots. Note that you need the normalised residuals to see the effect of the correlation structure. resid(type = "normalized"). Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / R

[R-sig-eco] temporal autocorrelation with lme

2016-04-07 Thread Jean-Yves BARNAGAUD
Dear all, I'm trying to fit lme models on spatial-temporal data with strong inter-annual autocorrelation. The response variable is a bird diversity measure sampled on several plots during 10 to 40 years, which I want to relate to environmental covariates. To give an idea of the sample size, th

Re: [R-sig-eco] model II regression with random effects

2016-04-07 Thread Frank Berninger
I think one way of making correct inferences from similar problems would be to make a Bayesian regression with error in variables and grouped errors. Using Laplaces demon in R (the package is not anymore in CRAN but seems still to run and can be downloaded from the maintainer (an enterprise called

Re: [R-sig-eco] LMER: applying a random term to only one level of a factor

2016-04-07 Thread Bob O'Hara
On 06/04/16 20:12, Aislinn Pearson wrote: Hi, I've tried googling this but haven't been very successful. Essentially, I'd like to know what is the most statistically valid way of dealing with a random term which doesn't apply to every level of fixed-effect factor. I have a mixed effect model