Learn R Programming

ISLR (version 1.4)

Credit: Credit Card Balance Data

Description

A simulated data set containing information on ten thousand customers. The aim here is to predict which customers will default on their credit card debt.

Usage

Credit

Arguments

Format

A data frame with 10000 observations on the following 4 variables.

ID

Identification

Income

Income in $1,000's

Limit

Credit limit

Rating

Credit rating

Cards

Number of credit cards

Age

Age in years

Education

Number of years of education

Gender

A factor with levels Male and Female

Student

A factor with levels No and Yes indicating whether the individual was a student

Married

A factor with levels No and Yes indicating whether the individual was married

Ethnicity

A factor with levels African American, Asian, and Caucasian indicating the individual's ethnicity

Balance

Average credit card balance in $.

References

James, G., Witten, D., Hastie, T., and Tibshirani, R. (2013) An Introduction to Statistical Learning with applications in R, https://www.statlearning.com, Springer-Verlag, New York

Examples

Run this code
# NOT RUN {
summary(Credit)
lm(Balance ~ Student + Limit, data=Credit)
# }

Run the code above in your browser using DataLab