logtransform {doebioresearch} | R Documentation |
The function carries out log with base 10 transformation of each values of vector. If one of values of a vector is 0, 1 is added to each observation. Log transformation is carried out for the data when variance is proportional to square of the mean and treatment effects are multiplicative in nature.
logtransform(numeric.vector)
numeric.vector |
data vector to be transformed |
A list of
Ratio
- A ratio of maximum and minimum values of the data
LogTransformedVector
- A vector of the transformed data
Comment
- A comment about zero being present in data or not
vector<-c(100,0,120,1000,52,30,60) logtransform(vector)