VIT2005: Apartments in Vitoria

Description Usage Format References Examples

Description

Descriptive information and the appraised total price (in Euros) for apartments in Vitoria, Spain

Usage

1

Format

A data frame with 218 observations on the following 5 variables:

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.

Examples

1
2
3
4
5
6
7
ggplot(data = VIT2005, aes(x = area, y = totalprice, color = factor(elevator))) + 
geom_point()
modTotal <- lm(totalprice ~ area + as.factor(elevator) + area:as.factor(elevator), 
data = VIT2005)
modSimpl <- lm(totalprice ~ area, data = VIT2005)
anova(modSimpl, modTotal)
rm(modSimpl, modTotal)

Example output

Loading required package: lattice
Loading required package: ggplot2
Analysis of Variance Table

Model 1: totalprice ~ area
Model 2: totalprice ~ area + as.factor(elevator) + area:as.factor(elevator)
  Res.Df        RSS Df Sum of Sq      F    Pr(>F)    
1    216 3.5970e+11                                  
2    214 3.0267e+11  2 5.704e+10 20.165 9.478e-09 ***
---
Signif. codes:  0***0.001**0.01*0.05.’ 0.1 ‘ ’ 1

PASWR2 documentation built on Sept. 5, 2021, 5:44 p.m.