Beta_To_M: Conversion of beta-values to M-values

Description Usage Arguments Value Examples

View source: R/Beta_To_M.R

Description

This function performs a logit transform (M=log2(beta)-log2(beta-1)) on beta-values as single values or in vector, matrix, or data.frame form. M-values are not defined for beta-values equal to 0 or 1. A warning message will be displayed in case of presence of 0 and 1 in the matrix.

Usage

1

Arguments

beta

A numeric variable, vector or matrix corresponding to a beta-value. Has to be between 0 and 1.

Value

logit transform of the input beta-values.

Examples

1
2
vecBeta <- runif(100,0,1)
Beta_To_M(vecBeta)

LionelRohner/LRTools documentation built on Dec. 17, 2021, 1:10 a.m.