Skip to content

Commit 5985e4a

Browse files
committed
update readme and demo file
1 parent d6386f8 commit 5985e4a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This package depends on 'smbinning' prior to version 0.4, so you have to install
1818

1919

2020
## Usage
21-
The following is a demo for illustrating how to use this package to establish a credit scoring model from beginning to end. You can run the following codes manually, or use 'demo(scoremodel)' directly.
21+
The following is a demo for illustrating how to use this package to establish a credit scoring model from beginning to end. You can run the following codes manually, or use 'demo(scoremodel,package="scoremodel")' directly.
2222

2323
```R
2424
library(scoremodel)

demo/scoremodel.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
## Demo file for scoremodel; start with 'demo(scoremodel)'
33
## -----------------------------------------------------------------------------------
44

5+
devAskNewPage(ask = FALSE)
56
library(scoremodel)
67
data(CreditData)
78
#convert character variables to factors
@@ -39,3 +40,4 @@ myCurves(train[,"target"], p_train, test[,"target"], p_test, ontest = FALSE,
3940
lift_bins = 10, P0 = 600, PDO = 50, color_scheme = 1, ifsave = FALSE)
4041
myCurves(train[,"target"], p_train, test[,"target"], p_test, ontest = TRUE,
4142
lift_bins = 10, P0 = 600, PDO = 50, color_scheme = 1, ifsave = FALSE)
43+
devAskNewPage(ask = TRUE)

0 commit comments

Comments
 (0)