Skip to contents

Every parameter of a model fitted by glgpm() has one name, which start_pars of glgpm(), the result of coef.RiskMap(), parameters of specify_glgpm() (for the parameters a simulation takes) and the columns of parametric_bootstrap() share. The names a model has follow from its formula and family, so they can be listed before it is fitted, with glgpm_parameters().

NameWhen the model has itElements and scale
betaAlwaysOne coefficient per column of the design matrix, named as the columns, such as "(Intercept)", "log(elevation)" or "typeurban" for a level of a factor
sigma2AlwaysThe variance of the spatial process
phiAlwaysThe scale of the spatial correlation, in the model's distance_units
tau2With gp(nugget = TRUE)The variance of the nugget
sigma2_meGaussian familyThe variance of the measurement error
thetaNegative binomial familyThe size, see negative_binomial()
sigma2_reWith re() termsOne variance per grouping variable, named by the variable as written in re()

The flat names of unlist(coef(fit)), such as "beta.log(elevation)" and "sigma2_re.household", name a single element. start_pars accepts them, in a list or as the named vector unlist(coef(fit)), and they name the columns of parametric_bootstrap().

Starting values

start_pars takes any of a model's estimated parameters, one, several or all of them. beta can be a named subset of the coefficients, or unnamed with one value per column. sigma2_re can be a named subset of the variances, or unnamed with one value per term in the order of the formula. Every value must be finite, and every one but the coefficients positive. The others take their automatic start, given as start by glgpm_parameters(). regression is the coefficient of the regression without the latent effects, family_regression the size of the negative binomial regression without them, one the value 1 and distance_quantile the 10th percentile of the distances between the locations. A name the model lacks stops with the names it has.

Held values

fixed_pars of glgpm() takes the same names and structure, and holds any of the parameters it gives at their values instead of estimating them, such as list(phi = 20), list(beta = c(x = 0.5)) or list(sigma2_re = c(household = 0.2)). The nugget variance is held only in a model with gp(nugget = TRUE), and a nugget or random-effect variance of zero is the model without that term. coef.RiskMap() gives the held parameters with the estimated ones, so start_pars = coef(fit) works for a refit with the same holds, and summary.RiskMap() and print() show them as fixed, without standard errors. profile.RiskMap() has no profile of a held parameter and holds them in the profiles of the others, and parametric_bootstrap() refits with the same holds.