Dear Statalists,
I have count data on the occurence of an event, with an exposure time (in days) that differs largely between individuals.
After running e.g.:
nbreg y x1 x2 x3, exposure(t)
margins, dydx(*)
I obtain the respective average marginal effects. As far as I understand, these effects are evaluated at exp(mean(ln(t))). Is that correct? What I would like to obtain, however, are the average marginal effects evaluated at a value of the exposure time other than the default. In particular, I would like to obtain average marginal effects at an exposure of say 30 or 360 days of time. I want to so in order to obtain average marginal effects that I can easily interpret as e.g.: If I increase x1 by 1 unit, then the number of y per 30 days of exposure increases on average by AME units.
Thank you very much in advance for your advice.
I have count data on the occurence of an event, with an exposure time (in days) that differs largely between individuals.
After running e.g.:
nbreg y x1 x2 x3, exposure(t)
margins, dydx(*)
I obtain the respective average marginal effects. As far as I understand, these effects are evaluated at exp(mean(ln(t))). Is that correct? What I would like to obtain, however, are the average marginal effects evaluated at a value of the exposure time other than the default. In particular, I would like to obtain average marginal effects at an exposure of say 30 or 360 days of time. I want to so in order to obtain average marginal effects that I can easily interpret as e.g.: If I increase x1 by 1 unit, then the number of y per 30 days of exposure increases on average by AME units.
Thank you very much in advance for your advice.
Comment