validatePopShares: Validate population shares

validatePopSharesR Documentation

Validate population shares

Description

Checks that population shares are valid: non-negative and sum to 1.

Usage

validatePopShares(PopShares, tol = 1e-06)

Arguments

PopShares

A numeric vector of population shares.

tol

Tolerance for checking if shares sum to 1.

Value

TRUE if valid, otherwise throws an error.


DescriptiveRepresentationCalculator documentation built on Dec. 15, 2025, 1:06 a.m.