A fit made with spreadLink = "powerLaw", "powerLawSmooth" or "richards" adds its year effect (yearSpreadSD) to the linear predictor x, not to the logit of p. fireSense_burn adds the effect to x and maps back with the link (fireSenseUtils::linearLinkProb()), with these parameters.

powerLawParsOf(
  params,
  powerLawGamma = NULL,
  lowerSpreadProb,
  powerLawShape = fireSenseUtils::spreadPowerLawShape,
  link = if (!is.null(powerLawGamma)) "powerLaw",
  lowerAsymptote = fireSenseUtils::spreadProbFloor,
  richardsNu = fireSenseUtils::spreadRichardsNu
)

Arguments

params

one-row data.frame: the parameter set in use (paramSetForRep()); maxAsymptote is pc.

powerLawGamma

the row's gamma (ledgerPowerLawGamma()); NULL for a link without one.

lowerSpreadProb

the floor.

powerLawShape

the row's shape (ledgerPowerLawShape()).

the row's link (ledgerLinkArgs()); by default "powerLaw" when powerLawGamma is given.

lowerAsymptote, richardsNu

the row's lowerAsymptote and richardsNu.

Value

A named numeric vector (fireSenseUtils::spreadLinkParNames of the link; fireSenseUtils::linearLinkPars()), or NULL for another link.