summary.pred: Extracting the prices of a "pred" object

Description Usage Arguments Details Value Author(s) Examples

View source: R/immodata.R

Description

This function enables to extract the prices of a "pred" object and to add a new column of the expected prices to the original dataframe.

Usage

1
2
## S3 method for class 'pred'
summary(pred_object)

Arguments

pred_object

An objet of class "pred", which was a dataframe inputted in the predict_price function.

Details

One has to be careful using this function as the model to obtain the predicted values has been built on the same dataset in which it forecasts the price. Overfitting is clearly present and may alter the predictions.

Value

A dataframe with a new column of estimated prices.

Author(s)

Germano David

Lomazzi Vincent

Bron Luca

Raisin Edgar

Grandadam Patrik

Examples

1
2
3
cities <- get_immodata(c("bussigny", "nyon"))
predictions <- predict_price(cities)
summary(predictions)

vincentlomazzi/swissimmo documentation built on May 13, 2019, 9:53 p.m.