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
Poisson for count data?Cheers; I am examining student drop out rates from year 2000 to year 2010. I read that Poisson regre…
Systems of equationsDear all, I want to estimate a system of equations where the dependent variable is the same but the…
How to interpret repeated measures resultsHello! I am hoping that someone could help me interpret results for a repeated measures analysis (o…
How to fix "repeated time values within panel"Now I have data like: hhid geo 1 1 1 1 2 2 2 2 3 3 3 3 And I use command "xtset hhid geo", there is…
Now how do I make a joint test (Post estimation) after using Mixed?Array Hello! So I want to see if there is any correlation between ZCREDTA and freq. I want a joint t…
Subscribe to:
Post Comments (Atom)
0 Response to help with a code for xtmelogit model
Post a Comment