confint.fair.model | R Documentation |
Confidence intervals for the parameters of the models in the fairml package.
## S3 method for class 'fair.model'
confint(object, parm, level = 0.95, method = "boot",
method.args = list(), ...)
## S3 method for class 'fair.confint'
plot(x, support = FALSE, ...)
object |
an object of class |
parm |
a character vector, the names of the parameters to compute the confidence intervals for. The default is to do that for all parameters. |
level |
a number between 0 and 1, the coverage of the confidence intervals. |
method |
a character string, the method used to compute the confidence intervals. See below for details. |
method.args |
optional arguments passed to the |
... |
additional arguments (unused). |
x |
an object of class |
support |
a logical value, whether to draw a vertical line at zero. |
The only available method
is "boot"
, which implements
nonparametric bootstrap with observation resampling. It has the following
optional arguments:
response
, predictors
, sensitive
: the data the
model was fitted from.
R
: a positive integer number, the number of bootstrap samples.
The default value is 200
.
m
: a positive integer number, the size of bootstrap samples.
The default value is the size of the original sample.
confint()
returns an object of class fair.confint
which wraps
a two- or three-dimensinal matrix. The upper and lower bounds of the
confidence intervals in the columns, the variables are in the rows.
Marco Scutari
mgaus = fgrrm(response = vu.test$gaussian, predictors = vu.test$X,
sensitive = vu.test$S, unfairness = 0.05, family = "gaussian")
ci = confint(mgaus, method = "boot",
method.args = list(response = vu.test$gaussian, predictors = vu.test$X,
sensitive = vu.test$S, R = 20))
ci
plot(ci)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.