doInternalSimulation: doInternalSimulation

View source: R/summix_local.R

doInternalSimulationR Documentation

doInternalSimulation

Description

Helper function to get the within block se using re-simulation

Usage

doInternalSimulation(windows, data, reference, observed, nRefs, nSim = 1000)

Arguments

windows

is a dataframe with the Start_Pos and End_Pos

data

is the original chromosome data

reference

is a list with the names of the columns with references

observed

a character value that is the column name for the observed group

nRefs

is a vector the same lengths as reference with the number of individuals in each reference population

nSim

is the number of internal simulations for the standard error calculations


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