mergeCovmat: Combine sample covariance matrices from two samples

Description Usage Arguments Details References

View source: R/mergeCovmat.R

Description

This function combines the sample covariance information from two samples (of the same phenomena) to return the sample covariance matric of the union of the two samples.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
mergeCovmat(
  A.cov.xy,
  B.cov.xy,
  A.mean.x,
  A.mean.y,
  B.mean.x,
  B.mean.y,
  A.n,
  B.n
)

Arguments

A.cov.xy

sample covariance matrix from the first sample, 'A'

B.cov.xy

sample covariance matrix from the second sample, 'B'

A.mean.x

sample mean from the first sample, 'A'

A.mean.y

sample mean from the first sample, 'A'

B.mean.x

sample mean from the second sample, 'B'

B.mean.y

sample mean from the second sample, 'B'

A.n

sample size from the first sample, 'A'

B.n

sample size from the second sample, 'B'

Details

This function assumes the data is normalized by n (the MLE estimator) instead of n-1 (the unbiased estimator).

References

Pebay, P., 2008, Formulas for Robust, One-Pass Parallel Computation of Covariances and Arbitrary-Order Statistical Moments: Sandia Report.


telefit documentation built on Feb. 4, 2020, 9:08 a.m.

Related to mergeCovmat in telefit...