calc_effective_N: calc_effective_N

calc_effective_NR Documentation

calc_effective_N

Description

Helper function to calculate effective sample size for the group that is left out when estimating the adjusted allele frequencies in each adjAF function iteration.

Usage

calc_effective_N(N_reference, N_observed, pi.target, pi.observed)

Arguments

N_reference

numeric vector of the sample sizes of each K reference groups.

N_observed

numeric value of the sample size of the observed group.

pi.target

numeric vector of the mixture proportions for K reference groups in the target sample or subject. The order must match the order of the reference columns with the last entry matching the missing reference group.

pi.observed

numeric vector of the mixture proportions for K reference groups for the observed group. The order must match the order of the reference columns with the last entry matching the missing reference group.

Value

N_effective: effective sample size for the group that is left out when estimating the adjusted allele frequencies in each adjAF function iteration.


hendriau/Summix documentation built on Nov. 13, 2024, 6:53 a.m.