Learn R Programming

abcrf (version 1.2)

err.abcrf: Calculate and plot, for different number of trees, the out-of-bag errors associated with an ABC-RF object

Description

err.abcrf returns some out-of-bag errors and plot them.

Usage

err.abcrf(x)

Arguments

x
an abcrf object.

Value

  • a matrix with 2 colunms: the number of trees and the out-of-bag errors

References

Pudlo, P., Marin, J.-M., Estoup, A., Cornuet, J.-M., Gautier, M. & Robert, C. P. (2015). Reliable ABC model choice via random forests. Bioinformatics. http://bioinformatics.oxfordjournals.org/content/early/2015/12/23/bioinformatics.btv684

See Also

abcrf, predict.abcrf, plot.abcrf

Examples

Run this code
data(snp)
modindex <- snp[1:500, 1]
sumsta <- snp[1:500, -1]
model.rf <- abcrf(modindex, sumsta, ntree=100)
err.rf <- err.abcrf(model.rf)

Run the code above in your browser using DataLab