getCharSTM2u | R Documentation |
compContourM2u
The function computes some overall characteristics
of directional regression quantiles in the output
of compContourM2u
, namely the list
COutST$CharST
. It makes possible
to obtain some useful information without saving
any file on the disk, and it can be easily modified
by the users according to their wishes.
getCharSTM2u(Tau, N, M, P, BriefDQMat, CharST, IsFirst)
Tau |
the quantile level in (0, 0.5). |
N |
the number of observations. |
M |
the dimension of responses. |
P |
the dimension of regressors including the intercept. |
BriefDQMat |
the method-specific matrix containing
the rows of a potential individual output
file corresponding to
|
CharST |
the output list, updated with each run of the function. |
IsFirst |
the indicator equal to one in the
first run of |
This function is called inside compContourM2u
.
First, it is called with
BriefDQMat
= NULL
,
CharST
= NULL
and
IsFirst
= 1 to initialize
the output list CharST
, and then
it is called with IsFirst
= 0
successively for the content of each potential
output file corresponding to
CTechST$BriefOutputI
= 1, i.e., even if
the output file(s) are not stored on the disk owing to
CTechST$OutSaveI
= 0.
It still remains to describe in detail the content of possible output files, describing the optimal conic segmentation of the directional space that lies behind the optimization problem involved.
If CTechST$BriefOutputI
= 1, then the rows of such
files are vectors of length 1+1+M+P*M+M
of the form
c(ConeID, Nu, UVec, vec(ACOMat), MuBRow)
where
is the number/order of the cone related to the
line. If M
> 2, then a cone can appear in
the output repeatedly (under different numbers).
is the number of negative residuals corresponding to the interior directions of the cone.
is a normalized vector of the cone.
It is usually its vertex direction but it may
also be its interior vector pointing to a vertex
of the artificial intersection of the cone with
the bounding box [-1,1]^M
. The
max normalization is used if the breadth-first
search algorithm is employed and the L2
normalization is used in the other case (when
M
= 2 and CTechST$D2SpecI
= 1).
is the matrix describing AVec
,
AVec
= ACOMat%*%UVec
.
is the constant vector of the Lagrange
multipliers corresponding to BVec
.
Its inner product with UVec
is equal
to the optimal value Psi
of the objective
function for that direction.
Recall that c(BVec, AVec)
stands for the coefficients
of the regression quantile hyperplane associated with
UVec
and always BVec
= UVec
.
If CTechST$BriefOutputI
= 0, then the rows of the
potential output file(s) are longer
(of length 1+1+P*M+M+P+P
)
because they contain two more vectors appended at the end.
The rows are of the form
c(ConeID, Nu, UVec, vec(ACOMat), MuBRow, MuR0Row, IZ)
where
is the constant vector of the Lagrange
multipliers corresponding to zero residuals
associated with the interior of the cone.
That is to say that all directions
from the interior of the cone result in the
regression Tau
-quantile hyperplanes
containing the same P
observations.
is the vector containing original indices of the
P
observations with zero residuals
for all directions from the interior of the cone.
getCharSTM2u
returns a list with the following
components:
NUESkip |
the number of (skipped) directions (and
corresponding hyperplanes) artificially
induced by intersecting the cones with
the |
NAZSkip |
the number of (skipped) hyperplanes (and
corresponding directions) not counted in NUESkip
and with at least one coordinate of
|
NBZSkip |
the number of (skipped) hyperplanes (and
corresponding directions) not counted in NUESkip
and with at least one coordinate of
|
HypMat |
(for |
CharMaxMat |
the matrix with the (slightly rounded) maxima
of certain directional regression Tau-quantile
characteristics over all remaining vertex
directions. |
CharMinMat |
the matrix with the (slightly rounded) minima
of certain directional regression Tau-quantile
characteristics over all remaining vertex
directions. |
Note that ||
symbolizes the Euclidean norm,
and that the vertices (UVec
) in the rows of
CharMaxMat
and CharMinMat
are generally
different and denote (one of) the direction(s) where
the row maximum or minimum is attained.
##Run print(getCharSTM2u) to examine the default setting.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.