estimate_pa: Estimate the effective proportion of adaptive loci

View source: R/estimate_pa.R

estimate_paR Documentation

Estimate the effective proportion of adaptive loci

Description

estimate_pa Estimates the effective proportion of adaptive loci (P_a) using likelihood-based tests. Setting na.rm = T assumes that missing values are true negatives.

Usage

estimate_pa(input, ndigits = 4, show.plot = F, na.rm = F)

Arguments

input

numeric array

ndigits

numeric

show.plot

boolean

Value

length-one numeric

Examples

array1 <- array (0,c(5000,20))
array1[cbind(1:20,1:20)] <- 1
array1[1:5,1:3] <- 1
array1[6:10,4:6] <- 1
estimate_pa(array1)


samyeaman/dgconstraint documentation built on July 25, 2022, 4:36 a.m.