-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.h
170 lines (156 loc) · 4.46 KB
/
outputs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
//
// Created by Jamie Cohen on 11/29/17.
//
#ifndef HPVVaccine_OUTPUTS_H
#define HPVVaccine_OUTPUTS_H
#include "woman.h"
#include "inputs.h"
#include <vector>
#include <fstream>
#include <iostream>
#include <cmath>
typedef vector<vector<int> > IntMatrix;
typedef vector<vector<double> > DoubleMatrix;
typedef vector<vector<vector<int> > > Int3DMatrix;
typedef vector<vector<vector<double> > > Double3DMatrix;
class Output {
public:
Int3DMatrix trace;
Double3DMatrix inc;
DoubleMatrix prev;
IntMatrix TotalPrevCancer;
IntMatrix TotalCancer;
IntMatrix TotalDetectedCancer;
IntMatrix TotalCancer_1618;
IntMatrix TotalCancer_nonavalent;
IntMatrix TotalCancer_allother;
IntMatrix TotalCancerDenom;
vector<int> TotalDetectedCancer_byyear;
vector<int> CancerDenom_byyear;
int totaldeadcancer;
IntMatrix TotalHPV;
IntMatrix total_alive;
DoubleMatrix LE;
vector<double > calib;
DoubleMatrix CaIncStandardized;
DoubleMatrix totalcancer_mort;
IntMatrix HPV16count;
IntMatrix HPV18count;
IntMatrix HPVcount;
IntMatrix HPV16denom;
IntMatrix HPV18denom;
IntMatrix HPVdenom;
int NormalCyto;
int HPV16;
int HPV18;
IntMatrix CAdead;
IntMatrix count;
IntMatrix CIN2count;
IntMatrix CIN3count;
IntMatrix CAcount;
IntMatrix DetectedCAcount;
IntMatrix denom;
IntMatrix CIN2denom;
IntMatrix CIN3denom;
IntMatrix CAdenom;
IntMatrix CIN2HIVneg;
IntMatrix CIN3HIVneg;
unsigned int cancer;
unsigned int CAotherHR;
unsigned int CA16;
unsigned int CA18;
unsigned int CA31;
unsigned int CA33;
unsigned int CA45;
unsigned int CA52;
unsigned int CA58;
unsigned int CIN316;
unsigned int CIN318;
unsigned int CIN331;
unsigned int CIN333;
unsigned int CIN345;
unsigned int CIN352;
unsigned int CIN358;
unsigned int CIN3otherHR;
unsigned int CIN3LR;
unsigned int CIN216;
unsigned int CIN218;
unsigned int CIN231;
unsigned int CIN233;
unsigned int CIN245;
unsigned int CIN252;
unsigned int CIN258;
unsigned int CIN2otherHR;
unsigned int CIN2LR;
unsigned int CIN2total;
unsigned int CIN3total;
IntMatrix hpvscreens;
IntMatrix papscreens;
IntMatrix vaccines;
int DwellTime_HPV_CIN_16_num;
int DwellTime_HPV_CIN_18_num;
int DwellTime_HPV_CIN_hi5_num;
int DwellTime_HPV_CIN_allhr_num;
int Dormancy_HPV_CIN_16_num;
int Dormancy_HPV_CIN_18_num;
int Dormancy_HPV_CIN_hi5_num;
int Dormancy_HPV_CIN_allhr_num;
int Latency_HPV_CIN_16_num;
int Latency_HPV_CIN_18_num;
int Latency_HPV_CIN_hi5_num;
int Latency_HPV_CIN_allhr_num;
int DwellTime_CIN_CA_16_num;
int DwellTime_CIN_CA_18_num;
int DwellTime_CIN_CA_hi5_num;
int DwellTime_CIN_CA_allhr_num;
int DwellTime_CA_16_denom;
int DwellTime_CA_18_denom;
int DwellTime_CA_hi5_denom;
int DwellTime_CA_allhr_denom;
int DwellTime_CA_16_latent_denom;
int DwellTime_CA_18_latent_denom;
int DwellTime_CA_hi5_latent_denom;
int DwellTime_CA_allhr_latent_denom;
int DwellTime_CA_detected_denom;
int DwellTime_CA_detected_num;
int causalHPV16age;
int causalHPV18age;
int causalHPVhi5age;
int causalHPVallhrage;
int ageoHR;
int age16;
int age18;
int age31;
int age33;
int age45;
int age52;
int age58;
IntMatrix causalHPV16ageMatrix;
IntMatrix causalHPV18ageMatrix;
IntMatrix causalHPVhi5ageMatrix;
IntMatrix causalHPVallhrageMatrix;
vector<double> cost;
vector<double> DALY;
vector<double> YLL;
vector<double> YLD;
double TotalCost;
double discDALY;
double TotalDALY;
double discCost;
double discountrate;
Output(Inputs &Tables, int y);
~Output(void);
void createTrace(Woman &Data, int y);
void writeInc(std::string *Outdir, int ModelStartAge, int ModelStopAge, int TotalSimYears);
void writeCEA(std::string *Outdir, int ModelStopAge, int TotalSimYears);
void writeMort(std::string *Outdir, int ModelStopAge, int TotalSimYears);
void createTypeDist(Woman &Data);
void createCalibOutput(int y);
void calcDwellTime(Woman &Data);
void writeDwellTime(std::string *Outdir, int TotalSimYears);
void calcValidation(Woman &Data);
void writeValidation(std::string *Outdir);
void writeCalibOutput(std::string *Outdir, std::string calib_targs_names);
void calcLE(Woman &Data, Inputs &Tables, int y);
};
#endif //HPV_OUTPUTS_H