predictResponse: Mass grid predictions for marginal effects plotting

View source: R/predictResponse.R

predictResponseR Documentation

Mass grid predictions for marginal effects plotting

Description

predictResponse makes predictions for plotting marginal effects for model terms with or without confidence/prediction intervals

Usage

predictResponse(
  x,
  object,
  interval = c("none", "confidence", "prediction", "both"),
  level = 0.8,
  at,
  FUN,
  residuals = FALSE,
  ...
)

Examples

library(sf)
data(centro_2015)
centro_2015 <- within(centro_2015, VU <- valor/area_total)
fit<- lm(log(VU) ~ log(area_total) + quartos + suites +
          garagens + log(dist_b_mar) + padrao,
          data = centro_2015, subset = -c(31, 39))
p <- predictResponse("area_total", fit)
p

lfpdroubi/appraiseR documentation built on April 14, 2024, 10:27 p.m.