I'm struggling on interpreting the output after using the mkspline command.
I have a continuous exposure (N=721) called "norepi_equi_x" and want to model this independent variable using a competing risk model for three possible outcome: 1) event of interest, and (2) competing event, where participants are censored by 96 hours.
mkspline sp_vp = norepi_equi_x, displayknots cubic
knots are then located as below:
| knot1 knot2 knot3 knot4 knot5
-------------+-------------------------------------------------------
norepi_equi_x | .02 .05 .1 .2 1.0564
stset rtime, failure(rstatus==1) exit(time 96)
stcrreg sp_vp* age i.sex elixsum ap2_admit sofa_score_day_before_ext i.icu_class i.admission_type, vce(cluster icu_site) compete(rstatus==2)
Array
I don't quite understand how to trouble shoot what is going with these non-sensical results.
The distribution of my exposure variable (and this captures the dose of a medication):
Array
The first spline models the exposure as a linear relationship, which isn't appropriate for this setting. I don't now how to troubleshoot why each of the subsequent splines don't produce a result.
Thank you for your help.
Related Posts with Struggling with -mkspline-
generating household size variableI'm using Household Income Expenditure Survey data for a research. But there is no variable called H…
Multiple Imputation on Panel Data - Error regarding variance-covariance matrix (EM did not converge)Dear All, I am tackling my thesis and i have panel data on around 150 companies between the years 2…
Dropping observations based on multiple conditionsHi. I am pasting a sample of the date of I am working with: Code: * Example generated by -dataex-.…
code for testing of multiple unknown structural breaksI´m using stata 16 with windows 10 OS. I want to identify multiple structural break of unknown date…
Computing predictive margins (mimrgns) for gsem with random effectsDear Statalisters, I would much appreciate your help with the following problem: I am not able to …
Subscribe to:
Post Comments (Atom)
0 Response to Struggling with -mkspline-
Post a Comment