Learn R Programming

FRGEpistasis (version 1.8.0)

logTransPheno: logarithmic transformation

Description

Logarithmic Transformation of Phenotype

Usage

logTransPheno(pheno)

Arguments

pheno
Vector of phenotype which is the quantitative trait.

Value

Return vector of transformed phenotype.

Details

Some variables are not normally distributed. And using statistical tests on this data can give misleading results because they do not meet the statistical assumptions. Many variables have log-normal distributions.

Examples

Run this code

smp_num=100
pheno<-sample(c(0:500),smp_num,replace=TRUE)
logTransPheno(pheno)

Run the code above in your browser using DataLab