Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

Arguments

ddfobj

distance sampling object (see create.ddfobj)

fpar

parameter vector

Details

getpar extracts the requested types to be extracted from ddfobj.

Value

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

Note

Internal functions not intended to be called by user.

Author(s)

Jeff Laake

See Also

getpar


mrds

Mark-Recapture Distance Sampling

v2.2.4
GPL (>= 2)
Authors
Jeff Laake <jeff.laake@noaa.gov>, David Borchers <dlb@st-and.ac.uk>, Len Thomas <len.thomas@st-and.ac.uk>, David Miller <dave@ninepointeightone.net> and Jon Bishop
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.