Description Usage Arguments Details Examples
Processes the case data to generate a list of metrics required for different aspects of evaluating model fit
1 | make.eval.set(fitdat, weekdates, unipix)
|
fitdat |
Casedata, see ?sgdat for format |
weekdates |
Two element vector of the start and end weeks of the simulation over which the mdoel will be evaluated over |
unipix |
Universal pixel lookup table, see ?make.unipix |
returns a list with three elements: i) weekly detialed number of cases per patch, ii) Moran's weights for each pixel (for calculating Morans I) iii) Weekly cumulative total cases
1 2 3 4 5 6 7 | data(sgdat)
data(sgpop)
sgpop <- pop.process(sgpop, agg = 10)
unipix <- make.unipix(sgpop)
sgdat <- data.frame(sgdat, patchID = apply(cbind(sgdat[, 3:2]), 1, pix.id.find, unipix))
EvalSet <- make.eval.set(sgdat, weekdates = c(40, 92), unipix)
summary(EvalSet)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.