[R] Repeated measures design for GAM? - corrected question...

Simon Wood s.wood at bath.ac.uk
Wed Jan 28 18:30:02 CET 2009


`gamm' in package `mgcv' will let you specify random effects as part of a 
generalized additive mixed model, but I must admit that I'm a bit confused 
about what `Bird_abundance' is here, and how it differs from `Count'.

best,
Simon

On Wednesday 28 January 2009 17:09, Strubbe Diederik wrote:
> Dear all,
>
> I have a question on the use of GAM with repeated measures. My dataset is
> as follows: - a number of study areas where bird abundance has been
> determined. Counts have been performed in 3 consecutive years and there
> were 2 counts per year (i.e. in total 6 counts). - a number of
> environmental predictors that do not change over year Xi). When using a
> GLM, a repeated measures design would like: (for example)
>
> lme(Bird_abundance = study_area + count +year+ X1 + X2 + X3,random =
> ~count|study_area).
>
> However, I have found no analogue design for a GAM. For now, I have
> averaged my bird abundances but I wondered whether a more subtle and
> elegant strategy exists...?
>
> Many thanks,
>
>
> Diederik
>
> Diederik Strubbe
> Evolutionary Ecology Group
> Department of Biology, University of Antwerp
> Universiteitsplein 1
> B-2610 Antwerp, Belgium
> http://webhost.ua.ac.be/deco
> tel : 32 3 820 23 85
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.

-- 
> Simon Wood, Mathematical Sciences, University of Bath, Bath, BA2 7AY UK
> +44 1225 386603  www.maths.bath.ac.uk/~sw283




More information about the R-help mailing list