Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

dafs (version 1.0-38)

pvalue: Formats an P-value figure for LaTeX

Description

Produces a math-mode formatted string for a P-value.

Usage

pvalue(p, fmt = "$P = %6.4f$")

Arguments

p

The P-value

fmt

A formatting string for LaTeX

Value

A string that will be correctly formatted by LaTeX

See Also

Sweave

Examples

Run this code
# NOT RUN {
p = 0.04
pvalue(p)
# }

Run the code above in your browser using DataLab