composite_d_matrix: Matrix formula to estimate the standardized mean difference...

Description Usage Arguments Details Value Examples

View source: R/composites.R

Description

This function is a wrapper for composite_r_matrix that converts d values to correlations, computes the composite correlation implied by the d values, and transforms the result back to the d metric.

Usage

1
composite_d_matrix(d_vec, r_mat, wt_vec, p = 0.5)

Arguments

d_vec

Vector of standardized mean differences associated with variables in the composite to be formed.

r_mat

Correlation matrix from which the composite is to be computed.

wt_vec

Weights to be used in forming the composite (by default, all variables receive equal weight).

p

The proportion of cases in one of the two groups used the compute the standardized mean differences.

Details

The composite d value is computed by converting the vector of d values to correlations, computing the composite correlation (see composite_r_matrix), and transforming that composite back into the d metric. See "Details" of composite_r_matrix for the composite computations.

Value

The estimated standardized mean difference associated with the composite variable.

Examples

1
2
composite_d_matrix(d_vec = c(1, 1), r_mat = matrix(c(1, .7, .7, 1), 2, 2),
                   wt_vec = c(1, 1), p = .5)

Example output

-----------------------------------------------------  psychmeta version 2.3.3  --

Please report any bugs to github.com/psychmeta/psychmeta/issues
or issues@psychmeta.com

We work hard to produce these open-source tools for the R community, 
please cite psychmeta when you use it in your research: 
  Dahlke, J. A., & Wiernik, B. M. (2018). psychmeta: An R package for 
     psychometric meta-analysis. Applied Psychological Measurement. 
     Advance online publication. https://doi.org/10.1177/0146621618795933

Find info about psychmeta on the web at psychmeta.com and twitter.com/psychmetaR

Attaching package: 'psychmeta'

The following object is masked from 'package:stats':

    filter

[1] 1.1094

psychmeta documentation built on June 1, 2021, 9:13 a.m.