Learn R Programming

primarycensored (version 1.4.0)

.check_truncation_bounds_df: Validate truncation bounds in a data frame

Description

Internal function to validate that L (lower truncation) is less than D (upper truncation) for all rows in a data frame.

Usage

.check_truncation_bounds_df(data, L_col, D_col)

Value

Invisible NULL if valid, otherwise stops with an error message.

Arguments

data

Data frame containing the L and D columns

L_col

Name of the column containing L values

D_col

Name of the column containing D values