cov.x: Covariance matrix

Description Usage Arguments Details Value Examples

View source: R/sSDR.R

Description

Covariance matrix

Usage

1
cov.x(X)

Arguments

X

a n x p matrix of n observations and p predictors.

Details

This function returns A p x p covariance matrix for any n x p matrix.

Value

A p x p covariance matrix.

Examples

1
2
data <- gen.data(n=100)
x.cov <- cov.x(data$X)

Example output

Loading required package: MASS
Loading required package: Matrix

sSDR documentation built on May 1, 2019, 8:23 p.m.

Related to cov.x in sSDR...