sdcor2cov: Covariance matrix

Description Usage Arguments Value Examples

View source: R/sinhelpfunctions.R

Description

This function takes a vector of standard deviations and a correlation matrix as input and computes the covariance matrix.

Usage

1
sdcor2cov(stddev, corr)

Arguments

stddev

a vector of standard deviations.

corr

a correlation matrix.

Value

The function returns the covariance matrix corresponding to the input information.

Examples

1
2
data(sur)
sdcor2cov(sur$stddev, sur$corr)


SIN documentation built on May 19, 2017, 8:43 p.m.
Search within the SIN package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.