print.gains: Printing Gains Table Objects

Description Usage Arguments See Also Examples

View source: R/print.gains.R

Description

Print method for objects of class gains.

Usage

1
2
## S3 method for class 'gains'
print(x, digits=2, ...)

Arguments

x

an object of class gains.

digits

minimum number of significant digits to print. See print.default.

...

additional arguments to print

.

See Also

gains, print.

Examples

1
2
3
data(ciaScores)
print(with(subset(ciaScores,train==0), 
      gains(actual=CellPhonesPP, predicted=PredOLS, optimal=TRUE)),digits=2)

Example output

Depth                            Cume   Cume Pct                 Optimal Optimal     Mean
 of           Cume     Mean      Mean   of Total    Lift   Cume    Lift    Cume     Model
File     N      N      Resp      Resp      Resp    Index   Lift   Index    Lift     Score
-----------------------------------------------------------------------------------------
  10     9      9      1.25      1.25      16.4%     168    168     209     209      1.47
  20     9     18      1.25      1.25      32.7%     167    167     167     188      1.30
  29     9     27      1.13      1.21      47.5%     151    162     148     175      1.17
  39     9     36      0.99      1.15      60.4%     132    154     129     163      1.04
  50    10     46      0.79      1.07      71.8%     105    144     109     151      0.85
  60     9     55      0.56      0.99      79.2%      76    133      92     142      0.75
  70     9     64      0.65      0.94      87.7%      87    126      71     132      0.65
  79     9     73      0.44      0.88      93.4%      58    118      47     121      0.54
  89     9     82      0.20      0.81      96.0%      27    108      29     111      0.40
 100    10     92      0.27      0.75     100.0%      37    100       8     100     -0.02

gains documentation built on May 2, 2019, 3:25 a.m.

Related to print.gains in gains...