powered by
Produces a math-mode formatted string for a P-value.
pvalue(p, fmt = "$P = %6.4f$")
The P-value
A formatting string for LaTeX
A string that will be correctly formatted by LaTeX
Sweave
# NOT RUN { p = 0.04 pvalue(p) # }
Run the code above in your browser using DataLab