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
Stata odbc query column labels from impalaI am trying to access data from impala sql into Stata: Code: clear all #delimit; odbc load, exec…
using a separate time variable and am/pm indicator variable to generate a military time variableHi, I briefly dug into this and could not find an answer. I have 3 variables: a date variable, a ti…
fixed effects specification: dummies (LSDV) vs within estimatorHello everyone, I have a question on the various specifications of a fixed effect model. I always …
Chow test in panel dataHi all, My estimated equation takes form of: ln(I)=B1ln(w1)+B2ln(w2)+B3ln(w3)+(control variables)+e…
quasi-panel made out of cross-sectional dataHi all, Does anybody know how to create a quasi-panel data out of the cross-sectional data. I have a…
Subscribe to:
Post Comments (Atom)
0 Response to Code for Cost-Effectiveness Acceptability Curve
Post a Comment