resplab / epicR

R package for the Evaluation Platform in COPD (EPIC), an agent-based whole-disease model for projection of health and economic outcomes and COPD interventions.
12 stars 11 forks source link

Cost removed from output_ex #117

Open KateJohnson opened 2 years ago

KateJohnson commented 2 years ago

The following cost outputs have been commented out of the C code, can we add them back in?

//Rcpp::Named("cumul_cost_ctime")=AS_VECTOR_DOUBLE_SIZE(output_ex.cumul_cost_ctime,input.global_parameters.time_horizon), //Rcpp::Named("cumul_cost_gold_ctime")=AS_MATRIX_DOUBLE_SIZE(output_ex.cumul_cost_gold_ctime,input.global_parameters.time_horizon), //Rcpp::Named("cumul_qaly_ctime")=AS_VECTOR_DOUBLE_SIZE(output_ex.cumul_qaly_ctime,input.global_parameters.time_horizon), //Rcpp::Named("cumul_qaly_gold_ctime")=AS_MATRIX_DOUBLE_SIZE(output_ex.cumul_qaly_gold_ctime,input.global_parameters.time_horizon),

KateJohnson commented 2 years ago

Annual costs and QALY's were removed from agent variables:

  //output_ex.cumul_cost_ctime[time]+=(*ag).annual_cost;
  //output_ex.cumul_cost_gold_ctime[time][(*ag).gold]+=(*ag).annual_cost;
  //output_ex.cumul_qaly_ctime[time]+=(*ag).annual_qaly;
  //output_ex.cumul_qaly_gold_ctime[time][(*ag).gold]+=(*ag).annual_qaly;