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
Diagnostic test using "roctab" commandDear All, Sub: Need a stata codes for sensitivity and specificity. I need to do the diagnostic test,…
Error in multiple imputation with categorical repeated measuresHello, I'm trying to use multiple imputation with chained equations (N = 330, 6 time points). At ea…
Funnel plot with correlation coefficients as effect sizeHi, Can anybody help me draw funnel plots when effect sizes in my meta-analysis are correlation coef…
Dots on the resultsHello everybody, this is my first topic here, i am brazilian so sorry for my english.... Well, i am…
r(2000) while calculating ratioDear All, I am trying to calculate the ratio of caesarean section rate in public versus private fac…
Subscribe to:
Post Comments (Atom)
0 Response to help with a code for xtmelogit model
Post a Comment