optimal_sampling: Estimate optimal sampling allocation

View source: R/optimal_sampling.R

optimal_samplingR Documentation

Estimate optimal sampling allocation

Description

This function returns a graphical representation of optimal sampling allocations given an estimate of the total number of samples you are looking at genotyping and the amount of expected differentiation among strata.

Usage

optimal_sampling(N, phi)

Arguments

N

The total sample size (number of strata * number of individuals pre stratum)

phi

An estimate of the level of differentiation.

Value

A ggplot object with a plot of the variance in phi due to different sample sizes with a region of +/- 10 phi value

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

N <- 400
Phi <- 0.25
optimal_sampling( N, Phi )

dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.