I am writing for your input on how best to use exposure () in xtgee and glm analyses.
My outcome variable is count data. However, my unit of analyses is neighborhood and since each neighborhood varies by size it’s best to use the density variable of the count / area of neighborhood.
My question: is it better to capture the differences in neighborhood area by using the exposure option and if so, should I do this in addition to or in lieu of making the outcome the density variable.
Example 1: xtgee
xtset neighborhood year
xtgee count predictors, family(Gaussian) identity(link) corr(ar1) exposure(area of neighborhood) vce
Or
xtgee density predictors, family(Gaussian) identity(link) corr(ar1) exposure(area of neighborhood) vce
Example 2: GLM
glm count predictors, family(gamma) identity(link) corr(ar1) exposure(area of neighborhood) vce
Or
glm density predictors, family(gamma) identity(link) corr(ar1) exposure(area of neighborhood) vce
I’m leaning towards using xtgee density with exposure and glm with count but unclear how to account for the differences in area when using glm. Could i still use glm gamma distribution if I’m using density?
Thank you in advance for your insights.
Related Posts with Questions about using exposure() with xtgee and glm when outcome can be count or density.
How to Create Ratio variable from independent variables for panel dataHi.. I am working on female and male tertiary enrolment rates and its impact on meritocracy. For the…
Interrater agreementDear all I have a dataset titled "readings". This consists of readings on the same XRays by 3 diffe…
Replacing missing values after appendingI want to create a panel dataset from two waves of the World Bank Enterprise Surveys (One collected …
asdoc update : addition of inspect commandThe latest version (Version 2.3.9.2 : Changes made on Nov 3, 2020) of asdoc can now export the outpu…
Removing middle character from a set of variablesHi everyone, This might have a simple solution but I'm stuck. I have a set of variables that goes …
Subscribe to:
Post Comments (Atom)
0 Response to Questions about using exposure() with xtgee and glm when outcome can be count or density.
Post a Comment