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 change label position with coeffplot ?Good morning everyone, I have the following code that plots my coefficient : Code: coefplot /// (…
Estimate incidence rate (looping)Hello all, I currently have the dataset below. I want to calculate the incidence rate for each mont…
? = number of redundant parameters may be higherI used the command "reghdfe", and when i absorb three different fixed effect, stata told me "? = num…
Can you help me write Two-step system GMM command ?Hello everyone, to not take from ure time much, im trying to run Two-step system GMM and i dont kno…
foreach loop error r(100) using requiredHello I am new to Stata and I am trying to write a foreach loop code, My code is use "/Users/elenac…
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