Fits fold k's complement and scores fold k's held-out years only – the other fold is never run. Used by the heldOutFold parameter so the two folds can be separate jobs.

crossValidateSpreadOneFold(sim, covs, k)

Arguments

sim

a simList.

covs

mod$covsX1000.

k

integer; the fold (1 or 2) to hold out.

Value

list: sims (this fold only), score (from fireSenseUtils::scoreFireSizes()), fit (see fitAndScoreFold()), heldOutFold, fitYears and heldOutYears (which fold, and its years), and the formula and link a prediction with fit needs.