t_pstar: TexHelp functions to clean up regression tables

Description Usage Arguments Details Value Examples

View source: R/texhelp.R

Description

t_pstar returns latex encoded starrage, given p-value; t_parw wraps the input with parentheses ().

Usage

1
2
3

Arguments

x

numeric vector

Details

t_pstar uses "economists" p-values: 0.10 gives one star, 0.05 gives 2 (and the right to publish), 0.01 gives 3.

Value

a "cleaned up" character version of x

Examples

1
2
3
t_pstar(c(0.03,0.34,0.06))
# combine with t_td for special effects
t_parw(t_td(c(1.21,3.23,3.2232),d=2))

rdisalv2/dismisc documentation built on Nov. 2, 2021, 1:34 a.m.