Hello All,
This is my first time using this platform, so apologies in advance for any faux pas. Also, I am new to model building and statistics world, so please bear with me.
I am using a ZTNB model where my outcome is the number of waivered physicians at the ZCTA (Zip-code tabulation area) level and my explanatory variables are community characteristics - median income, race, education, marital status, rurality etc. I already checked for mean=variance assumption which was not met, hence I am using negative binomial and also my outcome has no zeros due to which I am using zero truncated. However, I am completely confused about the exposure variables that needs to be included in the model in order to account for any variance which may lead to biased estimation. Please correct me if I am wrong, but I was thinking to use population size as the exposure because population size will affect the number of waivered physicians available but I am confused (a) if this exposure makes sense and (b) how to incorporate exposure variable in the code. I read about it a lot and I am really confused because most of the forums, it was mentioned to write "exposure(varname)" after the tnbreg command but in one of STATA documentation, I also read to use "vce(cluster varname) nolog" after the tnbreg command. One last method, I read about was to enter "offset (log of variable)". Therefore, it would be really helpful to understand little bit about exposure variables and what is the right way to account for them in ZTNB model. Additionally, it would be nice to know if the way to use exposure variable changes with other count models - poisson, negative binomial, zero-inflated, zero-inflated negative binomial.
I need to submit an abstract for a conference and I am stuck here, so your quick replies can help me a lot.
Thank You,
Sadia Jehan
Related Posts with How to incorporate exposure variable in Zero Truncated Negative Binomial Model
How to Estimate Unobservable Time-Specific Shocks on Dependent Variables?I have a problem that deals with human capital. Given Wit=KitRt where human capital Kit is unobserva…
Why do results of teffects versus psmatch2 differ so much?I use teffects and psmatch2 to check if they produce same results. They do not. Below is the code. W…
How do you write a file path to use a file on Google Drive?I have a .dta file stored in a folder on Google Drive. The URL is https://drive.google.com/drive/fol…
Delete non-matching portions of string variableHi. I have a local (defined below). I also have a string variable Event. I want to only retain words…
Citing stataHello, can anyone advise what these citations would be classed as: https://www.stata.com/support/faq…
Subscribe to:
Post Comments (Atom)
0 Response to How to incorporate exposure variable in Zero Truncated Negative Binomial Model
Post a Comment