lp_func: Parameter value finding helper for covariate inclusion

View source: R/functions.R

lp_funcR Documentation

Parameter value finding helper for covariate inclusion

Description

A helper function which obtains the linear predictor for a given set of parameters ('mu', 'sigma') etc, by scanning the list of design matrices and the model skeleton for the relevant information

Usage

lp_func(brood, is_indiv, is_general, par, base, DMs)

Arguments

brood

the parameter number (integer) within the sequence. If being used by the package internally, this is almost always the brood number

is_indiv

A boolean indicating if the parameter for this given brood is specified with a brood specific formula

is_general

A boolean indicating if the parameter for this given is the same as that of the other broods

par

A vector of parameter estimates, typically supplied by optim

base

The character name of the type of parameter. "mu", "sigma", or "w"

DMs

The list of design matrices which contains all of the design matrices required to calculated the value of each parameter given its covariate values

Value

A matrix of parameter values, to be used by get_parameter_values_all_rows


calliste-fagard-jenkin/GAI documentation built on July 26, 2022, 11:20 a.m.