View source: R/estimate_mixture.R
mix_r_2group | R Documentation |
Estimate the mixture correlation for two groups.
mix_r_2group(rxy, dx, dy, p = 0.5)
rxy |
Average within-group correlation |
dx |
Standardized mean difference between groups on X. |
dy |
Standardized mean difference between groups on Y. |
p |
Proportion of cases in one of the two groups. |
The average within-group correlation is estimated as:
r_wg = r_mix * sqrt((dx^2 * p * (1 - p) + 1) * (dy^2 * p * (1 - p) + 1)) - sqrt(dx^2 * dy^2 * p^2 * (1 - p)^2)
where r_wg is the average within-group correlation, r_mix is the overall mixture correlation, dx is the standardized mean difference between groups on X, dy is the standardized mean difference between groups on Y, and p is the proportion of cases in one of the two groups.
A vector of two-group mixture correlations
mix_r_2group(rxy = .375, dx = 1, dy = 1, p = .5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.