rss_total: Total Residual Sum of Squares of observed performances

Description Usage Arguments Details Value

View source: R/clustering.R

Description

Take performance, then compute the total Residual Sum of Squares.

Usage

1
rss_total(fobs, xpr, opt.mean)

Arguments

fobs

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

xpr

a vector of numerics of length(fobs). The vector xpr contains the weight of each experiment, and the labels (in names(xpr)) of different experiments. The weigth of each experiment is used in the computation of the Residual Sum of Squares in the function rss_clustering. The used formula is rss if each experiment has the same weight. The used formula is wrss (barycenter of RSS for each experiment) if each experiment has different weights. All assemblages that belong to a given experiment should then have a same weigth. Each experiment is identified by its names (names(xpr)) and the RSS of each experiment is weighted by values of xpr. The vector xpr is generated by the function stats::setNames.

opt.mean

a character equals to "amean" or "gmean". Switchs to arithmetic formula if opt.mean = "amean". Switchs to geometric formula if opt.mean = "gmean".

Modelled performances are computed using arithmetic mean (opt.mean = "amean") or geometric mean (opt.mean = "gmean") according to opt.model.

Details

None.

Value

Return the Total Residual Sum of Squares of observed performances of assemblages. Its value is computed according to opt.mean.


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