single_c_chisq: Calculate C-chisq

single_c_chisqR Documentation

Calculate C-chisq

Description

single_c_chisq returns the C-score for a given pair of lineages, using the chi-square approach. Setting na.rm = T assumes that missing values are true negatives.

Usage

single_c_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_c_chisq (vector1, vector2)


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