Hello all
I need to write my own STATA program that combines two commands into one, in order to bootstrap the value "Harrell's C statistic" I get from these commands.
These are my commands: 1) stcox age gender sex ecog 2) estat concordance
Here is what I have so far:
program define Cscore, rclass
stcox age gender sex ecog if ecog<3
estat concordance
return scalar tqm=r(mean)
end
I based the code I wrote from an example I found on this website under "Bootstrapping Results You've Calculated." https://www.ssc.wisc.edu/sscc/pubs/4-27.htm
The 4th line "return scalar tqm=r(mean)" is what is giving me trouble. The statistic I need is the output I get from estat concordance called the "Harrell's C." What exactly am I supposed to put in inside the parenthesis that says "mean"?
Thank you so much!
I need to write my own STATA program that combines two commands into one, in order to bootstrap the value "Harrell's C statistic" I get from these commands.
These are my commands: 1) stcox age gender sex ecog 2) estat concordance
Here is what I have so far:
program define Cscore, rclass
stcox age gender sex ecog if ecog<3
estat concordance
return scalar tqm=r(mean)
end
I based the code I wrote from an example I found on this website under "Bootstrapping Results You've Calculated." https://www.ssc.wisc.edu/sscc/pubs/4-27.htm
The 4th line "return scalar tqm=r(mean)" is what is giving me trouble. The statistic I need is the output I get from estat concordance called the "Harrell's C." What exactly am I supposed to put in inside the parenthesis that says "mean"?
Thank you so much!
Comment