Learn R Programming

MMDai (version 1.2.0)

Correlation: Correlation estimation

Description

Calculate Pearson's correlation between two specific variables

Usage

Correlation(theta, psi, v1 = 1, v2 = 2)

Arguments

theta

- vector of probability for each component

psi

- specific probability for each variable in each component

v1

- first variable

v2

- second variable

Value

Cor - correlation