Skip to content
Prev 398496 / 398498 Next

Regression on transformed variable

https://cran.r-project.org/web/packages/emmeans/vignettes/transformations.html#bias-adj
is probably the easiest place to start. That machinery is assuming
that the transformation is stated *explicitly* in the model
formulation; the example used in the vignette is

pigs.lm <- lm(log(conc) ~ source + factor(percent), data = pigs)

I think it wouldn't work if the transformation was done upstream (i.e.
if your response variable was `log_conc`), and possibly not if you had
an unusual transformation.

  Looking at the function in emdbook, I don't think it's directly
useful for what you want. car::deltaMethod looks more useful. However,
it's designed for specific nonlinear functions of *parameters*, I
don't know if it can easily do bias correction on predictions.

On Thu, Mar 19, 2026 at 11:42?AM Christofer Bogaso
<bogaso.christofer at gmail.com> wrote: