corHist: Histogramm of correlations

Description Usage Arguments Details See Also

Description

Plots a histogram of correlations to make Simpson's paradox visible.

Usage

1
corHist(data, var1, var2, cluster)

Arguments

data

The data set to be used. Should consist of at least two numeric variables and one cluster variable.

var1

The first varaible to correlate.

var2

The second variable to correlate.

cluster

The level 2 cluster variable, in which both the var1 and var2 are nested.

Details

A histogram of correlations, [[1]] group means for the two level-1 variables and [[2]] their correlation on level-2. Currently, the pearson correlation is used for computing the correlation.

See Also

cor


kthorstmann/horst documentation built on May 20, 2019, 7:04 p.m.