Hi Lara;

You're dealing with mixed models in this case, I suggest you to take a look
on this wesite: http://glmm.wikidot.com

Also, there's a specific mailing list for this, there your questions were
either probably already answered or can be properly answered.

With my best, Ricardo.

==========================================
Ricardo Ribeiro de Castro Solar (Curriculum
Vitś<http://lattes.cnpq.br/9924177207371692>
)
PhD Student - Entomology - Science Without Borders
Lab Page <http://www.labecol.ufv.br> / Tropical Ecology Research
Group<http://www.lancs.ac.uk/staff/barlowj2/index.html>
Rede Amazônia Sustentável <http://www.redeamazoniasustentavel.org>
Mobile: +44 07956 126637 - Skype: rrsolar
UF Viçosa (Brazil) - Lancaster University (UK)
==========================================


On 25 February 2013 06:32, Lara R. Appleby 04 <
Lara.R.Appleby.04@alum.dartmouth.org> wrote:

> I am following a suggestion from http://www.coloss.org/beebook/**
> I/invitro/3/1to <http://www.coloss.org/beebook/I/invitro/3/1to> use
> nesting in my analyses of measurements of individual worker ants within
> multiple colonies.
>
> "y" is a worker-level trait (e.g. the size of an individual worker ant)
> measured once for each individual worker in the study
> "a" is the colony ID
> "b" is a colony-level trait (e.g. colony size at the beginning of the
> experiment) measured once for each colony in the study
>
> All of the workers ("y") in a colony share an "a" value and a "b" value.
>
> I want to know the independent effects of a and b on y, accounting for the
> non-independence of worker-level observations.
>
> How do I code this kind of model?
>
> I get as far as:
>
> lme4 (y~a+b)
>
> but I don't know how to code the nesting bit in this case.
>
> ______________________________**_________________
> R-sig-ecology mailing list
> R-sig-ecology@r-project.org
> https://stat.ethz.ch/mailman/**listinfo/r-sig-ecology<https://stat.ethz.ch/mailman/listinfo/r-sig-ecology>
>

	[[alternative HTML version deleted]]

