bs.assign: Auxiliary function in the bootstrap replications

View source: R/misc.R

bs.assignR Documentation

Auxiliary function in the bootstrap replications

Description

This function is used in the bootstrap replications of the procedures. It returns the indices to be considered in the bootstrap replications and the list to be passed to the lpmodel.anylist function.

Usage

bs.assign(
  R,
  R.eval,
  R.succ,
  maxR,
  any.list,
  lpmodel,
  data = NULL,
  m = NULL,
  replace = TRUE
)

Arguments

R

The number of bootstrap replications.

R.eval

The number of bootstrap replications that has been evaluated.

R.succ

The number of successful bootstrap replications.

maxR

The maximum number of bootstrap replications.

any.list

An object returned from the lpmodel.anylist function, which indicates whether at least one of the components in lpmodel is a list.

lpmodel

An lpmodel object.

data

An data frame or a matrix.

m

The size of each subsample.

replace

A boolean variable to indicate whether the function samples the data with or without replacement.

Value

Returns the following three objects.

i0

The starting index to be evaluated.

i1

The last index to be evaluated.

bs.list

The list of bootstrap replications in the lpmodel object passed from the user.


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