bb_prepare_data: Validate and clean age / score / weights input

View source: R/betaBinomial.R

bb_prepare_dataR Documentation

Validate and clean age / score / weights input

Description

Performs the shared input validation for the beta-binomial fitting functions: length checks, removal of non-finite cases, and checks for negative or non-integer scores.

Usage

bb_prepare_data(age, score, weights = NULL)

Arguments

age

Numeric vector of predictor values.

score

Numeric vector of response values.

weights

Optional numeric vector of weights.

Value

A list with the (possibly filtered) elements age, score, weights.


cNORM documentation built on July 13, 2026, 5:08 p.m.