Hi all,
I am working with a data set (sample below) that contains, among other things, four binary variables (stage1 - stage4) that indicate whether or not a particular theoretical construct occurred. These are my dependent variables. It also contains sex, a binary variable of 0 for male, 1 for female, the nominal variable country (1=USA, 2=Korea, 3=Japan, 4 = Jamaica, 5=El Salvador), and the ordinal variable ageGroup, which is four different age groups (given the values 1 - 4) that go with the theory. I will not be using age as a continuous variable as this would deviate from the theory.
Here is an example of my command:
and the output:
My questions are:
1) How do I run the model without using the USA and the first age group as the base? I want to be able to report the coefficients for all countries and age groups, not just what they are based on the "1" category.
2) Does this test fit? When working with a binary predictor and multiple nominal predictors, multinomial logistic regression came up, but I am going down the wrong road?
Thanks!
I am working with a data set (sample below) that contains, among other things, four binary variables (stage1 - stage4) that indicate whether or not a particular theoretical construct occurred. These are my dependent variables. It also contains sex, a binary variable of 0 for male, 1 for female, the nominal variable country (1=USA, 2=Korea, 3=Japan, 4 = Jamaica, 5=El Salvador), and the ordinal variable ageGroup, which is four different age groups (given the values 1 - 4) that go with the theory. I will not be using age as a continuous variable as this would deviate from the theory.
Here is an example of my command:
Code:
mlogit stage1 i.country i.sex ageGroup
Code:
Iteration 0: log likelihood = -562.03133 Iteration 1: log likelihood = -503.4806 Iteration 2: log likelihood = -502.02042 Iteration 3: log likelihood = -502.01685 Iteration 4: log likelihood = -502.01685 Multinomial logistic regression Number of obs = 949 LR chi2(6) = 120.03 Prob > chi2 = 0.0000 Log likelihood = -502.01685 Pseudo R2 = 0.1068 ------------------------------------------------------------------------------ stage1 | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- 0 | (base outcome) -------------+---------------------------------------------------------------- 1 | country | 2 | .0360518 .2247894 0.16 0.873 -.4045272 .4766309 3 | -.1831853 .3148928 -0.58 0.561 -.8003637 .4339932 4 | .4990308 .2364217 2.11 0.035 .0356527 .9624088 5 | -.282688 .3400538 -0.83 0.406 -.9491813 .3838052 | 1.sex | -.4441405 .1561065 -2.85 0.004 -.7501036 -.1381774 ageGroup | -1.033842 .1158706 -8.92 0.000 -1.260944 -.8067396 _cons | 2.442984 .3803291 6.42 0.000 1.697553 3.188416 ------------------------------------------------------------------------------
1) How do I run the model without using the USA and the first age group as the base? I want to be able to report the coefficients for all countries and age groups, not just what they are based on the "1" category.
2) Does this test fit? When working with a binary predictor and multiple nominal predictors, multinomial logistic regression came up, but I am going down the wrong road?
Thanks!
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte age str6 gender str11 location byte(stage1 stage2 stage3 stage4) str21 know float(ageGroup country sex knowSci) 10 "Female" "NC" 1 1 1 1 "Yes" 3 1 1 1 10 "Female" "NC" 1 1 1 1 "Yes" 3 1 1 1 10 "Female" "NC" 1 0 0 0 "No" 3 1 1 0 10 "Female" "NC" 1 0 1 0 "NO DATA" 3 1 1 -1 10 "Female" "NC" 0 0 0 0 "Yes" 3 1 1 1 10 "Female" "NC" 0 1 0 0 "Yes" 3 1 1 1 10 "Female" "NC" 1 1 1 0 "Yes" 3 1 1 1 10 "Female" "NC" 0 0 1 0 "Yes" 3 1 1 1 10 "Female" "NC" 0 0 0 0 "Yes" 3 1 1 1 10 "Female" "NC" 1 0 1 1 "Yes" 3 1 1 1 10 "Female" "NC" 0 0 0 1 "Yes" 3 1 1 1 10 "Female" "NC" 0 0 1 1 "Yes" 3 1 1 1 10 "Female" "NC" 1 0 1 0 "Yes" 3 1 1 1 10 "Female" "NC" 0 0 0 1 "Yes" 3 1 1 1 10 "Female" "NC" 1 0 1 1 "Yes" 3 1 1 1 10 "Female" "NC" 0 1 1 1 "Yes" 3 1 1 1 10 "Female" "NC" 0 1 0 0 "Yes" 3 1 1 1 11 "Female" "NC" 1 0 1 0 "Yes" 3 1 1 1 11 "Female" "NC" 0 1 0 1 "Yes" 3 1 1 1 11 "Female" "NC" 1 1 1 1 "Yes" 3 1 1 1 11 "Female" "NC" 0 1 0 0 "Yes" 3 1 1 1 11 "Female" "NC" 1 0 1 0 "Yes" 3 1 1 1 11 "Female" "NC" 1 1 1 0 "Yes" 3 1 1 1 11 "Female" "NC" 1 0 0 0 "Yes" 3 1 1 1 11 "Female" "NC" 1 1 0 0 "No" 3 1 1 0 11 "Female" "NC" 0 0 0 0 "Yes" 3 1 1 1 11 "Female" "NC" 1 0 0 0 "Yes" 3 1 1 1 11 "Female" "NC" 0 0 1 0 "Yes" 3 1 1 1 11 "Female" "NC" 1 0 1 0 "No" 3 1 1 0 11 "Female" "NC" 1 0 0 1 "Yes" 3 1 1 1 11 "Female" "NC" 1 0 1 0 "Yes" 3 1 1 1 11 "Female" "NC" 0 0 1 0 "Yes" 3 1 1 1 11 "Female" "NC" 1 0 0 0 "Yes" 3 1 1 1 11 "Female" "NC" 0 0 0 0 "Yes" 3 1 1 1 11 "Female" "NC" 0 1 0 1 "No" 3 1 1 0 11 "Female" "NC" 1 0 0 0 "Yes" 3 1 1 1 11 "Female" "NC" 1 0 0 0 "Yes" 3 1 1 1 11 "Female" "NC" 0 1 0 0 "Yes" 3 1 1 1 12 "Female" "NC" 0 1 0 1 "Yes" 3 1 1 1 12 "Female" "NC" 0 1 0 1 "No" 3 1 1 0 12 "Female" "NC" 0 1 0 1 "No" 3 1 1 0 12 "Female" "NC" 0 1 1 0 "Yes" 3 1 1 1 12 "Female" "NC" 1 0 1 1 "Yes" 3 1 1 1 12 "Female" "NC" 0 0 0 0 "Yes" 3 1 1 1 12 "Female" "NC" 0 1 1 0 "No" 3 1 1 0 12 "Female" "NC" 0 0 1 0 "Yes" 3 1 1 1 12 "Female" "NC" 0 0 1 1 "Yes" 3 1 1 1 12 "Female" "NC" 0 1 1 0 "Yes" 3 1 1 1 12 "Female" "NC" 0 0 0 0 "Yes" 3 1 1 1 12 "Female" "NC" 1 1 1 0 "No" 3 1 1 0 12 "Female" "NC" 1 0 0 0 "No" 3 1 1 0 12 "Female" "NC" 1 0 1 0 "No" 3 1 1 0 12 "Female" "NC" 0 0 0 0 "No" 3 1 1 0 12 "Female" "NC" 0 0 0 1 "No" 3 1 1 0 12 "Female" "NC" 1 0 1 0 "Yes" 3 1 1 1 12 "Female" "NC" 0 0 0 0 "No" 3 1 1 0 13 "Female" "NC" 1 1 1 1 "No" 3 1 1 0 13 "Female" "NC" 0 1 1 1 "No" 3 1 1 0 13 "Female" "NC" 0 0 0 0 "Yes" 3 1 1 1 13 "Female" "NC" 0 0 1 1 "No" 3 1 1 0 13 "Female" "NC" 0 0 1 0 "No" 3 1 1 0 13 "Female" "NC" 0 0 1 0 "NO DATA" 3 1 1 -1 13 "Female" "NC" 1 0 1 0 "No" 3 1 1 0 13 "Female" "NC" 0 1 1 0 "No" 3 1 1 0 13 "Female" "NC" 1 1 1 1 "Yes" 3 1 1 1 13 "Female" "NC" 0 0 0 0 "No" 3 1 1 0 13 "Female" "NC" 0 1 1 1 "No" 3 1 1 0 13 "Female" "NC" 0 0 1 0 "No" 3 1 1 0 13 "Female" "NC" 0 0 1 0 "No" 3 1 1 0 13 "Female" "NC" 0 0 0 1 "Yes" 3 1 1 1 13 "Female" "NC" 0 1 1 1 "No" 3 1 1 0 13 "Female" "NC" 0 0 1 1 "No" 3 1 1 0 13 "Female" "NC" 0 0 1 0 "NO DATA" 3 1 1 -1 13 "Female" "NC" 0 0 1 0 "Yes" 3 1 1 1 13 "Female" "NC" 0 1 1 0 "No" 3 1 1 0 13 "Female" "NC" 0 0 1 1 "No" 3 1 1 0 13 "Female" "NC" 0 1 1 0 "No" 3 1 1 0 13 "Female" "NC" 0 0 1 0 "No" 3 1 1 0 13 "Female" "NC" 0 1 1 0 "No" 3 1 1 0 13 "Female" "NC" 0 1 1 1 "No" 3 1 1 0 13 "Female" "NC" 0 0 0 0 "Yes" 3 1 1 1 13 "Female" "NC" 0 1 1 0 "No" 3 1 1 0 13 "Female" "NC" 0 1 1 1 "No" 3 1 1 0 13 "Female" "NC" 0 0 1 0 "No" 3 1 1 0 14 "Female" "NC" 0 0 1 0 "No" 4 1 1 0 14 "Female" "NC" 0 0 0 0 "No" 4 1 1 0 14 "Female" "NC" 1 0 0 0 "No" 4 1 1 0 14 "Female" "NC" 0 1 0 1 "No" 4 1 1 0 14 "Female" "NC" 0 0 1 0 "No" 4 1 1 0 14 "Female" "NC" 0 1 0 0 "Yes" 4 1 1 1 14 "Female" "NC" 0 1 1 1 "Yes" 4 1 1 1 14 "Female" "NC" 0 1 0 0 "No" 4 1 1 0 14 "Female" "NC" 0 0 1 0 "No" 4 1 1 0 14 "Female" "NC" 0 0 0 0 "No" 4 1 1 0 14 "Female" "NC" 0 0 1 0 "No" 4 1 1 0 14 "Female" "NC" 0 1 1 1 "No" 4 1 1 0 14 "Female" "NC" 0 1 1 1 "NO DATA" 4 1 1 -1 14 "Female" "NC" 1 1 1 1 "No" 4 1 1 0 14 "Female" "NC" 0 1 1 1 "No" 4 1 1 0 14 "Female" "NC" 0 1 0 1 "No" 4 1 1 0 end
Comment