View source: R/diagnosability.R
diagnosability | R Documentation |
Conduct Random Forest on a gtypes object to compute the diagnosability of each stratum (PD from Archer et al 2017).
diagnosability(
g,
gene = 1,
pairwise = FALSE,
conf.level = 0.95,
replace = FALSE,
sampsize = NULL,
train.pct = 0.5,
min.n = 2,
min.votes.pct = c(0.8, 0.9, 0.95),
rp.nrep = 0,
unk = NULL
)
g |
haploid |
gene |
number or name of gene to use from multidna |
pairwise |
do analysis on all pairwise combinations of strata? |
conf.level |
confidence level for the |
replace |
sample with replacement in Random Forest trees?
(see |
sampsize |
sample size for each Random Forest tree?
(see |
train.pct |
if |
min.n |
minimum sample size across all strata. |
min.votes.pct |
numeric vector giving the minimum percent of votes for the assigned strata for a sample to be considered correctly assigned. |
rp.nrep |
number of replicates for |
unk |
vector of strata to be treated as "unknowns" for prediction with Random Forest model. |
a list containing a data.frame of summary statistics (smry
),
and the randomForest
object (rf
). If pairwise
is TRUE
then the rf
element is a list of
randomForest
results for each row in smry
.
Eric Archer eric.archer@noaa.gov
## Not run:
library(strataG)
data(dloop.g)
pd <- diagnosability(dloop.g, pairwise = TRUE)
lapply(pd, function(x) x$rf.confusion.mat)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.