format_pval: Format p-value for display

View source: R/km_wlr_calculations_helpers.R

format_pvalR Documentation

Format p-value for display

Description

Formats a p-value for display, showing "<eps" for small values.

Usage

format_pval(pval, eps = 0.001, digits = 3)

Arguments

pval

Numeric p-value.

eps

Threshold for small p-values.

digits

Number of digits to display.

Value

Formatted p-value as character.


weightedsurv documentation built on Dec. 23, 2025, 1:07 a.m.