Description Usage Arguments Value See Also Examples

View source: R/carrot_functions.R

Function which runs a linear regression on a training set, computes predictions for the test set

1 | ```
get_predictions_lin(trset,testset,outc,k)
``` |

`trset` |
values of predictors on the training set |

`testset` |
values of predictors on the test set |

`outc` |
values of predictors on the training set |

`k` |
length of the test set |

An array of continous variables of the length equal to the size of a `testset`

Function uses function `lsfit`

and `coef`

1 2 3 4 5 |

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.