diff --git a/docs/articles/HalfNormal.html b/docs/articles/HalfNormal.html index e5366a9b..e12f91fb 100644 --- a/docs/articles/HalfNormal.html +++ b/docs/articles/HalfNormal.html @@ -73,7 +73,7 @@

The half-normal plots

Alicja Gosiewska

-

2018-03-11

+

2018-03-27

diff --git a/docs/articles/Intorduction_into_model_audit.html b/docs/articles/Intorduction_into_model_audit.html index 25a9ce80..9fae0e02 100644 --- a/docs/articles/Intorduction_into_model_audit.html +++ b/docs/articles/Intorduction_into_model_audit.html @@ -73,7 +73,7 @@

Introduction into model audit

Alicja Gosiewska

-

2018-03-11

+

2018-03-27

diff --git a/docs/reference/audit.html b/docs/reference/audit.html index 1a27a5c8..22fd5f4b 100644 --- a/docs/reference/audit.html +++ b/docs/reference/audit.html @@ -156,7 +156,10 @@

Value

Examples

-
library(MASS)
#> Warning: package ‘MASS’ was built under R version 3.4.3
model.glm <- glm(Postwt ~ Prewt + Treat + offset(Prewt), family = gaussian, data = anorexia) +
library(MASS)
#> Warning: package ‘MASS’ was built under R version 3.4.3
#> +#> Attaching package: ‘MASS’
#> The following object is masked from ‘package:auditor’: +#> +#> select
model.glm <- glm(Postwt ~ Prewt + Treat + offset(Prewt), family = gaussian, data = anorexia) audit.glm <- audit(model.glm) p.fun <- function(model, data){predict(model, data, response = "link")} @@ -164,9 +167,9 @@

Examp library(randomForest)

#> Warning: package ‘randomForest’ was built under R version 3.4.3
#> randomForest 4.6-12
#> Type rfNews() to see new features/changes/bug fixes.
#> -#> Attaching package: ‘randomForest’
#> The following object is masked from ‘package:auditor’: +#> Attaching package: ‘randomForest’
#> The following objects are masked from ‘package:auditor’: #> -#> margin
model.rf <- randomForest(Species ~ ., data=iris) +#> combine, margin
model.rf <- randomForest(Species ~ ., data=iris) audit.rf <- audit(model.rf)
+ + + + + + + + diff --git a/docs/reference/plotLIFT-1.png b/docs/reference/plotLIFT-1.png new file mode 100644 index 00000000..75621c83 Binary files /dev/null and b/docs/reference/plotLIFT-1.png differ diff --git a/docs/reference/plotLIFT-2.png b/docs/reference/plotLIFT-2.png new file mode 100644 index 00000000..ef3810ff Binary files /dev/null and b/docs/reference/plotLIFT-2.png differ diff --git a/docs/reference/plotLIFT.html b/docs/reference/plotLIFT.html new file mode 100644 index 00000000..736033a3 --- /dev/null +++ b/docs/reference/plotLIFT.html @@ -0,0 +1,189 @@ + + + + + + + + +Lift Chart — plotLIFT • auditor + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+ +
+
+ + + +

Lift Chart shows the ratio of a model to a random guess.

+ + +
plotLIFT(object, ..., newdata = NULL, newy, groups = 10,
+  cumulative = TRUE)
+ +

Arguments

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
object

An object of class ModelAudit

...

other modelAudit objects to be plotted together

newdata

optionally, a data frame in which to look for variables with which to plot CGains curve. If omitted, the data used to build model will be used.

newy

optionally, required if newdata used. Response vector for new data.

groups

number of groups

cumulative

boolean. If TRUE cumulative lift curve will be plotted.

+ +

Value

+ +

ggplot object

+ +

See also

+ +

plot.modelAudit

+ + +

Examples

+
library(auditor) +library(mlbench) +library(randomForest) +data("PimaIndiansDiabetes") + +model_rf <- randomForest(diabetes~., data=PimaIndiansDiabetes) +au_rf <- audit(model_rf, label="rf") +plotLIFT(au_rf)
#> Warning: NAs introduced by coercion
+model_glm <- glm(diabetes~., family=binomial, data=PimaIndiansDiabetes) +au_glm <- audit(model_glm) +plotLIFT(au_rf, au_glm)
#> Warning: NAs introduced by coercion
#> Warning: NAs introduced by coercion
+
+
+ +
+ +
+ + +
+

Site built with pkgdown.

+
+ +
+
+ + + diff --git a/docs/reference/plotREC-2.png b/docs/reference/plotREC-2.png index b1fc7f7e..a79ae88b 100644 Binary files a/docs/reference/plotREC-2.png and b/docs/reference/plotREC-2.png differ diff --git a/docs/reference/plotREC.html b/docs/reference/plotREC.html index 6c73e03e..41f46b3a 100644 --- a/docs/reference/plotREC.html +++ b/docs/reference/plotREC.html @@ -140,7 +140,10 @@

See a

Examples

library(auditor) library(randomForest) -library(car)
#> Warning: package ‘car’ was built under R version 3.4.3
model_lm <- lm(prestige ~ education + women + income, data = Prestige) +library(car)
#> Warning: package ‘car’ was built under R version 3.4.3
#> +#> Attaching package: ‘car’
#> The following object is masked from ‘package:auditor’: +#> +#> recode
model_lm <- lm(prestige ~ education + women + income, data = Prestige) audit_lm <- audit(model_lm) plotREC(audit_lm)
diff --git a/docs/reference/plotROC.html b/docs/reference/plotROC.html index 4de06fac..ed839c62 100644 --- a/docs/reference/plotROC.html +++ b/docs/reference/plotROC.html @@ -130,7 +130,8 @@

See a

Examples

library(auditor) -library(mlbench)
#> Warning: package ‘mlbench’ was built under R version 3.4.3
data("PimaIndiansDiabetes") +library(mlbench) +data("PimaIndiansDiabetes") model.glm <- glm(diabetes~., family=binomial, data=PimaIndiansDiabetes) au.glm <- audit(model.glm, label="class glm") diff --git a/docs/reference/plotRROC-2.png b/docs/reference/plotRROC-2.png index 4d01374d..857c56a3 100644 Binary files a/docs/reference/plotRROC-2.png and b/docs/reference/plotRROC-2.png differ