fit_nvariant: Given target data, fit the Number of Variants function

View source: R/fit_nvariant.R

fit_nvariantR Documentation

Given target data, fit the Number of Variants function

Description

This function takes Number of Variants target data and estimates parameters for the Number of Variants function. A dataframe specifying the number of variants per Kb at various sample sizes is required to fit the data

Usage

fit_nvariant(Observed_variants_per_kb)

Arguments

Observed_variants_per_kb

A data frame with the first column sample size and the second variants per Kb, both numeric

Value

Vector of parameters - phi and omega

Examples

data("nvariant_afr")
fit_nvariant(nvariant_afr)


meganmichelle/RAREsim documentation built on June 11, 2022, 7:34 p.m.