staTeX: Return statistic and p values in LaTeX format

Description Usage Arguments Author(s) See Also

Description

This is the function used by st to generate the LaTeX code.

Usage

1
2
3
  staTeX(statistic, value, pval, df = NULL, digits = 3,
    sig = FALSE, alpha = c(0.05, 0.01, 0.001), output = c("Sweave", "knitr"),
    parantheses = TRUE)

Arguments

statistic

Name of the statistic used

value

Value of the statistic

pval

p-value

df

The degrees of freedom. Can be a vector with multiple degrees of freedom

digits

The number of digits to be printed

sig

Logical, if TRUE not the real value but only the value compared to levels of 'alpha' is printed. This means that if p is smaller than one of the levels of 'alpha' than that is returned (e.g. p<0.05) else ns is returned.

alpha

A vector specifying the significance levels used by 'sig'

output

Character indicating the output. Can be "Sweave", "knitr" or "plain". Currently the only thing this does is remove "$" signs from output if this is "plain"

parantheses

Logical, should parantheses be printed?

Author(s)

Sacha Epskamp <mail@sachaepskamp.com>

See Also

st stNP


SachaEpskamp/staTeX documentation built on May 9, 2019, 12:10 p.m.