# Determine the first q Predictors in the Lasso Path

### Description

Determines the q predictors that enter the lasso path first.

### Usage

1 | ```
lasso.firstq(x, y, q, ...)
``` |

### Arguments

`x` |
numeric design matrix (without intercept) of dimension |

`y` |
response vector of length |

`q` |
number of predictors that should be selected, a positive integer. |

`...` |
optional additional arguments to be passed to |

### Details

The `lasso.firstq`

function calls
`glmnet`

in a special way and simply postprocesses its
nonzero predictor list, see its source code.

### Value

Vector of selected predictors.

### Author(s)

Lukas Meier

### See Also

`hdi`

;
the default choice for `hdi()`

, `lasso.cv`

.
`glmnet`

### Examples

1 2 3 4 |