Learn R Programming

pheno2geno (version 1.4.0)

transformation: Basic functions to do transformation / normalization of phenotypes.

Description

Basic functions to do transformation / normalization of phenotypes.

Usage

transformation(x, transformations=c("nothing","log","sqrt","reciprocal","probit",
    "logit"), ..., verbose=TRUE)

Arguments

x

data matrix with measurements, Rows: Traits/Phenotypes columns: Individuals.

transformations

which function should be used to transform the data:

  • nothing - no data transformation performed.

  • log - log(data)

  • sqrt - sqrt(data)

  • reciprocal - 1/(data)

  • probit - probit transformation

  • logit - logit transformation

...

Passed to the underlying test function.

verbose

Be verbose.

Value

List with matrices.

See Also

Examples

Run this code
# NOT RUN {
	data <- matrix(runif(1000),10,100)
  resA <- transformation(data, c("log","logit"))
  resB <- transformation(data, c("reciprocal","probit"))
# }

Run the code above in your browser using DataLab