Description Usage Arguments Details Value See Also
Allows visual inspection of multilevel data and the relations between a set of variables and one outcome variable, both on level 1 and on level 2.
1 | simpsonCor(data, outcome, scales, cluster, ...)
|
data |
The data frame to be used. |
outcome |
The dependend variable, i. e. a variable to be used as a criterion in multilevel analysis. |
scales |
The set of variables which are all correlated with |
cluster |
The level 2 cluster variable, in which both the |
... |
Other arguments passed on to |
The function computes all correlations between a set of variables and one outcome variable on level-1 (within cluster) and level-2 (between cluster, i. e. between the cluster means). The correlations on different levels are then plotted against each other. The more a point is off the diagonal, the more the correlations differ on level 1 and level 2.
A plot showing level 1 and level 2 correlations plotted against each other.
cor
for the function that computes the correlation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.