# Model predictions based on "hqreg" object.

### Description

This function returns fitted values, coefficients and more from a fitted `"hqreg"`

object.

### Usage

1 2 3 4 5 |

### Arguments

`object` |
Fitted |

`X` |
Matrix of values at which predictions are to be made. Used only for |

`lambda` |
Values of the regularization parameter |

`type` |
Type of prediction. |

`exact` |
If |

`...` |
Not used. Other arguments to predict. |

### Value

The object returned depends on type.

### Author(s)

Congrui Yi <congrui-yi@uiowa.edu>

### See Also

`hqreg`

### Examples

1 2 3 4 5 6 7 8 9 | ```
X = matrix(rnorm(1000*100), 1000, 100)
beta = rnorm(10)
eps = 4*rnorm(1000)
y = drop(X[,1:10] %*% beta + eps)
fit = hqreg(X, y, method = "quantile", tau = 0.7)
predict(fit, X[1:5,], lambda = c(0.05, 0.01))
predict(fit, X[1:5,], lambda = 0.05, exact = TRUE)
predict(fit, X[1:5,], lambda = 0.05, type = "nvars")
coef(fit, lambda = 0.05)
``` |