Description Usage Arguments Value

View source: R/sid_main_algorithm.R

Prune all trees in the treelist.

1 2 | ```
sid_prune_treelist(treelist, data_train, data_test, classifier = svm, R = R,
Rmin = 250, Rmax = 500, z = 2.57, alpha = 0.05, parallel = TRUE)
``` |

`treelist` |
List of trees. |

`data_train` |
Training data. |

`data_test` |
Testing data. |

`classifier` |
A classifier function, default is svm (from the e1071 package). |

`R` |
Number of replications. Default is 100.. |

`Rmin` |
Ninimum number of replications for calculating p-values. Default is 250. |

`Rmax` |
Maximum number of replications for calculating p-values. Default is 500. |

`z` |
Parameter for confidence band. Use 1.96 for 95 percent, 2.25 for 97.5 percent and 2.57 for 99 percent. Default is 2.57. |

`alpha` |
Significance level (default is 0.05). |

`parallel` |
Calculate in parallel (Boolean, default is |

Pruned treelist

bwrc/astrid-r documentation built on June 24, 2017, 8:05 p.m.

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.