tetracorr: Calculate Tetrachoric Correlations

View source: R/tetracorr.R

tetracorrR Documentation

Calculate Tetrachoric Correlations

Description

This function calculates the tetrachoric correlations between pairs of variables in a given data frame. It returns a list containing a data frame with the tetrachoric correlation coefficients, and the sum of the tetrachoric correlations if the input variable was in p-value form.

Usage

tetracorr(data, varlist)

Arguments

data

data frame with "markname" and study names as column names.

varlist

character vector of study names to include in the meta-analysis.

Value

list containing a data frame with tetrachoric correlation coefficients, and the sum of the tetrachoric correlations if the input variable was in p-value form.

Author(s)

Woo Jung

See Also

polychor

Examples

  data(snp_example)
  head(snp_example)
  varlist <- c("trt1","trt2","trt3")
  tetracorr(snp_example, varlist)

corrmeta documentation built on May 29, 2024, 2:18 a.m.