pime.oob.replicate: Replicated random forests

Description Usage Arguments Examples

Description

This function is part of the error detection step. It performs a random forests classification, with ranger, and computes the OOB error for n replications in each prevalence interval without randomizing the sample labels. Returns a results table with prediction error and a boxplot.

Usage

1
pime.oob.replicate(prev.list, variable, bootstrap, parallel = TRUE)

Arguments

prev.list

List of phyloseq objects. Output of pime.prevalence

variable

Variable to run the model

bootstrap

Number to run repetitions

parallel

Whether to run parallel or not. Default TRUE

Examples

1
2
3
4
5
6
phylist=pime.split.by.variable(restroom, "Environment")
prevalences=pime.prevalence(phylist)
set.seed(42)
tab=pime.oob.replicate(prevalences, "Environment", bootstrap=10, parallel=TRUE)
tab$Plot
tab$'Results table'

microEcology/pime documentation built on Nov. 13, 2019, 11:16 p.m.