1. Fit a logistic regression model using “d3” (1 = happy or very happy, 0 otherwise) as the dependent variable and place of residence (with rural residence as the reference category) as the independent variable, and interpret the residence coefficient in terms of odds ratios.
2. In model 2, add controls for age, sex, marital status, education, family income, and self-reported health. Construct a 95% confidence interval for the odds ratio comparing urban and rural residents.
3. In model 3, test the hypothesis that the effect of place of residence varies depending upon education.
这三个具体应该怎么实施
数据文件包含了1000多个人的信息,包括幸福与否,年龄性别,居住在农村还是城市等等的变量