gmean_bymot_jack: Geometric mean by assembly motif using jackknife method

Description Usage Arguments Details Value See Also

View source: R/validating_jack.R

Description

Take a vector fobs of performances of assemblages that share the same assembly motif, and return a vector of performances predicted as the geometric mean of performances of other assemblages.

Usage

1
gmean_bymot_jack(fobs, jack)

Arguments

fobs

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

jack

an integer vector of length 2. The vector specifies the parameters for jackknife method. The first integer jack[1] specifies the size of subset, the second integer jack[2] specifies the number of subsets.

Details

Predicted performances are computed using geometric mean (opt.mean = "gmean") of performances of assemblages that share a same assembly motif (opt.model = "bymot").

The assemblages belonging to a same assembly motif are divided into jack[2] subsets of jack[1] assemblages. Prediction is computed by excluding jack[1] assemblages, including the assemblage to predict. If the total number of assemblages belonging to the assembly motif is lower than jack[1]*jack[2], prediction is computed by Leave-One-Out (LOO).

Value

Return a vector of length(fobs). Its values are computed as the geometric mean of performances of assemblages that share a same assembly motif, by excluding a subset of assemblages containing the assemblage to predict.

See Also

amean_bymot_jack, amean_byelt_jack, gmean_byelt_jack


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