. logistic group helmet#alcohol sex i.age3g
Logistic regression Number of obs = 476
LR chi2(6) = 16.81
Prob > chi2 = 0.0100
Log likelihood = -211.86171 Pseudo R2 = 0.0382
--------------------------------------------------------------------------------
group | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]
---------------+----------------------------------------------------------------
helmet#alcohol |
0 1 | 1.922946 .5750735 2.19 0.029 1.070059 3.455622
1 0 | .9558263 .3665371 -0.12 0.906 .4507784 2.026725
1 1 | 1.216673 .8456591 0.28 0.778 .3115579 4.751261
|
sex | 1.749595 .5530023 1.77 0.077 .9416605 3.250728
|
age3g |
1 | 1.539311 .7458824 0.89 0.373 .5954862 3.979067
2 | 1.233784 .5964498 0.43 0.664 .4783458 3.182267
|
_cons | .0830631 .0422872 -4.89 0.000 .0306242 .2252954
--------------------------------------------------------------------------------
Note: _cons estimates baseline odds.
Subgroup = teenage and young adult (<=35 years)
. logistic group helmet#alcohol sex if age3g==2
Logistic regression Number of obs = 214
LR chi2(4) = 15.86
Prob > chi2 = 0.0032
Log likelihood = -90.604933 Pseudo R2 = 0.0805
--------------------------------------------------------------------------------
group | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]
---------------+----------------------------------------------------------------
helmet#alcohol |
0 1 | 2.106197 .9290655 1.69 0.091 .887207 5.000033
1 0 | .2952725 .234776 -1.53 0.125 .0621468 1.402902
1 1 | 1.007739 1.167511 0.01 0.995 .1040381 9.761205
|
sex | 1.927105 1.075916 1.18 0.240 .6451693 5.756213
_cons | .1029857 .0505973 -4.63 0.000 .0393168 .2697588
--------------------------------------------------------------------------------
Note: _cons estimates baseline odds.
Subgroup = male
. logistic group helmet#alcohol i.age3g if sex==1
Logistic regression Number of obs = 301
LR chi2(5) = 5.63
Prob > chi2 = 0.3437
Log likelihood = -152.9254 Pseudo R2 = 0.0181
--------------------------------------------------------------------------------
group | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]
---------------+----------------------------------------------------------------
helmet#alcohol |
0 1 | 2.005804 .6777053 2.06 0.039 1.034407 3.889429
1 0 | 1.027785 .5100302 0.06 0.956 .3885975 2.718343
1 1 | 1.33066 .9411435 0.40 0.686 .3326848 5.322323
|
age3g |
1 | 1.040029 .5416221 0.08 0.940 .3747656 2.886229
2 | .9703574 .4924412 -0.06 0.953 .3588891 2.623634
|
_cons | .1856619 .0905186 -3.45 0.001 .0714041 .4827497
--------------------------------------------------------------------------------
Note: _cons estimates baseline odds.
.