Hi all,
I'd like to estimate absolute incidence rate using poisson regression.
I used following code:
poisson outcome i.ssc sex1 year2 region, irr exp(persondays)
margins ssc, predict(ir)
However, my main independent variable "ssc" is a binary count variable. And Stata warnings:
ssc: string variables may not be used as factor variables
Then I destringed "ssc" and re-runed the codes, it worked.
I was wondering is this destring appropriate? And could anyone explain what's the actual meaning of "exp(persondays)"?
Thank you in advance!
Best,
Z
I'd like to estimate absolute incidence rate using poisson regression.
I used following code:
poisson outcome i.ssc sex1 year2 region, irr exp(persondays)
margins ssc, predict(ir)
However, my main independent variable "ssc" is a binary count variable. And Stata warnings:
ssc: string variables may not be used as factor variables
Then I destringed "ssc" and re-runed the codes, it worked.
I was wondering is this destring appropriate? And could anyone explain what's the actual meaning of "exp(persondays)"?
Thank you in advance!
Best,
Z
Comment