rpfmt: Displaying p-values with estimates

View source: R/rpfmt.R

rpfmtR Documentation

Displaying p-values with estimates

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

rpfmt(x, ...)

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

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

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

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

gmonette/spida2 documentation built on July 14, 2024, 12:45 p.m.