Dear Statalist,
I need help for the following issue
I have a variable named "age_midpoint" which is
I did restricted cubic spline using
mkspline age_knots_3 3 = age_midpoint, displayknots
mkspline agesp_3=age_midpoint, cubic knots(36.66667 63.33333 )
regress service_item_age_gender_10 agesp_3*
How could I get predictions for following "age_midpoint"s which are
Regards,
I need help for the following issue
I have a variable named "age_midpoint" which is
age_midpoint | |
5<=x<15 "5-14" | 10 |
15<=x<25 "15-24" | 20 |
25<=x<35 "25-34" | 30 |
35<=x<45 "35-44" | 40 |
45<=x<55 "45-54" | 50 |
55<=x<65 "55-64" | 60 |
65<=x<75 "65-74" | 70 |
75<=x<85 "75-84" | 80 |
85<=x<95 ">85" | 90 |
I did restricted cubic spline using
mkspline age_knots_3 3 = age_midpoint, displayknots
mkspline agesp_3=age_midpoint, cubic knots(36.66667 63.33333 )
regress service_item_age_gender_10 agesp_3*
How could I get predictions for following "age_midpoint"s which are
age_midpoint | |
5<=x<10 "5-9" | 7.5 |
10<=x<15 "10-14" | 12.5 |
15<=x<20 "15-19" | 17.5 |
20<=x<25 "20-24" | 22.5 |
25<=x<30 "25-29" | 27.5 |
30<=x<35 "30-34" | 32.5 |
35<=x<40 "35-39" | 37.5 |
40<=x<45 "40-44" | 42.5 |
45<=x<50 "45-49" | 47.5 |
50<=x<55 "50-54" | 52.5 |
55<=x<60 "55-59" | 57.5 |
60<=x<65 "60-64" | 62.5 |
65<=x<70 "65-69" | 67.5 |
70<=x<75 "70-74" | 72.5 |
75<=x<80 "75-79" | 77.5 |
80<=x<85 "80-84" | 82.5 |
85<=x<90 "85-89" | 87.5 |
90<=x<95 "90-94" | 92.5 |
Regards,
Comment