generate.initial.values: Generate initial values for plateau envelopes

Description Usage Arguments Value

View source: R/generate.initial.values.R

Description

generate.initial.values generates initial values for the plateau envelopes. It is called by fit.glm.env and fit.bugs.env, and is not intended for use interactively.

Usage

1
2
generate.initial.values(y, x.clim, x.nonclim = NULL, x.factor = NULL,
  constrain.beta = FALSE, random = FALSE, pars, silent = TRUE)

Arguments

y

The binary response variable (taking values 0 or 1 for absence and presence respectively).

x.clim

The n by p matrix of climate covariates.

x.nonclim

The n by p2 matrix of non-climate covariates.

x.factor

The n by p3 matrix of non-climate factors.

constrain.beta

Should ridge penalty be imposed on the betas (slopes)?

random

Logical flag on whether or not to generate random starting values

pars

The vector of envelope parameters, length 2p+p+2+p(p-1)/2

silent

Logical flag denoting whether the function runs silently or not. Default is TRUE.

Value

If random==TRUE, the output will be a single vector of parameter values in the order required for glm.env.fn; if random==FALSE, the output will be a list with two elements: initial.pars, a single vector of parameter values in the order required for glm.env.fn, and constrain.beta, also as for glm.env.fn.


MarkJBrewer/plateau documentation built on May 7, 2019, 3:35 p.m.