Learn R Programming

SPOT (version 2.1.10)

parseTunedRegionModel: parseTunedRegionModel

Description

Parse results from the tuneRegionModel function, i.e., results from a spot run on funMarkovChain

Usage

parseTunedRegionModel(xList)

Arguments

xList

list of results from spot run

Value

returns the following list of 3:

models

data.frame with obs. of 7 variables:

p

num, e.g., 27373033

beta

num

gamma

num

CFR

num

cost

num

region

chr, e.g., "Afghanistan/"

regionPopulation

num population

pops

list of x values for countries, i.e., spot population generated at each generation, e.g., Afghanistan/: num [1:6, 1:4] 32039478 28078906 23529925 11257083 9883189 ...

. Here, 6 function evaluations were performed and the search space is 4-dim.
y

function values for pops

Examples

Run this code
# NOT RUN {
require(SimInf)
data <- preprocessInputData(regionTrain, regionPopulation)
resList <- lapply(data[1], tuneRegionModel, pops=NULL, control=list(funEvals=6, 
designControl=list(size=5), model = buildLM))
parsedList <- parseTunedRegionModel(resList)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab