callFhcrc | R Documentation |
Function to specify and run the microsimulation. A large number
of simulated men, n
, will cause the simulation to take longer time
but will reduce the stochastic variation particularly for rare events.
callFhcrc( n = 10, screen = "noScreening", nLifeHistories = 10, seed = 12345, panel = FALSE, flatPop = FALSE, pop = pop1, tables = IHE, debug = FALSE, parms = NULL, mc.cores = 1, cl = NULL, print.timing = TRUE, ... )
n |
Integer number of men to simulate. Default: 10 |
screen |
String with one of the following simulated screening scenarios:
. Default: 'noScreening' |
nLifeHistories |
Integer with number of men for all events should be recorded, Default: 10 |
seed |
Integer random number seed, Default: 12345 |
panel |
Boolean to use the Stockholm3 biomarker panel test characteristics, otherwise PSA is used, Default: FALSE |
flatPop |
Boolean to set all birth cohorts of equal size, Default: FALSE |
pop |
Data.frame with two integer columns |
tables |
List of data.frames to update the tables in fhcrcData, Default: IHE (NB: fhcrcData$ptrx gets changed below to stockholmTreatment if parameters$stockholmTreatment = TRUE – which is the default! This implies that IHE is the default when parameters$stockholmTreatment = FALSE) |
debug |
Boolean to print debugging, Default: FALSE |
parms |
List to update FhcrcParameters, Default: NULL |
mc.cores |
Integer with the number of cores to use for the computation, Default: 1 |
cl |
a cluster object, created by the |
print.timing |
Boolean should the required time be printed after the simulation run, Default: TRUE |
... |
TBA |
TBA
A fhcrc object
mclapply
## Not run: if(interactive()){ library(prostata) sim1 <- callFhcrc(n=1e6, screen="screenUptake", mc.cores=3) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.