Learn R Programming

EcoEnsemble (version 1.1.2)

EnsembleFit: 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)

Value

An object of class EnsembleFit

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.

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,