abcrf
constructs a random forest from a reference table towards performing
an ABC model choice. Basically, the reference table (i.e. the dataset that will
be treated with the present package) includes a column with the index
of the models to be compared and additional columns corresponding
to the values of the simulated summary statistics.## S3 method for class 'factor':
abcrf(modindex, sumsta, lda=TRUE, ntree=500,
sampsize=min(1e5, length(modindex)), paral=FALSE, ...)
## S3 method for class 'formula':
abcrf(formula, data=NULL, ...)
randomForest
used to construct
the classification random forest that preditcs the selected model.abcrf
, which is a list with the
following components:abcrf
,randomForest
containing the trained forest with the reference table,lda
containing the Linear Discriminant Analysis based on the reference table,plot.abcrf
,
predict.abcrf
,
err.abcrf
,
randomForest
data(snp)
modindex <- snp[1:500, 1]
sumsta <- snp[1:500, -1]
model.rf <- abcrf(modindex, sumsta, ntree=100)
model.rf
Run the code above in your browser using DataLab