Microsimulation API
|
#include "event-r.h"
#include <Rcpp.h>
Go to the source code of this file.
Classes | |
class | Person |
Class to simulate a person. More... | |
Enumerations | |
enum | gleason_t { nogleason, gleasonLt7, gleason7, gleasonGt7 } |
enum for type of Gleason score More... | |
enum | stage_t { Healthy, Localised, DxLocalised, LocallyAdvanced, DxLocallyAdvanced, Metastatic, DxMetastatic, Death } |
enum of type of disease stage More... | |
Functions | |
double | dxHR (stage_t stage) |
double | progressionHR (gleason_t gleason) |
void | callPersonSimulation (int *inseed, double *parms, int *nin, double *out, int *nout) |
void | testRng (int *inseed, double *out) |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html
Microsimulation of prostate cancer.
TODO other causes of death - incorporate rates other transitions age-specific reporting of state probabilities
Definition in file person-r-20121231.cc.
enum gleason_t |
enum for type of Gleason score
Enumerator | |
---|---|
nogleason | |
gleasonLt7 | |
gleason7 | |
gleasonGt7 |
Definition at line 37 of file person-r-20121231.cc.
enum stage_t |
enum of type of disease stage
Enumerator | |
---|---|
Healthy | |
Localised | |
DxLocalised | |
LocallyAdvanced | |
DxLocallyAdvanced | |
Metastatic | |
DxMetastatic | |
Death |
Definition at line 40 of file person-r-20121231.cc.
void callPersonSimulation | ( | int * | inseed, |
double * | parms, | ||
int * | nin, | ||
double * | out, | ||
int * | nout | ||
) |
Definition at line 194 of file person-r-20121231.cc.
double dxHR | ( | stage_t | stage | ) |
Hazard ratio for diagnosis
stage | Disease stage |
Definition at line 80 of file person-r-20121231.cc.
double progressionHR | ( | gleason_t | gleason | ) |
Hazard ratio for progression
gleason | Gleason category |
Definition at line 90 of file person-r-20121231.cc.
void testRng | ( | int * | inseed, |
double * | out | ||
) |
Definition at line 222 of file person-r-20121231.cc.