add_stars: Add Stars to Estimates

Description Usage Arguments Value Author(s)

View source: R/add_stars.R

Description

Add stars to a vector of coefficients based on the corresponding p-values and specified thresholds.

Usage

1
2
3
4
5
6
add_stars(
  estimates = NULL,
  pvalues = NULL,
  thresholds = c(0.01, 0.05, 0.1),
  digits = 3
)

Arguments

estimates

Numeric vector. Coefficients.

pvalues

Numeric vector. Corresponding p-values.

thresholds

Numeric vector. Three cut-off points for p-values.

digits

Integer. Number of digits for rounding.

Value

Character vector with significance levels associated with coefficients.

Author(s)

Nicolas Mangin


NicolasJBM/fmtR documentation built on Dec. 31, 2020, 3:21 p.m.