That is what the code in #4 does.
-
Login or Register
- Log in with
bq_lfsat1 | Satisfaction with: health |
ln_ann_inc | Log of Annual Income/ bq_fiyr |
bq_lfsat5 | Satisfaction with: job |
bq_lfsat6 | Satisfaction with: social life |
bq_lfsat7 | Satisfaction with: amount of leisure time |
gen missing_income = missing(br_fiyr) gen byte included = inrange(age, 25, 29) by missing_income included (br_fiyr), sort: gen age_25_29_rel_rank = (_n-1)/(_N-1) /// if !missing_income & included
regress ....c.bq_age_dv##c.bq_age_dv.... local turning_point = -_b[bq_age_dv]/(2*_b[bq_age_dv#bq_age_dv]) margins, at(bq_age_dv= (25(5)75)) marginsplot, xline(`turning_point')
Comment