Skip to contents

The design is built with na.action = na.pass, so a missing predictor or response survives into X / y. No fitter drops incomplete cases, so an NA/NaN/Inf would propagate into the C++ kernels as a NaN estimate. Fail loudly with the offending row instead.

Usage

.assert_finite_model_inputs(X, y, where = NULL)

Arguments

X, y

Design matrix and response; either may be NULL to skip that arm.

where

Caller name for the message prefix, or NULL for none.

Details

Reached from tulpa(), from the direct beta-only doors, and from .validate_glm_design(), which is what carries it to every fitter taking a (y, X, n_trials) bundle.