get_eta {glmnet} | R Documentation |

## Helper function to get etas (linear predictions)

### Description

Given x, coefficients and intercept, return linear predictions. Wrapper that works with both regular and sparse x. Only works for single set of coefficients and intercept.

### Usage

```
get_eta(x, beta, a0)
```

### Arguments

`x` |
Input matrix, of dimension |

`beta` |
Feature coefficients. |

`a0` |
Intercept. |

[Package

*glmnet*version 4.1-8 Index]