single_p_chisq: Calculate p-value for C-chisq

single_p_chisqR Documentation

Calculate p-value for C-chisq

Description

single_p_chisq returns the p-value for a single pair of lineages, contrasted using chi-square. Setting na.rm = T assumes that missing values are true negatives.

Usage

single_p_chisq(input1, input2, num_permute = 10000, na.rm = F)

Arguments

input1

numeric vector

input2

numeric vector

num_permute

numeric

na.rm

boolean

Value

length-one numeric

Examples

vector1 <- rep (0,1000)
vector2 <- rep (0,1000)
vector1[c(1:5,15:20,24,31:35,47:50,75)] <- 1
vector2[c(6:9,12,19:23,28:31,78:80)] <- 1
single_p_chisq (vector1, vector2)


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