I transformed data to attend to the requirements of a linear model (normally distributed):
d.reg1 = d.reg %>% preProcess("YeoJohnson") %>% predict(d.reg)
The adjusted model:
fit = lm(log10(Qmld)~log10(Peq750), data = d.reg1) #potential regression
Predicted data:
a=10^fit$coefficients[1]
b=fit$coefficients[2]
d.reg1$Qmld_predita=a*d.reg1$Peq750^b
How could I untransform d.reg1$Qmld_predita
, since the model was fitted to transformed data and this has no physical significance for me?