summary.default.flag: Summary by Default Flag

Description Usage Arguments Examples

Description

This function allows calculation of the summary statistics of a given variable based on good and bad observations.

Usage

1
2
## S3 method for class 'default.flag'
summary(data, default_flag, variable)

Arguments

data

A data set needs to be specified.

default_flag

The default flag need to specified.

variable

A variable need to be specified to calculate summary statistics.

Examples

1
2
3
4
5
default_f <- c('1','0','0', '1')
birth_year <- c(1980, 1985, 1971, 1990)
salary <- c(20000,NA,10000, 10050)
example_data <- data.frame(default_f,birth_year,salary)
summary.default.flag(example_data, "default_f", "birth_year")

ayhandis/creditR documentation built on May 9, 2019, 8:41 a.m.