Statistical Analysis
For the analysis, an ordered logistic regression model will be used. The ordered logistic is regression is precisely used when the dependent variable is categorical with multiple categories. Also, we will use an bivariate table to analyze the key independent and the dependent variables. This would help us to see the percentage of cases in each category of mental distress level and also help us understand the stregth of the effect of independent variables.
glimpse(nhis)
## Observations: 795,645
## Variables: 29
## $ YEAR <int> 2010, 2010, 2010, 2010, 2010, 2010, 2010, 2010, 20...
## $ SERIAL <int> 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 5, 6, 6, 6, 6, 9, 9,...
## $ STRATA <int> 6001, 6001, 6001, 6249, 6249, 6249, 6045, 6045, 60...
## $ PSU <int> 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2,...
## $ NHISHID <int> 2010000001, 2010000001, 2010000001, 2010000002, 20...
## $ HHWEIGHT <int> 3042, 3042, 3042, 1124, 1124, 1124, 3713, 3713, 37...
## $ NHISPID <dbl> 2.01e+13, 2.01e+13, 2.01e+13, 2.01e+13, 2.01e+13, ...
## $ HHX <int> 1, 1, 1, 2, 2, 2, 6, 6, 6, 6, 8, 9, 9, 9, 9, 13, 1...
## $ FMX <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,...
## $ PX <int> 1, 2, 3, 1, 2, 3, 1, 2, 3, 4, 1, 1, 2, 3, 4, 1, 2,...
## $ PERNUM <int> 1, 2, 3, 1, 2, 3, 1, 2, 3, 4, 1, 1, 2, 3, 4, 1, 2,...
## $ PERWEIGHT <int> 3248, 3981, 3181, 1454, 1370, 1607, 4661, 4396, 42...
## $ SAMPWEIGHT <int> 6011, 0, 2895, 0, 0, 8310, 11865, 0, 8702, 0, 3501...
## $ FWEIGHT <int> 3181, 3181, 3181, 1370, 1370, 1370, 4228, 4228, 42...
## $ ASTATFLG <int> 1, 3, 0, 3, 3, 1, 1, 3, 0, 0, 1, 3, 2, 0, 0, 3, 3,...
## $ CSTATFLG <int> 0, 0, 1, 0, 0, 0, 0, 0, 1, 3, 0, 0, 0, 1, 3, 0, 0,...
## $ SEX <int> 2, 1, 2, 2, 2, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1, 1, 2,...
## $ ALCAMT <int> 20, 0, 0, 0, 0, 40, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0...
## $ CIGDAYMO <int> 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96...
## $ CIGSDAY <int> 96, 96, 96, 96, 96, 96, 60, 96, 96, 96, 96, 96, 96...
## $ CIGSDAY1 <int> 0, 0, 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
## $ CIGSDAY2 <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
## $ AEFFORT <int> 0, 6, 6, 6, 6, 0, 3, 6, 6, 6, 0, 6, 6, 6, 6, 6, 6,...
## $ AFEELINT1MO <int> 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,...
## $ AHOPELESS <int> 0, 6, 6, 6, 6, 0, 1, 6, 6, 6, 0, 6, 6, 6, 6, 6, 6,...
## $ ANERVOUS <int> 0, 6, 6, 6, 6, 1, 3, 6, 6, 6, 2, 6, 6, 6, 6, 6, 6,...
## $ ARESTLESS <int> 0, 6, 6, 6, 6, 0, 4, 6, 6, 6, 2, 6, 6, 6, 6, 6, 6,...
## $ ASAD <int> 0, 6, 6, 6, 6, 1, 1, 6, 6, 6, 2, 6, 6, 6, 6, 6, 6,...
## $ AWORTHLESS <int> 0, 6, 6, 6, 6, 0, 1, 6, 6, 6, 2, 6, 6, 6, 6, 6, 6,...