csh.x.validation: csh.x.validation

Description Usage Arguments Value

View source: R/xval.R

Description

csh.x.validation

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
csh.x.validation(
  freqs = NULL,
  data.partitions = NULL,
  geoDist,
  coords,
  prefix,
  K,
  n.reps = 8,
  n.iter = 10000,
  train.prop = 0.9,
  make.figs = FALSE,
  save.files = FALSE,
  ...
)

Arguments

freqs

Per-locality allele frequencies, see conStruct::conStruct()

data.partitions

Pre-computed data partitions, see conStruct::x.validation()

geoDist

Geographic distance matrix, see conStruct::conStruct()

prefix

File prefix for any output files, see conStruct::x.validation()

K

Vector of layers/ancestral pops. (e.g. 1:6)

n.reps

Number of replicate runs/mcmc chains

n.iter

Number of MCMC interations

train.prop

Proportion of SNPs to use for training vs test. typically 0.8-0.9

make.figs

Save plots to disk

save.files

Save intermediates to disk

coods

X/Y or Long/Lat coordiate matrix, see conStruct::conStruct()

Value

tibble with one row per MCMC run (so length(K) * n.reps * 2)


kdm9/constructhelpers documentation built on Feb. 14, 2021, 12:27 a.m.