### Linear model with log transformation in the response variable:
data(imt)
head(imt)
# model fitting:
modimt <- tlm(y = logimt, x = age, data = imt, ypow = 0)
modimt
# information on interpreting the effect:
effectInfo(modimt)
# the function effect provides as default the expected change in IMT
# for an additive change in age equal to the interquartile range:
effect(modimt)
# other effects:
(minage <- min(imt$age))
(maxage <- max(imt$age))
effect(modimt, c = maxage - minage)
## Not run: ------------------------------------
# effect(modimt, x1 = minage, r = 50, npoints = 3)
## ---------------------------------------------
Run the code above in your browser using DataLab