fsst.beta.bs.fn: Computes one bootstrap estimates for 'beta.obs'.

View source: R/fsst.R

fsst.beta.bs.fnR Documentation

Computes one bootstrap estimates for beta.obs.

Description

This function carries out one bootstrap replication for getting beta.obs in the fsst procedure. This function is used in the fsst.beta.bs function via the future_map function.

Usage

fsst.beta.bs.fn(x, data, lpmodel, pbar, progress, eval.count, n.bs, any.list)

Arguments

x

This is either the list of indices that represent the bootstrap replications, or the list of bootstrap components of the lpmodel object passed from the user.

data

An data frame or a matrix.

lpmodel

An lpmodel object.

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.

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.

n.bs

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

any.list

This object contains information on whether any components in the lpmodel object is a list.

Value

Returns a list of output that are obtained from the subsampling procedure:

beta

A bootstrap estimator of \hat{β}_{n,b}.

msg

An error message (if applicable).


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