makeStart: Initial Parameter Values

makeStartR Documentation

Initial Parameter Values

Description

makeStart() wraps the code previously internal to secr.fit(). It will not usually be called directly.

Usage


makeStart(start = NULL, parindx, capthist, mask, detectfn, link, 
    details = NULL, fixed = NULL, CL = FALSE, anypoly = FALSE, 
    anytrans = FALSE, alltelem = FALSE, sighting = FALSE)

Arguments

start

optional starting values as described for secr.fit

parindx

list with one component per real parameter giving corresponding indices of coefficients (beta parameters)

capthist

capthist object including capture data and detector (trap) layout

mask

mask object or (for a multi-session analysis) a list of mask objects, one for each session

detectfn

integer code or character string for shape of detection function 0 = halfnormal, 1 = hazard rate etc. – see detectfn

link

list of link function names ("log", "logit", "identity") for each real parameter

details

list of additional arguments (see secr.fit)

fixed

list with optional components corresponding to real parameters giving the scalar value to which the parameter is to be fixed

CL

logical, if true then model does not include density

anypoly

logical, TRUE if any polygon detectors

anytrans

logical, TRUE if any transect detectors

alltelem

logical, TRUE if any telemetry detectors

sighting

logical, TRUE if any sighting data

Details

If ‘start’ is a previously fitted model then only ‘start’ and ‘parindx’ are required.

Value

Numeric vector with one value for each coefficient (beta parameter) in model.

See Also

secr.fit

Examples


makeStart(secrdemo.0, list(D = 1, g0 = 2:3, sigma = 4))


secr documentation built on Oct. 18, 2023, 1:07 a.m.