Description
Sugar to compute the sum of a stat per block
Usage
.block_sum(stat, snp_bj_id)
Value
Return a vector of length nblocks containing the per-block sums of the input stat
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