Learn R Programming

functClust (version 0.1.6)

gmean_byelt: Geometric mean by components occurring within an assembly motif

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

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.

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") .

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.

See Also

amean_byelt using arithmetic mean. gmean_byelt using geometric mean.