Learn R Programming

REndo (version 1.2)

boots: Bootstrapping Standard Errors

Description

Performs bootstrapping to obtain the standard errors of the estimates of the model with one continuous endogenous regressor estimated via maximum likelihood using the copulaCorrection function.

Usage

boots(bot, y, X, P, param, intercept = NULL, data = NULL)

Arguments

bot
number of bootstrap replicates.
y
the vector or matrix containing the dependent variable.
X
the data frame or matrix containing the regressors of the model, both exogeneous and endogeneous. The last column/s should contain the endogeneous variable/s.
P
the vector containing the continuous, non-normally distributed endogeneous variable.
param
initial values for the parameters to be optimized over. See copulaCorrection for more details.
intercept
an optional parameter. The model is estimated by default with intercept. If no intercept is desired or the regressors matrix X contains already a column of ones, intercept should be given the value "no".
data
optional data frame or matrix containing the variables of the model.

Value

Returns the standard errors of the estimates of the model using the copula method 1 described in Park and Gupta (2012). See Details section of copulaCorrection.

Details

The function could be used only when there is a single endogenous regressor and method one is selected in copulaCorrection. of the copulaCorrection function is used for estimation.

See Also

copulaCorrection