This is the template object for an R6 lme4 model class.
It contains functions for summarising and visualising the model results.
Public fields
dataset_name(
character)
Identifies the dataset used.last_update(
character)
Identifies the most recent update to the object (YYYY-MM-DD).data(
data.frame)
The data used in model fitting.model(
merMod)
The lme4 model object.fixedef_coefficients(
data.frame)
The fixed effects coefficients.ci_type(
character, orNA)
Identifies the types of confidence intervals calculated.metrics(
numeric)
Named vector containing model performance metrics.processing_flags(
list())
Identifies the processing steps used for the HibDatabase object that was used for model fitting.site_locations(
data.frame)
Contains columns for "SSBS", "Longitude" ,"Latitude".
Methods
HibModelLME4$new()
Creates a new instance of this R6 class. Note, this object is constructed via the hib_fit_lme4 function found within this package.
Usage
HibModelLME4$new(
db_obj,
mod_df,
lme4_obj,
fixef_df,
ci_type,
metr_vec,
n_spp,
n_taxa,
n_sites
)Arguments
db_obj(
HibDatabase, orlist)
The HibDatabase object/s used to fit the model.mod_df(
data.frame)
The data.frame of the data used in model fitting.lme4_obj(
merMod)
The lme4 model object.fixef_df(
data.frame)
The fixed effects from the fitted model.ci_type(
character, orNA)
The type of confidence intervals calculated.metr_vec(
numeric)
The named vector of model performance metrics.n_spp(
integerorlist)
Number of species contributing to the fitted model.n_taxa(
integerorlist)
Number of orignal taxa names contributing to the fitted model.n_sites(
integerorlist)
Number of sites contributing to the fitted model.@return (
HibModelLME4)
HibModelLME4$plot()
Function to generate figures summarising the model.
Arguments
type(
character()) Options are: "fixed-effects", "random-effects", "map-sites".