Learn R Programming

mrds (version 2.3.0)

assign.par: Extraction and assignment of parameters to vector

Description

Assigns parameters of a particular type (scale, shape, adjustments or g0 (p(0))) from the vector of parameters in ddfobj. All of the parameters are kept in a single vector for optimization even though they have very different uses. assign.par parses them from the vector based on a known structure and assigns them into ddfobj.

Usage

assign.par(ddfobj, fpar)

Value

if index==FALSE, vector of parameters that were requested or index==TRUE, vector of 3 indices for scale, shape, adjustment

Arguments

ddfobj

distance sampling object (see create.ddfobj)

fpar

parameter vector

Author

Jeff Laake

Details

getpar extracts the requested types from ddfobj.

See Also

getpar