Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: How to perform GLM with nested observations


From   Jeph Herrin <junk@spandrel.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: How to perform GLM with nested observations
Date   Wed, 23 Jul 2008 12:33:57 -0400

See -xtmixed-



K.Boughey@uea.ac.uk wrote:
Dear List,

I have 500 sites, and each site contains twelve transects.

My dependent variable is the number of bats encountered along each transect.

My independent variables have been measured at either transect or site
level and include:
habitat type (categorical) measured at transect level
distance to nearest water feature measured at transect level
proportion of woodland, measured at site level
density of water features, measured at site level

Is there a way I can include all 6000 observations and all independent
variables (both categorical and continuous and at both scales) in a
GLM-type analysis that, critically, allows for the lack of independence
between observations within the same site, caused by the nested sample
design?

Many thanks,
Katherine

--
School of Environmental Sciences
University of East Anglia
Norwich
NR4 7TJ

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index