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-
svycal rakeI am in charge of weighting survey data of teens in Utah. I have been working my way through the Sta…
Weakly balanced Panel Data SetHi Statalisters, I am a novice user in Stata and it's my first post. I'm working with Stata.14 and …
How to correlate inflation and employment?Hi I'm working on my thesis and I'm using inflation and its effects on MSMEs. I have a small sample …
Using foreach or forvalues to divide two variablesHello everyone, I am in desperate need so please forgive me for not reading over the rules on how t…
ordered probit IV using cmpDear all, I am using the cmp command for instrumental variable in my ordered probit model. I got thi…
Subscribe to:
Post Comments (Atom)
0 Response to Struggling with -mkspline-
Post a Comment