Last data update: 2014.03.03

R: Set simulation horizon
setSimHorizonR Documentation

Set simulation horizon

Description

The function sets the simulation horizon of the microsimulation. The actual microsimulation is performed by micSim (sequentially) or by micSimParallel (parallel computing).

Usage

setSimHorizon(startDate, endDate)

Arguments

startDate

Starting date of simulation given as string of the format "dd/mm/yyyy".

endDate

End date of simulation given as string of the format "dd/mm/yyyy".

Details

The starting date has to precede the ending date.

Value

A vector of two chron objects indicating the simulation horizon of the simulation.

Author(s)

Sabine Zinn

Examples

setSimHorizon(startDate="01/01/2000", endDate="31/12/2010")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(MicSim)
Loading required package: chron
Loading required package: snowfall
Loading required package: snow
Loading required package: rlecuyer
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MicSim/setSimHorizon.Rd_%03d_medium.png", width=480, height=480)
> ### Name: setSimHorizon
> ### Title: Set simulation horizon
> ### Aliases: setSimHorizon
> 
> ### ** Examples
> 
> setSimHorizon(startDate="01/01/2000", endDate="31/12/2010")
[1] 01/Jan/2000 31/Dec/2010
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>