# Compute coefficients

### Description

Compute coefficients at a given level of penalty

### Usage

1 | ```
computeCoefficients(x, lambda, mode = "fraction")
``` |

### Arguments

`x` |
a LarsParth object |

`lambda` |
If mode ="norm", lambda represents the l1-norm of the coefficients with which we want to predict. If mode="fraction", lambda represents the ratio (l1-norm of the coefficientswith which we want to predict)/(l1-norm maximal of the LarsPath object). |

`mode` |
"fraction" or "norm" or "lambda". |

### Value

A list containing

- variable
Index of non-zeros coefficients.

- coefficient
non-zeros coefficients.

### Author(s)

Quentin Grimonprez

### Examples

1 2 3 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.