rpfmt: Displaying p-values with estimates

Description Usage Arguments Details Examples

Description

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

Usage

1
2
3
4
5
6
7
rpfmt(x, ...)

## Default S3 method:
rpfmt(x, digits = 3, pdigits = 5)

## S3 method for class 'wald'
rpfmt(w, ...)

Arguments

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

Details

works on first element of a wald list

Examples

1
rpfmt( cbind( 'estimate' = rnorm(7), "p-values" = 10^c(-1,-2,-3,-4,-5,-6,-7)))

gmonette/yscs documentation built on May 17, 2019, 7:28 a.m.