# predict.gl1ce

From lasso2 v1.2-0
by Martin Maechler

##### Prediction Method for a `gl1ce' Object

This is a method for the generic function `predict`

for class `"gl1ce"`

, typically produced from
`gl1ce()`

. When `newdata`

is missing, the
fitted values are extracted, otherwise returns *new* predictions.

- Keywords
- models

##### Usage

```
## S3 method for class 'gl1ce':
predict(object, newdata, type=c("link", "response"),
se.fit = FALSE, ...)
```

##### Value

a vector of predictions.

##### Warning

`predict`

can produce incorrect predictions when the `newdata`

argument is used if the formula in `object`

involves
data-dependent transformations, such as `poly(Age, 3)`

or `sqrt(Age - min(Age))`

.

##### Examples

```
## start with
example(gl1ce)
predict(gl1c.E, new = esoph[1:7,])# type 'link'
predict(gl1c.E, new = esoph[1:7,], type = "response")
## identities / consistency checks :
stopifnot(predict(gl1c.E, type = "response") == fitted(gl1c.E),
all.equal(predict(gl1c.E)[1:7],
predict(gl1c.E, new = esoph[1:7,])),
all.equal(fitted(gl1c.E)[1:7],
predict(gl1c.E, new = esoph[1:7,], type = "response"))
)
```

*Documentation reproduced from package lasso2, version 1.2-0, License: GPL version 2 or later*

### Community examples

Looks like there are no examples yet.