lead_flag: lead_flag

Description Usage Arguments Value Examples

Description

creates a lead variable for a flag based on the outcome period (or loss_id_period in the case of PD calculations)

Usage

1
lead_flag(data, outcome_period, flag)

Arguments

data

a monthly loan performance level data frame in standard data dictionary format

outcome_period

period to look ahead in terms of event (flag). E.g. for 12 month PD this will be a loss identification period (LIP) of 12.

flag

the flag or event (could be default, settlement, write-off or any other permanent status)

Value

the input data frame with a parameter called lead_flag

Examples

1
2
# creates lead flag for calculating PD:
dft <- lead_flag(df, 12, "default_flag")

TheProfitTable/loanportr documentation built on May 28, 2019, 3:17 p.m.