Builds the short statistic text placed above a panel, for example
"11/12 patients; p = 0.0015" or "+3.4; p = 0.021; q = 0.18", before
typesetting.
Usage
FormatStatistic(
p,
k = NULL,
n = NULL,
q = NULL,
estimate = NULL,
digits = 1,
unit = "patients"
)Arguments
- p
P value.
- k, n
Patients in the expected direction and evaluable patients; omit both for a contrast line.
- q
Optional adjusted P value.
- estimate
Optional signed effect shown first, with
digitsdecimals and a true minus sign.- digits
Decimals of
estimate.- unit
Optional text after the patient count, default
"patients".