vcalc: vcalc

View source: R/make_VCV_matrix.R

vcalcR Documentation

vcalc

Description

Function for calculating the covariance based on large-sample approximations for various effect size estimates.

Usage

vcalc(m, sd, n, p1, data, cov_type = c("ROM", "LOR"))

Arguments

m

Mean of the control group that is shared. Only used when vcal does not equal "none".

sd

Standard deviation of the control group that is shared. Only used when vcal does not equal "none".

n

Sample size of the control group that is shared.Only used when vcal does not equal "none".

p1

The row indicator for the shared control.

data

Dataframe object containing effect sizes, their variance, unique IDs and clustering variable

cov_type

The type of covariance to be calculated. Currently calculations for log response ratio ("ROM"), and log odds ratio (LOR) are available.


daniel1noble/metaAidR documentation built on Oct. 14, 2023, 3:23 p.m.