![]() ![]() This fact is more evident by the graphs produced from the two plot functions including this code. The result is a new vector that is less skewed than the original. The resulting presentation of the data is less skewed than the original making it easier to understand.ĭoing a log transformation in R on vectors is a simple matter of adding 1 to the vector and then applying the log() function. Before the logarithm is applied, 1 is added to the base value to prevent applying a logarithm to a 0 value. Log transformation in R is accomplished by applying the log() function to vector, data-frame or other data set. This is usually done when the numbers are highly skewed to reduce the skew so the data can be understood easier. A log transformation is a process of applying a logarithm to data to reduce its skew.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |