getpar: Extraction and assignment of parameters to vector

View source: R/getpar.R

getparR Documentation

Extraction and assignment of parameters to vector

Description

Extracts 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. getpar extracts the requested types to be extracted from ddfobj.

Usage

getpar(ddfobj, fitting = "all", index = FALSE)

Arguments

ddfobj

distance sampling object (see create.ddfobj)

fitting

character string which is either "all","key","adjust" which determines which parameters are retrieved

index

logical that determines whether parameters are returned (FALSE) or starting indices in parameter vector for scale, shape, adjustment parameters

Value

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

Note

Internal functions not intended to be called by user.

Author(s)

Jeff Laake

See Also

assign.par


DistanceDevelopment/mrds documentation built on Feb. 15, 2024, 9:25 a.m.