Dear Professor Lambert, Professor Royston and other statalists,
I am doing prognostic modelling and I would like to do internal validation and get Dxy, R2, slope, D (as example below in R from function validate from rms package)
So I can use new c statistics, shrunk model and new intercept.
index.orig training test optimism index.corrected n
Dxy 0.4393 0.4676 0.4066 0.0610 0.3783 200
R2 0.0614 0.0742 0.0529 0.0213 0.0400 200
Slope 1.0000 1.0000 0.8613 0.1387 0.8613 200
D 0.0518 0.0632 0.0444 0.0189 0.0329 200
U -0.0034 -0.0036 0.0037 -0.0073 0.0038 200
Q 0.0552 0.0668 0.0406 0.0262 0.0291 200
g 0.8751 0.9585 0.8046 0.1538 0.7213 200
How I get these information after I use stpm2 command, please?
Also, if I use MICE or ICE package how can I use with stpm2 and do internal validation, please?
P.S I cannot get these values from R with function validate because it doesn't support rstpm2 package
P.S I have tried boostrap command in stata but it can display only bootstrp standard error. How can I get optimism and index.corrected?
I am doing prognostic modelling and I would like to do internal validation and get Dxy, R2, slope, D (as example below in R from function validate from rms package)
So I can use new c statistics, shrunk model and new intercept.
index.orig training test optimism index.corrected n
Dxy 0.4393 0.4676 0.4066 0.0610 0.3783 200
R2 0.0614 0.0742 0.0529 0.0213 0.0400 200
Slope 1.0000 1.0000 0.8613 0.1387 0.8613 200
D 0.0518 0.0632 0.0444 0.0189 0.0329 200
U -0.0034 -0.0036 0.0037 -0.0073 0.0038 200
Q 0.0552 0.0668 0.0406 0.0262 0.0291 200
g 0.8751 0.9585 0.8046 0.1538 0.7213 200
How I get these information after I use stpm2 command, please?
Also, if I use MICE or ICE package how can I use with stpm2 and do internal validation, please?
P.S I cannot get these values from R with function validate because it doesn't support rstpm2 package
P.S I have tried boostrap command in stata but it can display only bootstrp standard error. How can I get optimism and index.corrected?
Comment