MMboot_multireg: Fast and Robust Bootstrap for MM-Estimates of Multivariate...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/MMboot_multireg.R

Description

Calculates bootstrapped MM-estimates of multivariate regression and corresponding bootstrap confidence intervals using the Fast and Robust Bootstrap method.

Usage

1
MMboot_multireg(X, Y, R = 999, conf=0.95, ests = MMest_multireg(X, Y))

Arguments

X

a matrix or data frame containing the explanatory variables (possibly including intercept).

Y

a matrix or data frame containing the response variables.

R

number of bootstrap samples. Default is R=999.

conf

level of the bootstrap confidence intervals. Default is conf=0.95.

ests

MM-estimates as returned by MMest_multireg().

Details

Called by FRBmultiregMM and typically not to be used on its own. It requires the result of MMest_multireg applied on X and Y, supplied through the argument ests. If ests is not provided, MMest_multireg will be called with default arguments.

The fast and robust bootstrap was first developed by Salibian-Barrera and Zamar (2002) for univariate regression MM-estimators and extended to multivariate regression by Van Aelst and Willems (2005).

The value centered gives a matrix with R columns and 2*(p*q+q*q) rows (p is the number of explanatory variables and q the number of response variables), containing the recalculated MM-estimates and initial S-estimates. Each column represents a different bootstrap sample.

The first p*q rows are the MM-coefficient estimates, the next q*q rows represent the MM-estimate of the error shape matrix (having determinant 1). Then the next q*q rows are the S-estimate of error covariance and the final p*q rows are the S-estimates of the regression coefficients (all estimates are vectorized, i.e. columns stacked on top of each other). These estimates are centered by the original estimates, which are also returned through vecest in vectorized form.

The output list further contains bootstrap standard errors, as well as so-called basic bootstrap confidence intervals and bias corrected and accelerated confidence intervals (Davison and Hinkley, 1997, p.194 and p.204 respectively). Also in the output are p-values defined as 1 minus the smallest confidence level for which the confidence intervals would include the (hypothesised) value of zero. Both BCa and basic bootstrap p-values are given. These are only useful for the regression coefficient estimates (not really for the covariance estimates).

Bootstrap samples which contain less than p distinct observations with positive weights are discarded (a warning is given if this happens). The number of samples actually used is returned via ROK.

Value

A list containing the following components:

centered

a matrix of all fast/robust bootstrap recalculations where the recalculations are centered by original estimates (see Details)

vecest

a vector containing the original estimates (see Details)

SE

bootstrap standard errors for the estimates in vecest

cov

bootstrap covariance matrix for the estimates in vecest

CI.bca

a matrix containing 95% bias corrected and accelerated confidence intervals corresponding to the estimates in vecest (first column are lower limits, second column are upper limits)

CI.basic

a matrix containing 95% basic bootstrap intervals corresponding to the estimates in vecest (first column are lower limits, second column are upper limits)

p.bca

a vector containing p-values based on the bias corrected and accelerated confidence intervals (corresponding to the estimates in vecest)

p.basic

a vector containing p-values based on the basic bootstrap intervals (corresponding to the estimates in vecest)

ROK

number of bootstrap samples actually used (i.e. not discarded due to too few distinct observations with positive weight)

Author(s)

Gert Willems, Ella Roelant and Stefan Van Aelst

References

See Also

FRBmultiregMM, MMest_multireg, Sboot_multireg

Examples

1
2
3
4
5
6
7
data(schooldata)
school.x <- data.matrix(schooldata[,1:5])
school.y <- data.matrix(schooldata[,6:8])

#computes 1000 bootstrap recalculations starting from the MM-estimator
#obtained from MMest_multireg()
bootres <- MMboot_multireg(school.x,school.y,R=1000)

FRB documentation built on May 29, 2017, 5:45 p.m.

Related to MMboot_multireg in FRB...