block_sum: block_sum

block_sumR Documentation

block_sum

Description

Sugar to compute the sum of a stat per block

Usage

.block_sum(stat, snp_bj_id)

Arguments

stat

vector of n stat values

snp_bj_id

integer n-length vector with block index (from 0 to nblock-1) of the stat value

Details

Sugar to compute the sum of a stat per block

Value

Return a vector of length nblocks containing the per-block sums of the input stat

Examples

#

poolfstat documentation built on April 4, 2025, 1:49 a.m.