Description Usage Arguments Value Examples
Test mathematical transformations (exp, log, square, cube) of predictor variables. For a set of dependent variables and independent variables testTrans will test the logarithmic, exponential, quadratic, and cubic relationships of the DV between each DV & IV and provide visual feedback to allow determination of the best fitting mathematical tranformation of each dependent variable for a given independent variable.
1 | testTrans(dvs, ivs, dat)
|
dvs |
|
ivs |
|
dat |
|
list |
of ggplot2 grobs showing the relationship of each variable to each other variable |
Of note, the declaration of the best-fitting transformations for each relationship can be accessed via lapply(result, purrr::pluck,"labels","caption")
1 2 | dat <- data.frame(y = rnorm(15,0,1),x = {rnorm(15,0,1) + rnorm(15,0,.02)})
testTrans("y", "x", dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.