Description Usage Arguments Value
View source: R/generate.initial.values.R
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.
1 2 |
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 |
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.