Hello,
I have a OLS cost model with the cost of health care as the dependent variable and a series of 'need' and 'supply' variables as independent variables. The sample is vary large (over 50,000,000) observations and 800+ independent variables.
One of the need variables is age, and the model was developed using age splines with 18 knots:
mkspline asp0 1 asp1 5 asp2 10 asp3 15 asp4 20 asp5 25 asp6 30 asp7 35 asp8 40 asp9 45 asp10 50 asp11 55 asp12 60 asp13 65 asp14 70 asp15 75 asp16 80 asp17 85 asp18 = age_variable, marginal.
I have been asked to illustrate in a graph the consequence or benefits of using splines as opposed to age dummies (quinary age bands). While I can explain the difference and potential benefits, I am not sure how to illustrate it, especially with so many observations. Ideally I guess, you would graph the shape of the linear predictor against age for the model with splines and then graph the linear predictor for the model with dummies against age and see the difference. Not sure how to do this though or if it is correct.
has anybody had any experience of this before?
Related Posts with Graphing comparison of model using linear age splines vs age dummies
Create variables with loopHi, i would like to create some variables with loop. I have 5 variables : switch1 / switch2 /.../ sw…
sivqr now on SSC (for IV quantile regression)The command sivqr (smoothed instrumental variables quantile regression) is now available on SSC, tha…
How to estimate the marginal effect after truncated regression?Dear all, I am trying to estimate the marginal effect after truncated regression, but when using the…
Replace missing values with observations randomly generated based on a prespecified criteriaHi everyone, I am using DHS data for all countries for some exploratory analysis. The variable reli…
varsoc with logarithms variablesI've transformed my variables into logarithms to analyze their elasticities, when I run the command …
Subscribe to:
Post Comments (Atom)
0 Response to Graphing comparison of model using linear age splines vs age dummies
Post a Comment