EnsembleFit: The constructor for the 'EnsembleFit' object

View source: R/EnsembleFit-class.R

EnsembleFitR Documentation

The constructor for the EnsembleFit object

Description

The constructor for an EnsembleFit object. This function need not be called as an EnsembleFit object is constructed automatically by the fit_ensemble_model function. The samples slot contains the samples from the MCMC if a full sampling was completed, otherwise the point_estimate slot contains information about a point estimate.

Usage

EnsembleFit(ensemble_data, samples = NULL, point_estimate = NULL)

Arguments

ensemble_data

An EnsembleData object encapsulating the data used to fit the ensemble model.

samples

A stanfit object containing the samples drawn from the fitted model. The default value is NULL.

point_estimate

A list output of the optimised model. The default value is NULL.

Value

An object of class EnsembleFit

References

Stan Development Team (2020). RStan: the R interface to Stan. R package version 2.21.2. https://mc-stan.org

See Also

EnsembleFit, fit_ensemble_model,


EcoEnsemble documentation built on April 4, 2025, 1:55 a.m.