mvAntilog: Unbiased Prediction of Anti-Log Transformed Mean and Variance

Description Usage Arguments Value Examples

View source: R/mvAntilog.R

Description

Provide unbiased estimates of the mean and the variance on the original scale from an analysis of variance model with a natural log transformed response.

Usage

1
mvAntilog(aovfit, xdata, out = c("predmean", "predvar", "predcv")[1])

Arguments

aovfit

An object of class c("aov", "lm").

xdata

A data frame with predictor variables corresponding to those in model for which predictions should be made.

out

A character scalar indicating what prediction value to return, either "predmean" (default), "predvar", or "predcv".

Value

A numeric vector of predicted values on the original scale of the response.

Examples

1
2
fit <- aov(log(yield) ~ block + N * P + K, npk)
mvAntilog(fit, npk)

JVAdams/jvamisc documentation built on Aug. 11, 2021, 6:43 a.m.