Learn R Programming

psychmeta (version 0.2.4)

var_error_u: Estimate the error variance of u ratios

Description

Estimate the error variance of u ratios

Usage

var_error_u(u, n_i, n_a = NA, dependent_sds = FALSE)

Arguments

u

Vector of u ratios.

n_i

Vector of incumbent-group sample sizes.

n_a

Vector of applicant-group sample sizes.

dependent_sds

Logical vector identifying whether each u ratio is based on standard deviations from independent samples (FALSE) or based on standard deviations from an applicant sample and an incumbent sample that is a subset of that applicant sample (TRUE).

Value

A vector of sampling-error variances.

Details

The sampling variance of a u ratio is computed differently for independent samples (i.e., settings where the referent unrestricted standard deviations comes from an different sample than the range-restricted standard deviation) than for dependent samples (i.e., unrestricted samples from which a subset of individuals are selected to be in the incumbent sample).

The sampling variance for independent samples (the more common case) is:

$$var_{e}=\frac{u^{2}}{2}\left(\frac{1}{n_{i}-1}+\frac{1}{n_{a}-1}\right)$$

and the sampling variance for dependent samples is:

$$var_{e}=\frac{u^{2}}{2}\left(\frac{1}{n_{i}-1}-\frac{1}{n_{a}-1}\right)$$

where u is the u ratio, \(n_{i}\) is the incumbent sample size, and \(n_{a}\) is the applicant sample size.

References

Dahlke, J. A., & Wiernik, B. M. (2017). One of these artifacts is not like the others: New methods to account for the unique implications of indirect range-restriction corrections in organizational research. Unpublished manuscript.

Examples

Run this code
# NOT RUN {
var_error_u(u = .8, n_i = 100, n_a = 200)
var_error_u(u = .8, n_i = 100, n_a = NA)
# }

Run the code above in your browser using DataLab