check_data: Check input data for validity

View source: R/utils.R

check_dataR Documentation

Check input data for validity

Description

Performs quality control checks on the input data to ensure it meets expected formats and conditions.

Usage

check_data(Y, Xi, A, X, folds)

Arguments

Y

A numeric vector or matrix of length n representing primary outcomes (in ⁠[0,1]⁠).

Xi

A numeric vector or matrix of length n indicating adverse events (0 or 1).

A

A binary vector or matrix of length n indicating treatment assignment (0 or 1).

X

A matrix or data frame of covariates of size n x d (input data in ⁠[0,1]⁠).

folds

A list of cross-validation folds (e.g., a list of indices for each fold).

Value

A list with elements: ok (logical), and diagnoses (character vector of issues).


PLUCR documentation built on March 30, 2026, 5:08 p.m.