as_flextable: Transform a test object into flextable

as_flextable.tstest.esccR Documentation

Transform a test object into flextable

Description

Transforms a “tstest.escc” object into a flextable with options on symbolic representation.

Usage

## S3 method for class 'tstest.escc'
as_flextable(
  x,
  digits = max(3L, getOption("digits") - 3L),
  signif.stars = getOption("show.signif.stars"),
  include.decision = FALSE,
  use.symbols = TRUE,
  table.caption = x$test_name,
  footnote.reference = FALSE,
  ...
)

Arguments

x

an object of which inherits a “tstest.escc” class.

digits

integer, used for number formatting. Optionally, to avoid scientific notation, set ‘options(scipen=999)’.

signif.stars

logical. If TRUE, ‘significance stars’ are printed.

include.decision

prints out whether to reject the NULL at the 5% level of significance.

use.symbols

for tests which either have parameters for which the latex symbols were included in the calling function or for which the tests generate values which can be represented as latex symbols, then these will be generated.

table.caption

an optional string for the table caption.

footnote.reference

whether to include the reference paper of the test in the footnotes.

...

not currently used. The returned object can be manipulated further using flextable.

Value

A flextable object.


tsmarch documentation built on Nov. 2, 2026, 9:06 a.m.