Rdocumentation
powered by
Learn R Programming
ebGenotyping (version 2.0.1)
rlogit: Inverse Logit Transformation
Description
This function is for calculating the inverse logit transformation:exp(x)/(1+exp(x))
Usage
rlogit(x)
Arguments
x
A numeric vector
Value
exp(x)/(1+exp(x))
Details
In order to avoid overflow, we define the function like this: rlogit <- function(x) return(ifelse(x>100,1,exp(x)/(1+exp(x))))
References
Na You and Gongyi Huang.(2016) An Empirical Bayes Method for Genotyping and SNP detection Using Multi-sample Next-generation Sequencing Data.
Examples
Run this code
rlogit(-
3
)
Run the code above in your browser using
DataLab