Description Usage Format References Examples
The full dataset is in the data frame 'Hdma' within the R package Ecdat. This data frame is the subset of mortgage applications during the years 1998-1999.
1 |
A data frame with 2,380 observations on the following 13 variables:
dirratio of the debt payments to the total income.
hirratio of the housing expenses to the total income.
lvrratio of the loan size to the assessed value of property.
ccsa credit score ranging from 1 to 6, where a low value indicates low credit risk.
mcsa mortgage credit score from 1 to 6, where a low value indicates low credit risk.
pbcrdid the applicant have a public bad credit record?: a factor with levels no and yes.
dmiwas the applicant denied mortgage insurance?: a factor with levels no and yes.
selfwas the applicant self-employed?: a factor with levels no and yes.
singleis the applicant single?: a factor with levels no and yes.
uria1989 Massachusetts unemployment rate in the applicant's industry.
condominiumis the unit a condominium?: a factor with levels no and yes.
blackis the applicant black?: a factor with levels no and yes.
denywas the mortgage denied?: a factor with levels no and yes.
Munnell, A. H., Tootell, G. M. B., Browne, L. E., and McEneaney, J. (1996). Mortgage lending in Boston: Interpreting HDMA data, American Economic Review, 25-53.
1 2 3 4 5 | library(HRW) ; data(BostonMortgages)
BostonMortgages$denyBinary <- as.numeric(BostonMortgages$deny == "yes")
fit <- glm(denyBinary ~ black + dir + lvr + pbcr + self + single + as.factor(ccs),
family = binomial,data = BostonMortgages)
summary(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.