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.
11 stars 11 forks source link

Cost removed from output_ex #117

Open KateJohnson opened 1 year ago

KateJohnson commented 1 year 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 1 year 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;