I executed "logot job age i.gender i.school i.company" for states A & B to find what makes students get a skill_job (=1) or not (=0). Here, gender=0 (boy) & 1 (girl), school = school type (1-5), company = employer type (1-3).
However I got a comment that the following results were not comparable and the analysis was not done properly. Please tell me how to realize from the results and execute properly?
Thanks.
Please elaborate on your problem. Include the commands you enter as written and the text of the error. Also use a font like Lucida Console around font size 8 so that it is easier to read your results.
There are variables, e.g., job (0=not skill related, 1=skill related), age (numerical), gender (0=boy, 1=girl), school (school type: 1=type A, 2=type B, 3=type C, 4=type D, 5=type E), company (employer type: 1=type A, 2=type B, 3=type C).
Try to find who gets a skill related job in companies after finishing school to compare two states A & B.
After treating all unknowns as missing values, I executed
logit job age i.gender i.school i.company
I obtained the following results.
Someone quickly commented me that the results were not comparable and the analysis may not be done properly.
I had no chance to ask him a reason. My questions are....
How can you tell if the results are not comparable by looking at the results?
How can I check if the analysis was done properly?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[STATE A]
Logistic regression Number of obs = 2010
LR chi2(11) = 179.89
Prob > chi2 = 0.0000
Log likelihood = -822.46643 Pseudo R2 = 0.0979
So, why are you running two separate logit regressions for each state? Why not include a state indicator variable in your regression, instead? This would resolve your problem, it seems to me.
I asked another person who can access to data for state B to run the same do file.
We cannot put them together. So, there is no way to execute do file separately and compare them?
I was told that one variable was causing a problem. I just like to know how to identify which variables need to be removed or whether the results are not comparable.
You can compare them in the sense that you can say "For Group A, the effect of schooling level on job skill is ..., and for group B, the effect of schooling is... " But unless you include both groups in your regression, the effects your report are conditional on the group you're analyzing. You wouldn't be estimating the overall return of a policy, for example, only the return to each group individually. The exception to this is if the errors of the regression in the two groups are correlated with one another, in which case you absolutely must analyze the groups at the same time.
Your two models appear to contain the same variables, so I don't see why you'd need to remove one, and I don't see anything that must overtly cause a problem.