rpfmt | R Documentation |
Takes a 2 column matrix or data frame in which the first column has estimated values and the second has p-values and formats them into a single column with p-values in parentheses
rpfmt(x, ...)
## Default S3 method:
rpfmt(x, digits = 3, pdigits = 5, ...)
## S3 method for class 'wald'
rpfmt(x, ...)
x |
a n x 2 matrix or data frame |
digits |
(default: 5) number of digits for rounding coefficient |
pdigits |
(default: 5) number of digits for rounding p-values |
works on first element of a wald
list
rpfmt( cbind( 'estimate' = rnorm(7), "p-values" = 10^c(-1,-2,-3,-4,-5,-6,-7)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.