fmt_stars: Add stars to a vector of coefficients based on the p-value.

Description Usage Arguments Value

View source: R/fmt_stars.R

Description

Add stars to a vector of coefficients based on the p-value.

Usage

1
2
3
4
5
6
fmt_stars(
  coeff = NULL,
  pval = NULL,
  thresholds = c(0.01, 0.05, 0.1),
  digits = 3
)

Arguments

coeff

Numeric vector. Coefficients.

pval

Numeric vector. Corresponding p-values.

thresholds

Numeric vector. three values indicating the cut-off p-values.

digits

Integer. Number of digits for rounding.

Value

Character vector with coefficients formatted for publication.


NicolasJBM/modlR documentation built on May 14, 2021, 1:52 p.m.