calc_scaledObj | R Documentation |
Helper function to calculate new scaled loss function using weighted AF bin objectives
calc_scaledObj(data, reference, observed, pi.start)
data |
a dataframe of the observed and reference allele frequencies for N genetic variants. See data formatting document at https://github.com/hendriau/Summix for more information. Uses the same input data as summix. |
reference |
a character vector of the column names for the reference groups. |
observed |
a string that is the column name for the observed group. |
pi.start |
Length K numeric vector of the starting guess for the reference group proportions. If not specified, this defaults to 1/K where K is the number of reference groups. |
numeric value that is the scaled objective per 1000 SNPs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.