powered by
predictions
Calculate average adjusted predictions by taking the mean of all the unit-level adjusted predictions computed by the predictions function.
# S3 method for predictions tidy(x, ...)
An object produced by the predictions function.
Additional arguments are pushed forward to predict().
predict()
A "tidy" data.frame of summary statistics which conforms to the broom package specification.
data.frame
broom
# NOT RUN { mod <- lm(mpg ~ hp * wt + factor(gear), data = mtcars) mfx <- predictions(mod) tidy(mfx) # }
Run the code above in your browser using DataLab