make.covb: Constructs linear predictor.

View source: R/utils.R

make.covbR Documentation

Constructs linear predictor.

Description

Returns parameter vector on linear predictor scale for hazard function FUN, using model and data frame dat. Makes a matrix with each row the parameter values for an observation, then concatenates these into a single vector (so can pass as vector to C++ code).

Usage

make.covb(b, FUN, models, dat)

Arguments

b

parameter vector.

FUN

detection hazard function name (character).

models

list with two components ($y and $x) specifying models for detection hazard function scale parameters in forward (y) and perpendicular (x) dimensions. If detection hazard function form does not have separate scale parameters in y- and x- dimensions, the model given in $y is take as the scale parameter model. $y and $x must be either NULL or "~<regspec>", where <regspec> is a regression model spefication (e.g. height+weight or height:weight or height*weight, etc.).

dat

data frame, which must have columns corresponding to variable names in $y and $x.


david-borchers/hmltm documentation built on Oct. 29, 2023, 9:07 p.m.