Default p-value formatting method

Description

Format a p-value for printing in a LaTeX table. Requires the ulem LaTeX package for underlining the p-values.

Usage

1
2
## Default S3 method:
pvalf(pval, params = list())

Arguments

pval

Numeric value between 0 and 1.

params

A list of options. This function accepts the following options:

minval

If p-value is below this value, return this value preceded by a "<" sign instead instead.

lim1val

If p-value is below this value, it will be double-underlined.

lim2val

If p-value is below this value, it will be underlined.

na_str

String to use for NAs. By default NAs are returned as is.

Value

A string representing the formatted pval.

Examples

1
2
3
pvalf(0.1)
pvalf(0.000001)
pvalf(c(0.06, 0.04, 0.005, 0.00001), list(minval = 0.0001))

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.