getPearson: Correlation Coefficient (Pearson Correlation)

Description Usage Arguments Value

Description

test for correlations between simulated and expected marginal totals. This functions implements the cor function for the estimation of the Pearson correlation coefficient.

pearson <- cor(cbind(Tx, hTx), use="complete.obs", method="pearson")

Usage

1
getPearson(observed, simulated)

Arguments

observed

observed marginal sums

simulated

simulated marginal sums

Value

Pearson correlation


emunozh/testmsim documentation built on May 16, 2019, 5:11 a.m.