Learn R Programming

kim (version 0.6.1)

weighted_z: Weighted z

Description

Calculate the weighted z (for calculating weighted mean correlation). See p. 231 of the book Hedges & Olkin (1985), Statistical Methods for Meta-Analysis (ISBN: 0123363802).

Usage

weighted_z(z = NULL, n = NULL)

Value

the output will be a weighted z value.

Arguments

z

a vector of z values

n

a vector of sample sizes which will be used to calculate the weights, which in turn will be used to calculate the weighted z.

Examples

Run this code
weighted_z(1:3, c(100, 200, 300))
weighted_z(z = c(1:3, NA), n = c(100, 200, 300, NA))

Run the code above in your browser using DataLab