plot.regAbcrf: Plot of a reg-ABC-RF object

Description Usage Arguments References See Also Examples

View source: R/plot.regAbcrf.R

Description

plot.regAbcrf provides a variable importance plot used to construct the reg-ABC-RF object, as measured by ranger with the argument importance='impurity'.

Usage

1
2
## S3 method for class 'regAbcrf'
plot(x, n.var=min(30, length(x$model.rf$variable.importance)), xlim=NULL, main=NULL, ...)

Arguments

x

a regAbcrf object.

n.var

number of variables in the variable importance representation. The default value is equal to the minimum between 30 and the number of summary statistics.

xlim

range of the abscissa for the variable importance plot.

main

an overall title for the variable importance plot.

...

not used.

References

Raynal L., Marin J.-M. Pudlo P., Ribatet M., Robert C. P. and Estoup, A. (2019) ABC random forests for Bayesian parameter inference Bioinformatics https://doi.org/10.1093/bioinformatics/bty867

See Also

regAbcrf, predict.regAbcrf, err.regAbcrf, covRegAbcrf, ranger, densityPlot

Examples

1
2
3
4
5
6
7
8
9
data(snp)
modindex <- snp$modindex
sumsta <- snp$sumsta[modindex == "3",]
r <- snp$param$r[modindex == "3"]
r <- r[1:500]
sumsta <- sumsta[1:500,]
data2 <- data.frame(r, sumsta)
model.rf.r <- regAbcrf(r~., data2, ntree=100)
plot(model.rf.r)

Example output



abcrf documentation built on Nov. 5, 2019, 5:06 p.m.

Related to plot.regAbcrf in abcrf...