assign.matrix: Make an assignment maxtrix from cross-validation results

Description Usage Arguments Value

View source: R/assign.matrix.R

Description

This function generates a pairwise assignment matrix with mean and variation of assignment accuracies estimated across all assignment tests.

Usage

1
2
3
4
5
6
assign.matrix(
  dir = NULL,
  train.loci = "all",
  train.inds = "all",
  k.fold = "all"
)

Arguments

dir

A character string to specify the folder that has your cross-validation assignment results.

train.loci

Choose your proportions of training loci used in Monte-Carlo or K-fold cross-validation. Default is "all".

train.inds

Choose your numbers or proportions of training individuals used in Monte-Carlo cross-validation. Default is "all".

k.fold

Choose the k fold values used in K-fold cross-validation. Default is "all".

Value

The function returns a matrix in R console as well as a file named "assignment_matrix.txt" in the folder.


assignPOP documentation built on Oct. 28, 2021, 1:06 a.m.