Learn R Programming

sms (version 2.3.1)

run_serial: Run_serial

Description

Run a simulation in serial mode

Usage

run_serial(insms)

Arguments

insms
A microsimulation object which holds the data and details of the simulation such as iterations, lexicon.

Value

msm_results An object with the results of the simulation, for each area.

Details

Run a simulation in serial mode.

Examples

Run this code
library(sms)
data(survey)
data(census)
in.lexicon=createLexicon()
in.lexicon=addDataAssociation(in.lexicon, c("he","he"))
in.lexicon=addDataAssociation(in.lexicon, c("females","female"))

insms= new("microsimulation",census=census, panel=survey, lexicon=in.lexicon, iterations=5)
results= run_serial( insms)
print(results)

Run the code above in your browser using DataLab