dkqs.qlp | R Documentation |
dkqs
procedureThis function formulates the matrices and vectors used in the DKQS test and solves the quadratic programs (4) or linear programs (5) and (6) in Torgovitsky (2019).
dkqs.qlp(lpmodel, beta.tgt, beta.obs.hat, tau, problem, n, solver)
lpmodel |
An |
beta.tgt |
The value to be tested. |
beta.obs.hat |
The value of sample |
tau |
The value of the tuning parameter |
problem |
The problem that the function will be solved. |
n |
Number of observations for the data. |
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 |
The argument problem
must be one of the followings:
test
— this computes the solution to the quadratic program
that solves the test statistic, i.e. quadratic program (4) in
Torgovitsky (2019)
cone
— this computes the solution to the quadratic program
for the bootstrap test statistics, i.e. quadratic program (5) in
Torgovitsky (2019)
tau
— this computes the value of tau based on the
procedure suggested by Kamat (2018), i.e. linear program (6) in
Torgovitsky (2019)
Returns the optimal point and optimal value.
objval |
The optimal value. |
x |
The optimal point. |
lb0 |
The logical lower bound. |
ub0 |
The logical upper bound. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.