![]() ![]() ![]() The transformation is therefore log( Y+a) where a is the constant. How do you handle negative values if you want to log-transform the data?Ī common technique for handling negative values is to add a constant value to the data prior to applying the log transform. However, some quantities (for example, profit) might contain a few negative values. In many cases, the variable of interest is positive and the log transformation is immediately applicable. (Remember, however, that you do not have to transform variables! Some people mistakenly believe that linear regression requires normally distributed variables. Common examples include data on income, revenue, populations of cities, sizes of things, weights of things, and so forth. A log transformation is often used as part of exploratory data analysis in order to visualize (and later model) data that ranges over several orders of magnitude. It is used as a transformation to normality and as a variance stabilizing transformation. The log transformation is one of the most useful transformations in data analysis. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |