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
Independent variable is not significant when run alone, however when I include it in an index it is significant. How should I proceed?I am writing a research project on the impact of freedom in countries on the handling of COVID-19, w…
GMM: Forward and backward orthogonal deviations (xtabond2)Dear Statalisters, it is the first time I use GMM and xtabond2. Playing around with the syntax, aft…
How to estimate Hierarchical Linear Models in this case?Dear all, I have a pooled dataset of 16 countries and I want to estimate hierarchical linear models…
margins after an unconditional melogit modelI'm trying to understand what the margins command does after an unconditional melogit model. Specifi…
Connecting Stata to Snowflake ODBCHello all. I'm looking for some assistance or guidance in setting up a Snowflake ODBC connection for…
Subscribe to:
Post Comments (Atom)
0 Response to Graphing comparison of model using linear age splines vs age dummies
Post a Comment