Description Usage Arguments Value See Also Examples

View source: R/carrot_functions.R

Function which identifies regressions with the highest predictive power

1 | ```
get_indices(predsp,nvar,c,we,st,minx)
``` |

`predsp` |
An M x N matrix of averaged out predictive power values. M is maximum feasible number of variables included in a regression, N is the maximum feasible number of regressions of the fixed size; the row index indicates the number of variables included in a regression. |

`nvar` |
array of maximal number of variables for each cross-validation |

`c` |
array of all indices of the prediction variables |

`we` |
array of all weights of the prediction variables |

`st` |
a subset of predictors to be always included into a predictive model |

`minx` |
minimum number of predictors, defaults to 1 |

A list of arrays which contain indices of the predictors corresponfing to the best regressions

Uses `sum_weights_sub`

, `find_sub`

, `combn`

1 2 3 4 5 6 7 8 9 10 11 |

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.