subsample.check | R Documentation |
subsample
This function checks and updates the input from the user in the
subsample
function. If there is any invalid input,
the function will be terminated and error messages will be printed.
subsample.check(
data,
lpmodel,
beta.tgt,
R,
Rmulti,
solver,
norm,
phi,
n,
replace,
progress
)
data |
An |
lpmodel |
An |
beta.tgt |
The value to be tested. |
R |
The number of bootstrap replications. |
Rmulti |
The multiplier for the number of bootstrap replications. The
product of |
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 |
norm |
The norm used in the optimization problem. It can be either a
1-norm or a 2-norm. See the details section of
|
phi |
The tuning parameter for the subsampling test. The size of each
subsample is |
n |
The sample size. This is only required if |
replace |
A boolean variable to indicate whether the function samples the data with or without replacement. |
progress |
The boolean variable for whether the progress bars should
be displayed. If it is set as |
Returns the updated parameters and objects back to the function
subsample
. The following information are updated:
data
lpmodel
solver
solver.name
norm
test.logical
logical.lb
logical.ub
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.