partCov: calculates the matrix of sums of products of distance to the...

View source: R/partCov.R

partCovR Documentation

calculates the matrix of sums of products of distance to the global means,

Description

used as a piece of the global covariance matrix the client sums all these local matrices and divides them by N-1 -> cov matrix

Usage

partCov(x, means = NULL, collist = NULL)

Arguments

x

a data frame of matrix

means

a vector of global means (one for each dimension)

collist

a vector, subset of columns to use

na.rm

logical remove NAs?

Value

a matrix of the sums of products for all pairs of dimensions


sib-swiss/dsSwissKnife documentation built on Nov. 27, 2024, 6:03 p.m.