calc_scaledObj: calc_scaledObj

View source: R/summix.R

calc_scaledObjR Documentation

calc_scaledObj

Description

Helper function to calculate new scaled loss function using weighted AF bin objectives

Usage

calc_scaledObj(data, reference, observed, pi.start)

Arguments

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.

Value

numeric value that is the scaled objective per 1000 SNPs


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