xlin_fits_R | R Documentation |

Calculate out of sample linear fit predictions.

```
xlin_fits_R(x, y, w)
```

`x` |
NumericVector, x-coords of values to group (length>=2). |

`y` |
NumericVector, values to group in order. |

`w` |
NumericVector, weights (positive). |

vector of predictions.

```
xlin_fits_R(c(1, 2, 3, 4), c(1, 2, 2, 1), c(1, 1, 1, 1))
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.