Learn R Programming

bnRep (version 0.0.5)

realestate2: realestate Bayesian Networks

Description

Disentangling spatial and structural drivers of housing prices through Bayesian networks: A case study of Madrid, Barcelona, and Valencia.

Arguments

Value

An object of class bn.fit. Refer to the documentation of bnlearn for details.

Format

A discrete Bayesian network modeling both spatial and structural drivers of house prices in the city of Barcelona. The Bayesian network is learned as in the referenced paper. The vertices are:

AC

Air conditioning available (Yes, No);

AGE

Age of the building (New Development, Modern, Mid-Age, Historic);

AREA

Constructed area in square meters (Small, Medium, Large, Luxury);

BATHS

Number of bathrooms binned (Few, Moderate, Many));

CENTRE

Distance to city centre (Very Near, Near, Medium, Far);

CONDITION

Property condition (New Construction, Second Hand Renovation, Second Hand Good Condition);

DENSITY

Number of dwellings in the building (Low Medium, High, Very High-Density);

DMAN

Doorman service present (Yes, No);

FLOOR

Floor level in the building (Lower, Mid, Upper, Top);

GARDEN

Garden present (Yes, No);

GREEN

Distance to green space (Very Near, Near, Medium, Far);

HEIGHT

Maximum building height (Low-Rise, Mid-Rise, High-Rise, Skyscraper);

LIFT

Lift presente (Yes, No);

MARKET

Distance to supermaket (Very Near, Near, Medium, Far);

METRO

Distance to metro station (Very Near, Near, Medium, Far);

NHBD

Neighborhood frequency - quartile rank (Most Common, Frequent, Less Frequent, Rare);

POOL

Swimming pool present (Yes, No);

PRICE

Asking price per square meter - binned (Very Low, Low, Medium Low, Medium High, High, Luxury);

PRKG

Parking space available (Yes, No);

QUALITY

Cadastral building quality index (Low Value, Moderate Value, High Value, Very High Value);

ROOMS

Number of rooms - binned (Few, Moderate, Many);

STREET1

Distance to primary avenue (Very Near, Near, Medium, Far);

STREET2

Distance to secondary avenue (Very Near, Near, Medium, Far);

STRG

Storage room available (Yes, No);

TRRC

Terrace present (Yes, No);

TYPE

Property type (Studio, Duplex, Penthouse, Standard);

WRDRB

Built-in wardrobes (Yes, No);

References

Murga, A. G., & Leonelli, M. (2025). Disentangling Spatial and Structural Drivers of Housing Prices through Bayesian Networks: A Case Study of Madrid, Barcelona, and Valencia. arXiv preprint arXiv:2506.09539.