confint.LR {LorenzRegression}R Documentation

Confidence intervals for the Lorenz Regression

Description

confint.LR provides confidence intervals for the explained Gini coefficient, Lorenz-R2 and theta vector for an object of class LR.

Usage

## S3 method for class 'LR'
confint(
  object,
  parm = c("Gini", "LR2", "theta"),
  level = 0.95,
  boot.method = c("Param", "Basic", "Perc"),
  ...
)

Arguments

object

Output of a call to Lorenz.Reg, where penalty="none" and Boot.inference=TRUE.

parm

Determines whether the confidence interval is computed for the explained Gini coefficient, for the Lorenz-R2 or for the vector of theta coefficients. Possible values are "Gini" (default, for the explained Gini),"LR2" (for the Lorenz-R2) and "theta" (for the vector theta).

level

level of the confidence interval

boot.method

What bootstrap method is used to construct the confidence interval. Default value is "Param", which exploits the asymptotic normality and only bootstraps the variance. Other possible values are "Perc" (percentile bootstrap) and "Basic" (basic bootstrap). Percentile bootstrap directly plugs the quantiles of the bootstrap distribution. Basic bootstrap is based on bootstrapping the whole distribution of the estimator.

...

Additional arguments.

Details

Use this function only if Boot.inference was set to TRUE in the call to Lorenz.Reg. Otherwise, bootstrap was not computed and the confidence intervals cannot be determined.

Value

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

See Also

Lorenz.Reg

Examples


# The following piece of code might take several minutes
data(Data.Incomes)
set.seed(123)
Data <- Data.Incomes[sample(1:nrow(Data.Incomes),50),]
NPLR <- Lorenz.Reg(Income ~ ., data = Data, penalty = "none",
                   seed.boot = 123, B = 40, Boot.inference = TRUE)
confint(NPLR)



[Package LorenzRegression version 1.0.0 Index]