MaxsAndMins: MaxsAndMins

View source: R/MaxAndMins.R

MaxsAndMinsR Documentation

MaxsAndMins

Description

Find out how much new data extrapolates the model data

Usage

MaxsAndMins(newdata, data)

Arguments

newdata

a tibble with new data, *i.e.* prediction data

data

a data frame

Value

a data frame with the newdata values above max or below min original data

Examples

dados <- st_drop_geometry(centro_2015)
fit <- lm(log(valor) ~ ., data = dados)
newdata <- new_data(fit)
MaxsAndMins(newdata, dados)
newdata[1, "area_total"] <- 600
newdata[2, "dist_b_mar"] <- 30
MaxsAndMins(newdata, dados)


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