Learn R Programming

tstests (version 1.0.0)

as_flextable.tstest.berkowitz: Transform a summary object into flextable

Description

Transforms a “tstest.test” object into a flextable with options on symbolic representation and model equation.

Usage

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

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

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

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

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

# S3 method for tstest.nyblom 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, ... )

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

# S3 method for tstest.signbias 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, ... )

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

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

Value

A flextable object.

Arguments

x

an object of which inherits a “tstest” 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.

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.

collapse

collapses the results for multiple lags to just report the joint test.

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.