CovCorPer {acfMPeriod}R Documentation

Covariance or correlation matrix from the Per-ACF

Description

Wrapper that computes the covariance or correlation matrix of x at lag 0 obtained from the Per-ACF.

Usage

CovCorPer(x, type = c("correlation", "covariance"))

Arguments

x

a numeric matrix

type

character string giving the type of acf to be computed. Allowed values are "correlation" (the default) or "covariance".

Value

a numeric matrix

Examples

data.set <- cbind(fdeaths, mdeaths)
CovCorPer(data.set)

[Package acfMPeriod version 1.0.0 Index]