Description Usage Arguments Value Examples
desc.stat
returns the descriptive statistics of numeric risk factor. Reported metrics covers mainly
univariate and part of bivariate analysis which are usually standard steps in credit rating model development.
Metrics are reported for special (if exists) and complete case groups separately.
Report includes:
risk.factor: Risk factor name.
type: Special case or complete case group.
bin: When special case method is together
then bin is the same as type, otherwise
all special cases are reported separately.
cnt: Number of observations.
pct: Percentage of observations.
min: Minimum value.
p1, p5, p25, p50, p75, p95, p99: Percentile values.
avg: Mean value.
avg.se: Standard error of mean.
max: Maximum value.
neg: Number of negative values.
pos: Number of positive values.
cnt.outliers: Number of outliers.
Records above and below Q75 + 1.5 * IQR
, where IQR = Q75 - Q25
, where
IQR is interquartile range.
1 |
x |
Numeric risk factor. |
y |
Numeric target vector (binary or continuous). |
sc |
Numeric vector with special case elements. Default values are c(NA, NaN, Inf). Recommendation is to keep the default values always and add new ones if needed. Otherwise, if these values exist in x and are not defined in the sc vector, function will report the error. |
sc.method |
Define how special cases will be treated, all together or in separate bins.
Possible values are |
Data frame of descriptive statistics metrics, separately for complete and special case groups.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.