subsample.prob | R Documentation |
subsample
problemThis function formulates and solves the linear or quadratic
program in the subsample
procedure. If the user
chooses a 1-norm, this function solves a linear program. If the user
chooses a 2-norm, this function solves a quadratic program.
subsample.prob(
data,
lpmodel,
beta.tgt,
norm,
solver,
n,
beta.obs.hat,
omega.hat
)
data |
An |
lpmodel |
The |
beta.tgt |
The value to be tested. |
norm |
The norm used in the optimization problem. It can be either a
1-norm or a 2-norm. See the details section 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 |
n |
The sample size. This is only required if |
beta.obs.hat |
The value of sample |
omega.hat |
The estimator of the asymptotic variance. |
Returns the following list of outputs:
status |
The status of the optimization problem. |
x |
The optimal point. |
objval |
The optimal value. |
larg |
The list of arguments passed to the optimizer. |
beta |
The beta vector |
omega |
The Omega matrix |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.