Creates and populates a specific list structure to define a detection
function object and its data. The ddfobj
is used throughout the
package as a calling argument to various functions.
create.ddfobj(model, xmat, meta.data, initial)
Distance sampling function object list with elements that all can be null except type:
type of detection function hn, hr, gamma, unif, logistic
model data frame
TRUE if scale = ~1 and any shape formula =~1
sublist with elements (can be NULL i.e., unif key):formula, parameters, design matrix (dm)
sublist with elements (power of hazard rate or gamma) (can be NULL i.e., unif or hn key):formula, parameters, design matrix (dm)
sublist with elements (is NULL if no adjustments used):series,order,scale,parameters
sublist with elements (not used at present):formula,parameters, design matrix(dm), link
model list with key function and possibly adjustment functions, scale formula, and shape formula
model data frame
list of options describing data like width, etc
named list of initial values for parameters of the detection
function (should have at least "scale"
, maybe also have
"shape"
and "adjustments"
)
Jeff Laake
detfct
, ddf