Generic functions to apply the fitted Johnson transformation to transform new data.
1 2 3 4 5 6 7 8
new data to be fitted
further arguments to match
After the johnson transformation is used, if you want to use the same
transformation on different data, you can use these functions. This is
designed to be the same functionality as the
Numeric vector of the transformed values
1 2 3 4 5 6 7 8 9 10
#' # if you want to predict based on a fitted distribution, you must set the # parameters in the qtls() function using the fitted model object jt. jt <- jtrans(rexp(300, .4)) # good prediction predict(jt, rexp(10, .4)) # will generate NaN because newx is from different distribution predict(jt, rexp(10, .1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.