library ( "crch" )
# generate data
suppressWarnings ( RNGversion ( "3.5.0" ) )
set.seed ( 5 )
x <- matrix ( rnorm ( 1000 * 20 ) ,1000 ,20 )
y <- rnorm ( 1000 , 1 + x [ ,1 ] - 1.5 * x [ ,2 ] , exp ( - 1 + 0.3 * x [ ,3 ] ) )
y <- pmax ( 0 , y )
data <- data.frame ( cbind ( y , x ) )
# fit model with maximum likelihood
CRCH1 <- crch ( y ~ . | . , data = data , dist = "gaussian" , left = 0 )
# Perform stability selection
stabsel <- crch.stabsel ( y ~ . | . , data = data , dist = "gaussian" , left = 0 ,
q = 8 , B = 5 )
Iteration 1/2000 parameters added 1/42
Iteration 2/2000 parameters added 1/42
Iteration 3/2000 parameters added 1/42
Iteration 4/2000 parameters added 1/42
Iteration 5/2000 parameters added 1/42
Iteration 6/2000 parameters added 2/42
Iteration 7/2000 parameters added 2/42
Iteration 8/2000 parameters added 2/42
Iteration 9/2000 parameters added 2/42
Iteration 10/2000 parameters added 2/42
Iteration 11/2000 parameters added 2/42
Iteration 12/2000 parameters added 2/42
Iteration 13/2000 parameters added 2/42
Iteration 14/2000 parameters added 2/42
Iteration 15/2000 parameters added 2/42
Iteration 16/2000 parameters added 2/42
Iteration 17/2000 parameters added 2/42
Iteration 18/2000 parameters added 2/42
Iteration 19/2000 parameters added 2/42
Iteration 20/2000 parameters added 2/42
Iteration 21/2000 parameters added 2/42
Iteration 22/2000 parameters added 2/42
Iteration 23/2000 parameters added 2/42
Iteration 24/2000 parameters added 2/42
Iteration 25/2000 parameters added 2/42
Iteration 26/2000 parameters added 2/42
Iteration 27/2000 parameters added 2/42
Iteration 28/2000 parameters added 2/42
Iteration 29/2000 parameters added 2/42
Iteration 30/2000 parameters added 2/42
Iteration 31/2000 parameters added 2/42
Iteration 32/2000 parameters added 2/42
Iteration 33/2000 parameters added 2/42
Iteration 34/2000 parameters added 2/42
Iteration 35/2000 parameters added 2/42
Iteration 36/2000 parameters added 2/42
Iteration 37/2000 parameters added 2/42
Iteration 38/2000 parameters added 2/42
Iteration 39/2000 parameters added 2/42
Iteration 40/2000 parameters added 2/42
Iteration 41/2000 parameters added 2/42
Iteration 42/2000 parameters added 2/42
Iteration 43/2000 parameters added 2/42
Iteration 44/2000 parameters added 2/42
Iteration 45/2000 parameters added 2/42
Iteration 46/2000 parameters added 2/42
Iteration 47/2000 parameters added 2/42
Iteration 48/2000 parameters added 2/42
Iteration 49/2000 parameters added 2/42
Iteration 50/2000 parameters added 2/42
Iteration 51/2000 parameters added 2/42
Iteration 52/2000 parameters added 3/42
Iteration 53/2000 parameters added 3/42
Iteration 54/2000 parameters added 3/42
Iteration 55/2000 parameters added 3/42
Iteration 56/2000 parameters added 3/42
Iteration 57/2000 parameters added 3/42
Iteration 58/2000 parameters added 3/42
Iteration 59/2000 parameters added 4/42
Iteration 60/2000 parameters added 4/42
Iteration 61/2000 parameters added 4/42
Iteration 62/2000 parameters added 4/42
Iteration 63/2000 parameters added 4/42
Iteration 64/2000 parameters added 4/42
Iteration 65/2000 parameters added 4/42
Iteration 66/2000 parameters added 4/42
Iteration 67/2000 parameters added 4/42
Iteration 68/2000 parameters added 4/42
Iteration 69/2000 parameters added 4/42
Iteration 70/2000 parameters added 4/42
Iteration 71/2000 parameters added 5/42
Iteration 72/2000 parameters added 5/42
Iteration 73/2000 parameters added 5/42
Iteration 74/2000 parameters added 5/42
Iteration 75/2000 parameters added 5/42
Iteration 76/2000 parameters added 5/42
Iteration 77/2000 parameters added 6/42
Iteration 78/2000 parameters added 6/42
Iteration 79/2000 parameters added 6/42
Iteration 80/2000 parameters added 6/42
Iteration 81/2000 parameters added 7/42
Iteration 82/2000 parameters added 7/42
Iteration 83/2000 parameters added 7/42
Iteration 84/2000 parameters added 8/42
Iteration 1/2000 parameters added 1/42
Iteration 2/2000 parameters added 1/42
Iteration 3/2000 parameters added 1/42
Iteration 4/2000 parameters added 1/42
Iteration 5/2000 parameters added 2/42
Iteration 6/2000 parameters added 2/42
Iteration 7/2000 parameters added 2/42
Iteration 8/2000 parameters added 2/42
Iteration 9/2000 parameters added 2/42
Iteration 10/2000 parameters added 2/42
Iteration 11/2000 parameters added 2/42
Iteration 12/2000 parameters added 2/42
Iteration 13/2000 parameters added 2/42
Iteration 14/2000 parameters added 2/42
Iteration 15/2000 parameters added 2/42
Iteration 16/2000 parameters added 2/42
Iteration 17/2000 parameters added 2/42
Iteration 18/2000 parameters added 2/42
Iteration 19/2000 parameters added 2/42
Iteration 20/2000 parameters added 2/42
Iteration 21/2000 parameters added 2/42
Iteration 22/2000 parameters added 2/42
Iteration 23/2000 parameters added 2/42
Iteration 24/2000 parameters added 2/42
Iteration 25/2000 parameters added 2/42
Iteration 26/2000 parameters added 2/42
Iteration 27/2000 parameters added 2/42
Iteration 28/2000 parameters added 2/42
Iteration 29/2000 parameters added 2/42
Iteration 30/2000 parameters added 2/42
Iteration 31/2000 parameters added 2/42
Iteration 32/2000 parameters added 2/42
Iteration 33/2000 parameters added 2/42
Iteration 34/2000 parameters added 2/42
Iteration 35/2000 parameters added 2/42
Iteration 36/2000 parameters added 2/42
Iteration 37/2000 parameters added 2/42
Iteration 38/2000 parameters added 2/42
Iteration 39/2000 parameters added 2/42
Iteration 40/2000 parameters added 2/42
Iteration 41/2000 parameters added 2/42
Iteration 42/2000 parameters added 2/42
Iteration 43/2000 parameters added 2/42
Iteration 44/2000 parameters added 2/42
Iteration 45/2000 parameters added 2/42
Iteration 46/2000 parameters added 2/42
Iteration 47/2000 parameters added 2/42
Iteration 48/2000 parameters added 2/42
Iteration 49/2000 parameters added 2/42
Iteration 50/2000 parameters added 2/42
Iteration 51/2000 parameters added 2/42
Iteration 52/2000 parameters added 2/42
Iteration 53/2000 parameters added 2/42
Iteration 54/2000 parameters added 2/42
Iteration 55/2000 parameters added 3/42
Iteration 56/2000 parameters added 3/42
Iteration 57/2000 parameters added 3/42
Iteration 58/2000 parameters added 3/42
Iteration 59/2000 parameters added 3/42
Iteration 60/2000 parameters added 3/42
Iteration 61/2000 parameters added 3/42
Iteration 62/2000 parameters added 3/42
Iteration 63/2000 parameters added 3/42
Iteration 64/2000 parameters added 3/42
Iteration 65/2000 parameters added 3/42
Iteration 66/2000 parameters added 3/42
Iteration 67/2000 parameters added 4/42
Iteration 68/2000 parameters added 4/42
Iteration 69/2000 parameters added 4/42
Iteration 70/2000 parameters added 5/42
Iteration 71/2000 parameters added 5/42
Iteration 72/2000 parameters added 5/42
Iteration 73/2000 parameters added 5/42
Iteration 74/2000 parameters added 5/42
Iteration 75/2000 parameters added 5/42
Iteration 76/2000 parameters added 5/42
Iteration 77/2000 parameters added 5/42
Iteration 78/2000 parameters added 5/42
Iteration 79/2000 parameters added 6/42
Iteration 80/2000 parameters added 6/42
Iteration 81/2000 parameters added 6/42
Iteration 82/2000 parameters added 7/42
Iteration 83/2000 parameters added 7/42
Iteration 84/2000 parameters added 7/42
Iteration 85/2000 parameters added 8/42
Iteration 1/2000 parameters added 1/42
Iteration 2/2000 parameters added 1/42
Iteration 3/2000 parameters added 1/42
Iteration 4/2000 parameters added 1/42
Iteration 5/2000 parameters added 1/42
Iteration 6/2000 parameters added 2/42
Iteration 7/2000 parameters added 2/42
Iteration 8/2000 parameters added 2/42
Iteration 9/2000 parameters added 2/42
Iteration 10/2000 parameters added 2/42
Iteration 11/2000 parameters added 2/42
Iteration 12/2000 parameters added 2/42
Iteration 13/2000 parameters added 2/42
Iteration 14/2000 parameters added 2/42
Iteration 15/2000 parameters added 2/42
Iteration 16/2000 parameters added 2/42
Iteration 17/2000 parameters added 2/42
Iteration 18/2000 parameters added 2/42
Iteration 19/2000 parameters added 2/42
Iteration 20/2000 parameters added 2/42
Iteration 21/2000 parameters added 2/42
Iteration 22/2000 parameters added 2/42
Iteration 23/2000 parameters added 2/42
Iteration 24/2000 parameters added 2/42
Iteration 25/2000 parameters added 2/42
Iteration 26/2000 parameters added 2/42
Iteration 27/2000 parameters added 2/42
Iteration 28/2000 parameters added 2/42
Iteration 29/2000 parameters added 2/42
Iteration 30/2000 parameters added 2/42
Iteration 31/2000 parameters added 2/42
Iteration 32/2000 parameters added 2/42
Iteration 33/2000 parameters added 2/42
Iteration 34/2000 parameters added 2/42
Iteration 35/2000 parameters added 2/42
Iteration 36/2000 parameters added 2/42
Iteration 37/2000 parameters added 2/42
Iteration 38/2000 parameters added 2/42
Iteration 39/2000 parameters added 2/42
Iteration 40/2000 parameters added 2/42
Iteration 41/2000 parameters added 2/42
Iteration 42/2000 parameters added 2/42
Iteration 43/2000 parameters added 2/42
Iteration 44/2000 parameters added 2/42
Iteration 45/2000 parameters added 2/42
Iteration 46/2000 parameters added 2/42
Iteration 47/2000 parameters added 2/42
Iteration 48/2000 parameters added 2/42
Iteration 49/2000 parameters added 2/42
Iteration 50/2000 parameters added 2/42
Iteration 51/2000 parameters added 2/42
Iteration 52/2000 parameters added 2/42
Iteration 53/2000 parameters added 2/42
Iteration 54/2000 parameters added 3/42
Iteration 55/2000 parameters added 3/42
Iteration 56/2000 parameters added 3/42
Iteration 57/2000 parameters added 3/42
Iteration 58/2000 parameters added 3/42
Iteration 59/2000 parameters added 3/42
Iteration 60/2000 parameters added 3/42
Iteration 61/2000 parameters added 3/42
Iteration 62/2000 parameters added 3/42
Iteration 63/2000 parameters added 4/42
Iteration 64/2000 parameters added 4/42
Iteration 65/2000 parameters added 4/42
Iteration 66/2000 parameters added 4/42
Iteration 67/2000 parameters added 4/42
Iteration 68/2000 parameters added 4/42
Iteration 69/2000 parameters added 4/42
Iteration 70/2000 parameters added 4/42
Iteration 71/2000 parameters added 4/42
Iteration 72/2000 parameters added 4/42
Iteration 73/2000 parameters added 4/42
Iteration 74/2000 parameters added 4/42
Iteration 75/2000 parameters added 4/42
Iteration 76/2000 parameters added 4/42
Iteration 77/2000 parameters added 4/42
Iteration 78/2000 parameters added 4/42
Iteration 79/2000 parameters added 5/42
Iteration 80/2000 parameters added 6/42
Iteration 81/2000 parameters added 6/42
Iteration 82/2000 parameters added 6/42
Iteration 83/2000 parameters added 6/42
Iteration 84/2000 parameters added 6/42
Iteration 85/2000 parameters added 6/42
Iteration 86/2000 parameters added 7/42
Iteration 87/2000 parameters added 7/42
Iteration 88/2000 parameters added 7/42
Iteration 89/2000 parameters added 7/42
Iteration 90/2000 parameters added 7/42
Iteration 91/2000 parameters added 7/42
Iteration 92/2000 parameters added 7/42
Iteration 93/2000 parameters added 8/42
Iteration 1/2000 parameters added 1/42
Iteration 2/2000 parameters added 1/42
Iteration 3/2000 parameters added 1/42
Iteration 4/2000 parameters added 1/42
Iteration 5/2000 parameters added 1/42
Iteration 6/2000 parameters added 2/42
Iteration 7/2000 parameters added 2/42
Iteration 8/2000 parameters added 2/42
Iteration 9/2000 parameters added 2/42
Iteration 10/2000 parameters added 2/42
Iteration 11/2000 parameters added 2/42
Iteration 12/2000 parameters added 2/42
Iteration 13/2000 parameters added 2/42
Iteration 14/2000 parameters added 2/42
Iteration 15/2000 parameters added 2/42
Iteration 16/2000 parameters added 2/42
Iteration 17/2000 parameters added 2/42
Iteration 18/2000 parameters added 2/42
Iteration 19/2000 parameters added 2/42
Iteration 20/2000 parameters added 2/42
Iteration 21/2000 parameters added 2/42
Iteration 22/2000 parameters added 2/42
Iteration 23/2000 parameters added 2/42
Iteration 24/2000 parameters added 2/42
Iteration 25/2000 parameters added 2/42
Iteration 26/2000 parameters added 2/42
Iteration 27/2000 parameters added 2/42
Iteration 28/2000 parameters added 2/42
Iteration 29/2000 parameters added 2/42
Iteration 30/2000 parameters added 2/42
Iteration 31/2000 parameters added 2/42
Iteration 32/2000 parameters added 2/42
Iteration 33/2000 parameters added 2/42
Iteration 34/2000 parameters added 2/42
Iteration 35/2000 parameters added 2/42
Iteration 36/2000 parameters added 2/42
Iteration 37/2000 parameters added 2/42
Iteration 38/2000 parameters added 2/42
Iteration 39/2000 parameters added 2/42
Iteration 40/2000 parameters added 2/42
Iteration 41/2000 parameters added 2/42
Iteration 42/2000 parameters added 2/42
Iteration 43/2000 parameters added 2/42
Iteration 44/2000 parameters added 2/42
Iteration 45/2000 parameters added 2/42
Iteration 46/2000 parameters added 2/42
Iteration 47/2000 parameters added 2/42
Iteration 48/2000 parameters added 2/42
Iteration 49/2000 parameters added 2/42
Iteration 50/2000 parameters added 2/42
Iteration 51/2000 parameters added 2/42
Iteration 52/2000 parameters added 2/42
Iteration 53/2000 parameters added 2/42
Iteration 54/2000 parameters added 2/42
Iteration 55/2000 parameters added 2/42
Iteration 56/2000 parameters added 3/42
Iteration 57/2000 parameters added 3/42
Iteration 58/2000 parameters added 3/42
Iteration 59/2000 parameters added 3/42
Iteration 60/2000 parameters added 3/42
Iteration 61/2000 parameters added 3/42
Iteration 62/2000 parameters added 3/42
Iteration 63/2000 parameters added 3/42
Iteration 64/2000 parameters added 4/42
Iteration 65/2000 parameters added 4/42
Iteration 66/2000 parameters added 4/42
Iteration 67/2000 parameters added 4/42
Iteration 68/2000 parameters added 4/42
Iteration 69/2000 parameters added 4/42
Iteration 70/2000 parameters added 4/42
Iteration 71/2000 parameters added 5/42
Iteration 72/2000 parameters added 5/42
Iteration 73/2000 parameters added 5/42
Iteration 74/2000 parameters added 5/42
Iteration 75/2000 parameters added 5/42
Iteration 76/2000 parameters added 6/42
Iteration 77/2000 parameters added 7/42
Iteration 78/2000 parameters added 7/42
Iteration 79/2000 parameters added 8/42
Iteration 1/2000 parameters added 1/42
Iteration 2/2000 parameters added 1/42
Iteration 3/2000 parameters added 1/42
Iteration 4/2000 parameters added 1/42
Iteration 5/2000 parameters added 2/42
Iteration 6/2000 parameters added 2/42
Iteration 7/2000 parameters added 2/42
Iteration 8/2000 parameters added 2/42
Iteration 9/2000 parameters added 2/42
Iteration 10/2000 parameters added 2/42
Iteration 11/2000 parameters added 2/42
Iteration 12/2000 parameters added 2/42
Iteration 13/2000 parameters added 2/42
Iteration 14/2000 parameters added 2/42
Iteration 15/2000 parameters added 2/42
Iteration 16/2000 parameters added 2/42
Iteration 17/2000 parameters added 2/42
Iteration 18/2000 parameters added 2/42
Iteration 19/2000 parameters added 2/42
Iteration 20/2000 parameters added 2/42
Iteration 21/2000 parameters added 2/42
Iteration 22/2000 parameters added 2/42
Iteration 23/2000 parameters added 2/42
Iteration 24/2000 parameters added 2/42
Iteration 25/2000 parameters added 2/42
Iteration 26/2000 parameters added 2/42
Iteration 27/2000 parameters added 2/42
Iteration 28/2000 parameters added 2/42
Iteration 29/2000 parameters added 2/42
Iteration 30/2000 parameters added 2/42
Iteration 31/2000 parameters added 2/42
Iteration 32/2000 parameters added 2/42
Iteration 33/2000 parameters added 2/42
Iteration 34/2000 parameters added 2/42
Iteration 35/2000 parameters added 2/42
Iteration 36/2000 parameters added 2/42
Iteration 37/2000 parameters added 2/42
Iteration 38/2000 parameters added 2/42
Iteration 39/2000 parameters added 2/42
Iteration 40/2000 parameters added 2/42
Iteration 41/2000 parameters added 2/42
Iteration 42/2000 parameters added 2/42
Iteration 43/2000 parameters added 2/42
Iteration 44/2000 parameters added 2/42
Iteration 45/2000 parameters added 2/42
Iteration 46/2000 parameters added 2/42
Iteration 47/2000 parameters added 2/42
Iteration 48/2000 parameters added 2/42
Iteration 49/2000 parameters added 2/42
Iteration 50/2000 parameters added 2/42
Iteration 51/2000 parameters added 2/42
Iteration 52/2000 parameters added 2/42
Iteration 53/2000 parameters added 2/42
Iteration 54/2000 parameters added 2/42
Iteration 55/2000 parameters added 3/42
Iteration 56/2000 parameters added 3/42
Iteration 57/2000 parameters added 3/42
Iteration 58/2000 parameters added 3/42
Iteration 59/2000 parameters added 3/42
Iteration 60/2000 parameters added 3/42
Iteration 61/2000 parameters added 3/42
Iteration 62/2000 parameters added 3/42
Iteration 63/2000 parameters added 3/42
Iteration 64/2000 parameters added 3/42
Iteration 65/2000 parameters added 3/42
Iteration 66/2000 parameters added 4/42
Iteration 67/2000 parameters added 4/42
Iteration 68/2000 parameters added 4/42
Iteration 69/2000 parameters added 4/42
Iteration 70/2000 parameters added 5/42
Iteration 71/2000 parameters added 5/42
Iteration 72/2000 parameters added 5/42
Iteration 73/2000 parameters added 5/42
Iteration 74/2000 parameters added 6/42
Iteration 75/2000 parameters added 6/42
Iteration 76/2000 parameters added 6/42
Iteration 77/2000 parameters added 6/42
Iteration 78/2000 parameters added 6/42
Iteration 79/2000 parameters added 6/42
Iteration 80/2000 parameters added 6/42
Iteration 81/2000 parameters added 6/42
Iteration 82/2000 parameters added 6/42
Iteration 83/2000 parameters added 6/42
Iteration 84/2000 parameters added 6/42
Iteration 85/2000 parameters added 6/42
Iteration 86/2000 parameters added 6/42
Iteration 87/2000 parameters added 6/42
Iteration 88/2000 parameters added 6/42
Iteration 89/2000 parameters added 7/42
Iteration 90/2000 parameters added 7/42
Iteration 91/2000 parameters added 7/42
Iteration 92/2000 parameters added 8/42
# Show stability selection summary
print ( stabsel ) ; plot ( stabsel )
crch Stability Selection Info
Family information
Distribution: gaussian
Truncated: FALSE
Left-censoring: 0
Right-censoring: Inf
Selection parameters
Number of parameters (q): 8
Number of iterations (B): 5
Selection threshold (thr): 0.90
Total number of parameter (p): 40
Per family error rate
Given p/q/thr the expected value of falsely
chosen parameters is: 2.00
Selected formula:
y ~ V2 + V3 | V4
<environment: 0x55cd7697fd90>
CRCH2 <- crch ( stabsel $ formula.new , data = data , dist = "gaussian" , left = 0 )
BOOST <- crch ( stabsel $ formula.new , data = data , dist = "gaussian" , left = 0 ,
control = crch.boost ( ) )
### AIC comparison
sapply ( list ( CRCH1 ,CRCH2 ,BOOST ) , logLik )
[1] -367.6337 -384.2485 -385.0090