Learn R Programming

sms (version 2.3.1)

run_parallel_HC: run_parallel_HC

Description

Run a simulation in serial mode with Hill Climbing

Usage

run_parallel_HC(insms, inseed = -1)

Arguments

insms
A microsimulation object which holds the data and details of the simulation such as iterations, lexicon.
inseed
A number to be used for random seed.

Value

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

Details

Run a simulation in serial mode with Hill Climbing

Examples

Run this code
library(sms)
data(survey) #load the data
data(census)
in.lexicon=createLexicon() # Create a data lexicon for holding the associated column names.
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=10)
re=run_parallel_HC(insms, inseed=1900)
print(re)

Run the code above in your browser using DataLab