gmean_byelt: Geometric mean by components occurring within an assembly...

Description Usage Arguments Details Value See Also

View source: R/calibrating.R

Description

Take a vector fobs of performances of assemblages that share a same assembly motif, and return a vector of performances predicted as the geometric mean of performances of assemblages that contain the same components as the assemblage to predict.

All assemblages share the same assembly motif.

Usage

1
gmean_byelt(fobs, mOccur)

Arguments

fobs

a numeric vector. The vector fobs contains the quantitative performances of assemblages.

mOccur

a matrix of occurrence (occurrence of components). Its first dimension equals to length(fobs). Its second dimension equals to the number of components.

Details

Modelled performances are computed using geometric mean (opt.mean = "gmean") of performances. Assemblages share a same assembly motif. Modelled performances are the average of mean performances of assemblages that contain the same components as the assemblage to calibrate (opt.model = "byelt"). This procedure corresponds to a linear model with each assembly motif based on the component occurrence in each assemblage.

Value

Return a vector of length(fobs). Its values are computed as the average of mean performances of assemblages that contain the same components as the assemblage to calibrate (opt.model = "byelt") .

See Also

amean_byelt using arithmetic mean. gmean_byelt using geometric mean.


functClust documentation built on Dec. 2, 2020, 5:06 p.m.