Learn R Programming

LorenzRegression (version 2.2.0)

confint.LR_boot: Confidence intervals for the Lorenz regression

Description

Provides bootstrap confidence intervals for the explained Gini coefficient, Lorenz-R2 and theta vector for an object of class "LR_boot".

Usage

# S3 method for LR_boot
confint(
  object,
  parm = c("Gini", "LR2", "theta"),
  level = 0.95,
  type = c("norm", "basic", "perc"),
  bias.corr = TRUE,
  ...
)

Value

The desired confidence interval. If parm="Gini" or parm="LR2", the output is a vector. If parm="theta", it is a matrix where each row corresponds to a different coefficient.

Arguments

object

An object of class "LR_boot". The current implementation requires bootstrap to construct confidence intervals. Hence, it is not sufficient that object inherits from "LR".

parm

A logical value determining whether the confidence interval is computed for the explained Gini coefficient, for the Lorenz-\(R^2\) or for the vector of coefficients of the single-index model. Possible values are "Gini" (default, for the explained Gini),"LR2" (for the Lorenz-\(R^2\)) and "theta" (for the index coefficients).

level

A numeric giving the level of the confidence interval. Default value is 0.95.

type

A character string specifying the bootstrap method. Possible values are "norm", "basic" and "perc". For more information, see the argument type of the function boot.ci from the boot library.

bias.corr

A logical determining whether bias correction should be performed. Only used if type="norm". Default is TRUE.

...

Additional arguments.

See Also

Lorenz.boot, boot.ci

Examples

Run this code
## For examples see example(Lorenz.boot)

Run the code above in your browser using DataLab