View source: R/predAntilognorm.R
predAntilognorm | R Documentation |
Provide unbiased estimates on the original scale from a linear model with a natural log-transformed response.
predAntilognorm(modfit, xdata, k = 0)
modfit |
A fitted model object from a call to |
xdata |
A data frame with predictor variables corresponding to those in
|
k |
A numeric scalar, the constant added to the response prior to transformation, default 0. |
A list with two numeric vectors, one with predicted values pred
and one with standard deviation sdpred
of those predictions,
both on the original scale of the response.
Mood, AM, FA Graybill, DC Boes. 1974. Introduction to the Theory of Statistics. McGraw-Hill, New York.
fit <- aov(log(yield) ~ block + N * P + K, data=npk) predAntilognorm(fit, npk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.