sum_likelihoods: Sum likelihoods into buckets

View source: R/RcppExports.R

sum_likelihoodsR Documentation

Sum likelihoods into buckets

Description

Given a large vector of likelihood values and a vector, indices, of length n_indivs, sums the likelihoods to give one value per individual, where indices indicates which individual each index of liks corresponds to.

Usage

sum_likelihoods(liks, indices, n_indivs)

Arguments

liks

NumericVector of likelihoods

indices

IntegerVector of indices of same length as liks, where the max value of this should be the same as n_indivs - 1

n_indivs

int, number of individuals to generate bucketed likelihoods for


seroanalytics/serosolver documentation built on Dec. 14, 2024, 5:33 a.m.