Hello,
I need your help with a STATA code for the logistic model with random effect.
The model analyzes the effect of individual characteristics on level of trust to police.
The formula of estimated mixed logit model looks like:
Array
where i is the number of the individual, j is the number of the country, F is the logistic function, X1, ..., Xk are the individual characteristics (such as in the ordered logit models), and Zjis GDP and CPI.
Dependent Variable = binary variable believe in police 1, 0 - otherwise.
Indep. Variables = sex, age, educhigh, educmid, marital unemployed and author uses the country–level variables GDP and CPI which include both a deterministic part that is common to all countries and a random part that reflects the specific country.
I know that the xtmelogit function is used to analyze the model.
xtmelogit police sex age educhigh educmid marital unemployed | | ....
My question: how the ending of the model should be coded with RE for GDP and CPI (Corruption Perception Index) ?
Thanks!
Related Posts with help with a code for xtmelogit model
x-axis labeling year and month, loop questionHi everyone, I followed this tutorial on how to get an x-axis label for my data but I'm having trou…
Inverse Probability Weighting Method, Multiple Treatments with An Ordinal VariableI am currently working on a model with an ordinal outcome (i.e., self-rated health: 1=very unhealthy…
Trouble with multivariate analysisHello everyone I have run into some STATA problems during my exam project, and I would greatly appr…
Finding sample size for treatment and control with PSMHi, I'm new to the forum but had a question I can't seem to figure out. I am using a PSM regression …
How to interpret changes in odds/standard deviation interpretation for multinomial regressions?Hello everyone, I am using a multinomial logit regression with three categories. I want to calculat…
Subscribe to:
Post Comments (Atom)
0 Response to help with a code for xtmelogit model
Post a Comment