Learn R Programming

ISLR2 (version 1.3-2)

Credit: Credit Card Balance Data

Description

A simulated data set containing information on 400 customers.

Usage

Credit

Arguments

Format

A data frame with 400 observations on a number of variables.

Income

Income in $1,000's

Limit

Credit limit

Rating

Credit rating

Cards

Number of credit cards

Age

Age in years

Education

Education in years

Own

A factor with levels No and Yes indicating whether the individual owns a home

Student

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

Married

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

Region

A factor with levels East, South, and West indicating the individual's geographical location

Balance

Average credit card balance in $.

References

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

Examples

Run this code
summary(Credit)
lm(Balance ~ Student + Limit, data=Credit)

Run the code above in your browser using DataLab