cohort_analysis {creditmodel}R Documentation

cohort_analysis cohort_analysis is for cohort(vintage) analysis.

Description

cohort_analysis cohort_analysis is for cohort(vintage) analysis.

cohort_table

Usage

cohort_analysis(
  dat,
  obs_id = NULL,
  occur_time = NULL,
  MOB = NULL,
  group = NULL,
  due_day = NULL,
  period = "monthly",
  status = NULL,
  amount = NULL,
  by_out = "cnt",
  start_date = NULL,
  end_date = NULL,
  dead_status = 30,
  all_due = TRUE
)

cohort_table(
  dat,
  obs_id = NULL,
  occur_time = NULL,
  MOB = NULL,
  group = NULL,
  due_day = NULL,
  period = "monthly",
  status = NULL,
  amount = NULL,
  by_out = "cnt",
  start_date = NULL,
  end_date = NULL,
  dead_status = 30,
  all_due = TRUE
)

Arguments

dat

A data.frame contained id, occur_time, mob, status ...

obs_id

The name of ID of observations or key variable of data. Default is NULL.

occur_time

The name of the variable that represents the time at which each observation takes place.

MOB

Mobility of book

group

A group of observations.

due_day

The name of the variable that represents the time at the end of MOB.

period

Period of event to analysiss. Default is "monthly"

status

Status of observations

amount

The name of variable representing amount. Default is NULL.

by_out

Output: amount (amt) or count (cnt)

start_date

The earliest occurrence time of observations.

end_date

The latest occurrence time of observations.

dead_status

Status of dead observations.

all_due

All observations are due.


[Package creditmodel version 1.3.0 Index]