Displaying 1 result from an estimated 1 matches for "predictors2".
Did you mean:
predictors
2010 Jan 21
3
cross validation function translated from stata
...200 times. The corrected net benefit for each
threshold probability is the mean across the 200 replications.
=================================================================
First is stata code.
forvalues i=1(1)200 {
local event="cancer"
local predictors1 = "total_psa"
local predictors2 = "total_psa free_psa"
local prediction1 = "base"
local prediction2 = "full"
g `prediction1'=.
g `prediction2'=.
quietly g u = uniform()
sort `event' u
g set = mod(_n, 10) + 1
forvalues j=1(1)10{
quietly logit `event' `predictors1' if set~=`j'...