lp_func | R Documentation |
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
lp_func(brood, is_indiv, is_general, par, base, DMs)
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 |
A matrix of parameter values, to be used by get_parameter_values_all_rows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.