retrans: Back-tranform scaled, (possibly) logged model predictions

View source: R/retrans.R

retransR Documentation

Back-tranform scaled, (possibly) logged model predictions

Description

Back-tranform scaled, (possibly) logged model predictions

Usage

retrans(x, scale_var, log = TRUE, recensor = FALSE, lcl = 2e-04)

Arguments

x

A vector.

scale_var

A vector by which to rescale x.

log

Logical. Back-transform predictions using exp()?

recensor

Logical. Recensor (left-censor) after back-transforming?

lcl

Left-censoring limit for recensor = TRUE.

Value

A vector of back-transformed predictions.

Examples

x <- rnorm(10, 10)
x_trans <- scale(x)[,1]
retrans(x_trans, x, log = FALSE)

bentrueman/bgamcar1 documentation built on July 6, 2024, 11:16 p.m.