informacje: Rysuje informacje o danych

Description Usage Arguments Author(s) Examples

Description

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.

Usage

 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",
  ...
)

Arguments

score

Wektor ze zmienną numeryczną.

default

Wektor ze zmienną dwumianową.

buckets

Sugerowana liczba bucketów.

span

Współczynnik wygładzający, wykorzystywany przez funkcję locfit

main

Tytuł wykresu.

hist_col

Kolor histogramu

ylab

Label

xlab

Label

...

dodatkowe parametry.

Author(s)

Michał Danaj

Examples

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")

michaldanaj/MDBinom documentation built on June 13, 2020, 11:21 p.m.