View source: R/calc_risk_diff.R
print.riskdiff_result | R Documentation |
Prints risk difference results in a formatted, readable way showing key statistics including risk differences, confidence intervals, model types used, and enhanced boundary case diagnostics for v0.2.1+.
## S3 method for class 'riskdiff_result'
print(x, show_boundary = TRUE, show_quality = TRUE, ...)
x |
A riskdiff_result object from calc_risk_diff() |
show_boundary |
Logical indicating whether to show boundary case details (default: TRUE) |
show_quality |
Logical indicating whether to show quality indicators (default: TRUE) |
... |
Additional arguments passed to print methods |
Invisibly returns the original riskdiff_result object (x). Called primarily for its side effect of printing formatted results to the console.
data(cachar_sample)
result <- calc_risk_diff(cachar_sample, "abnormal_screen", "areca_nut")
print(result)
# Suppress boundary details for cleaner output
print(result, show_boundary = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.