fsst.cone.bs.fn: Computes one bootstrap estimate of the cone component of the...

View source: R/fsst.R

fsst.cone.bs.fnR Documentation

Computes one bootstrap estimate of the cone component of the test statistics

Description

This function computes one bootstrap estimate of the cone component of the test statistics.

Usage

fsst.cone.bs.fn(
  beta.star.bs,
  n,
  omega.i,
  beta.n,
  beta.star,
  lpmodel,
  lambda,
  indicator,
  beta.r,
  solver,
  pbar,
  progress,
  n.bs,
  eval.count,
  data.driven
)

Arguments

beta.star.bs

One bootstrap estimate of the beta.star object.

n

The sample size. This is only required if data is omitted in the input.

omega.i

The matrix \widehat{\bm{Ω}}^i_n, i.e. the regularized matrix for \widehat{\bm{Σ}}^{β^\star}_{n,\bar{ρ}}.

beta.n

The sample \widehat{\bm{β}}_n vector that is defined as \widehat{\bm{β}}_n \equiv (\widehat{\bm{β}}_{{\rm obs},n}, \bm{β}_{{\rm shp},n}, \bm{β}_{{\rm tgt}})'.

beta.star

The starred version of the beta.n vector, i.e. \widehat{\bm{β}}^\star_n.

lpmodel

The lpmodel object.

lambda

Parameter used to obtain the restricted estimator \widehat{\bm{β}}^r_n. A data-driven parameter lambda can be included if NA is included as part of the vector for lambda. For instance, if lambda is set as c(0.1, NA), then both 0.1 and the data-driven lambda will be applied in the fsst test. The default is to use the data-driven lambda.

indicator

A binary variable that equals to 1 for d ≥q p and equals to 0 for d < p.

beta.r

The restricted estimator.

solver

The name of the linear and quadratic programming solver that is used to obtain the solution to linear and quadratic programs. The solvers supported by this package are cplexAPI, gurobi, limSolve and Rcplex.

pbar

The progress bar object.

progress

The boolean variable for whether the progress bars should be displayed. If it is set as TRUE, the progress bars will be displayed while the code is running.

n.bs

The total number of replications to be conducted in this procedure.

eval.count

The count for the number of times the future_map function has been called. If this object is zero, it means that the future_map function is being called for the first time in this subprocedure. Otherwise, it means that the future_map function has been called for more than once. This situation typically refers to the situations where there are some errors in the first time of the replications.

data.driven

A boolean variable. This indicates whether the data-driven problem is being considered.

Value

Return the following list of objects:

Ts

The bootstrap cone test statistic.

msg

An error message (if applicable).


conroylau/lpinfer documentation built on Oct. 23, 2022, 9:21 a.m.