Learn R Programming

REndo (version 1.3)

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, formula, endoVar, param, intercept = NULL, data)

Arguments

bot

number of bootstrap replicates.

formula

the model formula, e.g. y ~ X1 + X2 + P.

endoVar

a string with the name of the endogenous variable/s, in quotation marks.

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 in model estimation, intercept should be given the value "FALSE", otherwise the value "TRUE".

data

a 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