Learn R Programming

rrepast (version 0.4.0)

BuildParameterSet: Builds the simulation parameter set

Description

Merges the design matrix with parameters which will be keep fixed along simulation runs.

Usage

BuildParameterSet(design, parameters)

Arguments

design
-- The experimental desing matrix for at least one factor
parameters
-- All parameters of the repast model.

Value

  • A data frame holding all parameters required for running the model

Examples

Run this code
modeldir<- "c:/usr/models/BactoSim(HaldaneEngine-1.0)"
   e<- Model(modeldir=modeldir,dataset="ds::Output")
   Load(e)
   
   f<- AddFactor(name="cyclePoint",min=40,max=90)
   
   p<- GetSimulationParameters(e)
   
   d<- LatinHypercube(factors=f)
   
   p1<- BuildParameterSet(d,p)

Run the code above in your browser using DataLab