The capushe
function proposes two algorithms based on the slope heuristics
to calibrate penalties in the context of model selection via penalization.
capushe(data,n=0,pct=0.15,point=0,psi.rlm=psi.bisquare,scoef=2,
Careajump=0,Ctresh=0)
A list returned by the DDSE
function.
The model
selected by the DDSE
function.
The vector of the successive slope values.
A list providing details about the model selected by the DDSE
function.
A list about the "slope interval" corresponding to the
plateau selected in DDSE
. See DDSE
for more details.
A list computed for the plot
function.
A list returned by the Djump
function.
The model
selected by the Djump
function.
A list providing details about the model selected by the Djump
function.
A list computed for the plot
function.
A list returned by the AICcapushe
function.
A list returned by the BICcapushe
function.
Sample size.
data
is a matrix or a data.frame with four columns of the same length
and each line corresponds to a model:
The first column contains the model names.
The second column contains the penalty shape values.
The third column contains the model complexity values.
The fourth column contains the minimum contrast value for each model.
n
is the sample size.
Minimum percentage of points for the plateau selection.
See DDSE
for more details.
Minimum number of point for the plateau selection (See DDSE
for more details).
If point
is different from 0, pct
is obsolete.
Weight function used by rlm
.
See DDSE
for more details. psi.rlm
="lm" for non robust
linear regression.
Ratio parameter. Default value is 2.
Constant of jump area (See Djump
for more details). Default value is 0 (no area).
Maximal treshold for the complexity associated to the penalty coefficient (See Djump
for more details).
Default value is 0 (Maximal jump selected as the greater jump).
Vincent Brault
The model \(\hat{m}\) selected by the procedure fulfills
\(\hat{m}=\) argmin \(\gamma_n (\hat{s}_m)+scoef\times \kappa\times pen_{shape}(m)\)
where
\(\kappa\) is the penalty coefficient.
\(\gamma_n\) is the empirical contrast.
\(\hat{s}_m\) is the estimator for the model \(m\).
\(scoef\) is the ratio parameter.
\(pen_{shape}\) is the penalty shape.
The capushe function calls the functions DDSE
and
Djump
to calibrate \(\kappa\), see the description of these functions
for more details.
In the case of equality between two penalty shape values, only the model with the
smallest contrast is considered.
http://www.math.univ-toulouse.fr/~maugis/CAPUSHE.html
http://www.math.u-psud.fr/~brault/capushe.html
Article: Baudry, J.-P., Maugis, C. and Michel, B. (2011) Slope heuristics: overview and implementation. Statistics and Computing, to appear. doi: 10.1007/ s11222-011-9236-1
Djump
, DDSE
, AIC
or BIC
to use only one of these model selection functions.
plot
for graphical displays of DDSE
and Djump.
data(datacapushe)
capushe(datacapushe)
capushe(datacapushe,1000)
Run the code above in your browser using DataLab