gtypesRF: gtype Random Forest

Description Usage Arguments Value Author(s) Examples

View source: R/gtypesRF.R

Description

Conduct Random Forest on a gtypes object.

Usage

1
gtypesRF(g, gene = 1, pairwise = FALSE, conf.level = 0.95, unk = NULL, ...)

Arguments

g

haploid gtypes object with aligned sequences.

gene

number or name of gene to use from multidna @sequences slot.

pairwise

do analysis on all pairwise combinations of strata?

conf.level

confidence level for the binom.test confidence interval

unk

vector of strata to be treated as "unknowns" for prediction with

...

arguments passed to sequenceRF and randomForest.

Value

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.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

1
2
3
4
5
6
library(strataG)
data(dloop.g)

rf.result <- gtypesRF(dloop.g, pairwise = TRUE)

rf.result

EricArcher/geneticRF documentation built on Nov. 15, 2021, 7:22 p.m.