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

View source: R/fsst.R

fsst.range.bs.fnR Documentation

Computes one bootstrap estimate for the range component of the test statistic

Description

This function computes the one bootstrap estimate for the range component of the test statistic.

Usage

fsst.range.bs.fn(
  beta.x.star,
  n,
  lpmodel,
  beta.obs.hat,
  x.star,
  weight.mat.root,
  pbar,
  progress,
  n.bs,
  eval.count
)

Arguments

beta.x.star

A list that combines the bootstrap estimates of beta.star and x.star.

n

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

lpmodel

The lpmodel object.

beta.obs.hat

The sample estimator \widehat{\bm{β}}_{\mathrm{obs}, n} based on the given information in lpmodel (and data if applicable).

x.star

The optimal value from beta.star.qp.

weight.mat.root

The matrix square root of weight.mat.

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.

Value

Return the following list of objects:

Ts

The bootstrap range test statistic.

msg

An error message (if applicable).


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