Hello
Does anyone have simple code to create a cost-effectiveness acceptability curve?
I have a dataset that has 2 columns - one columne (inc_dep_cci) with 1000 bootstrapped estimates of incremental effect and the other column (inc_cost_cci) with 1000 bootstrapped estimates of incremental costs between two care environments.
When I use the below code, the estimates of probability cost-effective keeps coming up 0.
capture postutil clear
postfile ceac n probce using "ceac.dta", replace // Set-up 'postfile' to store results
use "P:\Omar Projects\Paloma\OSCAR Aim 3\Aim 3 Data Files\bootstrap_mnar.dta", clear
gen n = _n in 1/1000
count if ~missing(inc_dep_cci)
local denom = r(N)
forvalues n=1/1000 {
count if (inc_dep_cci*`n' - inc_cost_cci) > 0
post ceac (`n') ( r(N)/`denom' ) // Proportion of cost-effective BS replicates
}
postclose ceac
Any help is greatly appreciated.
Thank you,
Marta
Related Posts with Code for Cost-Effectiveness Acceptability Curve
Seeking advice on how to address the correlations of error terms across simultaneous equationsHello statalist users, I was trying to find some advice on addressing the correlations of error ter…
Regression for all possible combinations of variablesHello all, I am a new STATA user and trying to run a foreach regression loop. I have 32 independent…
Monthly excess returnHello! fundnr year mktrf smb hml mom mf_u_mnret 1 2015 .59 -2.97 1.85 -7.37 .0218749 1 2012 -.85 -.…
Panel data - matching observations from an unsorted datasetDear all, I have a panel dataset No.1 with multiple variables, including time, personal id, educati…
Line graph for categorical dataHi, I have a problem of translating my categorical data into a line graph showing change over time. …
Subscribe to:
Post Comments (Atom)
0 Response to Code for Cost-Effectiveness Acceptability Curve
Post a Comment