I am investigating the effect of Human Development Index (country level Independant variable) on Negative experienced discrimination (dependant variable) in 807 participants with schizophrenia who completed a discrimination survey in 29 countries. My dependant variable is a count variable - total subscore of negative experienced discrimination is calculated by totalling up each time a participant endorsed negative discrimination on each item of the survey. I have concluded that i will model this using a negative binomial regression as there is over-dispersion therefore NBR is better than a poisson model. As the data is clustered at the country level, I also think i need to use a random intercept model which explicitly models the dependence of individual observations within clusters by using a country specific random intercept. I will then be adding other sociodemographic covariates into the model e.g age, gender, years of education, current employment, years since first contact with health services, ever had compulsory treatment, do you know your diagnosis and whether they agree with their diagnosis. Are these covariates all fixed effects? Can anyone help with the stata command that i need to build the model. So far i have this for the univariate model "xtnbreg negdisc HDI, re i(country) base" not sure what the command would look like for the multivariable model
Related Posts with Fixed effects vs random effect (NBM) and stata command
Log transform a variableIf we try to log transform a variable in STATA, why does the result(logX value) obtained differ from…
Need some help interpreting fe in StataMPI've been teaching myself STATA code for my research paper. I've copied the code and the output of i…
Bar charts: Percent on y-axis, absolute count over each bar?Hi, I'm making a bunch of barcharts, some using graph, some using catplot, like this: Code: grap…
GMM with multi-level moment conditonsHi all, I want to do a two-step GMM estimation with multi-level moment conditons (the objective fun…
Generate a New Variable: if anyI have a variable called DocVisit that records the number of times a respondent visits a clinic. It …
Subscribe to:
Post Comments (Atom)
0 Response to Fixed effects vs random effect (NBM) and stata command
Post a Comment