contains_covariates: Determine if a given parameter uses covariates

View source: R/functions.R

contains_covariatesR Documentation

Determine if a given parameter uses covariates

Description

Parses through a GAI model's skeleton and design matrix list to determine which type of covariate specification has been used (No covariates, the same formula for each brood, or brood-specific formulas)

Usage

contains_covariates(base, par, DMs)

Arguments

base

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

par

A vector of parameter estimates, typically supplied by optim

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 boolean. TRUE if the parameter "base" uses covariates, and FALSE otherwise.


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