Learn R Programming

refineR (version 2.0.0)

printVerificationTable: Print Verification Table

Description

This function prints a formatted verification table for reference intervals

Usage

printVerificationTable(verificationTab, RIperc)

Value

None. Prints the verification table to the console.

Arguments

verificationTab

(data.frame) containing the verification table. Must include the following columns:

  • Percentile: The percentile values.

  • RIDataPointEst: Point estimates for RI Data.

  • RIDataMarginLow: Lower margins for RI Data.

  • RIDataMarginHigh: Upper margins for RI Data.

  • RITestPointEst: Point estimates for RI Cand.

  • RITestMarginLow: Lower margins for RI Cand.

  • RITestMarginHigh: Upper margins for RI Cand.

  • OverlapPointEst: Logical indicating if point estimates overlap.

  • OverlapMargins: Logical indicating if margins overlap.

RIperc

(numeric) value specifying the percentiles, which define the reference interval (default c(0.025, 0.975))

Examples

Run this code
if (FALSE) {
df <- data.frame(
	Percentile = c(0.025, 0.975),
	RICandPointEst = c(12, 65),
	RICandMarginLow = c(10.9013, 60.2780),
	RICandMarginHigh = c(13.86800, 72.64152),
	RIDataPointEst = c(13, 69),
	RIDataMarginLow = c(11.60130, 63.77848),
	RIDataMarginHigh = c(14.39861, 74.22152),
	OverlapPointEst = c(TRUE, TRUE),
	OverlapMargins = c(TRUE, TRUE)
)
 
RIperc <- c(0.025, 0.975)
printVerificationTable(df, RIperc)
}

Run the code above in your browser using DataLab