Description Usage Arguments Author(s) Examples
Rysuje histogram zmiennej score
, dla każdego przedziału histogramu
rysuje bad rate, oraz rysuję krzywą regresji dla default~score
. Pod
wykresem wyświetla informacje o Accuracy Ratios i bad rate.
1 2 3 4 5 6 7 8 9 10 11 | informacje(
score,
default,
buckets = 20,
span = 0.8,
main = "",
hist_col = "blue",
ylab = c("Frequency", "BR"),
xlab = "Calibrated score",
...
)
|
score |
Wektor ze zmienną numeryczną. |
default |
Wektor ze zmienną dwumianową. |
buckets |
Sugerowana liczba bucketów. |
span |
Współczynnik wygładzający, wykorzystywany przez funkcję |
main |
Tytuł wykresu. |
hist_col |
Kolor histogramu |
ylab |
Label |
xlab |
Label |
... |
dodatkowe parametry. |
Michał Danaj
1 2 3 | x<-rnorm(100);
y<-(x+rnorm(100))>0;
informacje(x, y, buckets=15, span=0.8, main="", hist_col="blue", type="br", method_bucket="eq_length")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.