est_sig: Add significance asterisks to object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/results-table_results.R

Description

Takes an object, and adds significance asterisks.

Usage

1
est_sig(x, digits = 2, sig = NULL)

Arguments

x

An object for which a method exists. This will be treated as numeric by the default method.

digits

Integer. The number of digits to round the estimate column to.

sig

Optional, a vector of p-values for the default method.

Value

A character vector of formatted estimates.

Author(s)

Caspar J. van Lissa

See Also

table_results

Other Reporting tools: conf_int(), table_fit(), table_results()

Examples

1
est_sig(c(.222, .3333), sig = c(.054, .045))

Example output

Registered S3 methods overwritten by 'tidySEM':
  method              from           
  print.mplus.model   MplusAutomation
  print.mplusObject   MplusAutomation
  summary.mplus.model MplusAutomation
[1] "0.22"  "0.33*"

tidySEM documentation built on Nov. 17, 2021, 1:07 a.m.