print.gainstable: Print "gainstable" Object

Description Usage Arguments Examples

View source: R/printGainsTable.R

Description

S3 print method to print "gainstable" object.

Usage

1
2
## S3 method for class 'gainstable'
print(x, maxdigit = 3, ... = NULL)

Arguments

x

An object of class "gainstable", created with either gainstable.default or gainstable.rocit.

maxdigit

How many digits after decimal to be printed.

...

NULL. Used for S3 generic/method consistency.

Examples

1
2
3
4
5
6
7
8
data("Loan")
class <- Loan$Status
score <- Loan$Score
rocit_emp <- rocit(score = score, class = class, negref = "FP")
# ----------------------------------------------------------------
gtable8 <- gainstable(rocit_emp, ngroup = 8)
print(gtable8)
print(gtable8, maxdigit = 4)

ROCit documentation built on July 1, 2020, 11:28 p.m.