simTable: Emphasize cells from simulation results

Description Usage Arguments Value See Also Examples

View source: R/simTable.R

Description

simTable takes a SimDesign dataframe object, and returns a LaTeX table.

Usage

1
2
3
simTable(dat, by = NULL, highlight = TRUE, upper.bound = 0.075,
  lower.bound = 0.025, colnames = NULL, lucid = TRUE, digits = 2,
  caption = NULL, hide = NULL)

Arguments

dat

A data.frame object of class(SimDesign).

by

A character value indicating a factor variable to collapse results by.

highlight

A boolean value indicating if values should be highlighted based upon upper.bound and lower.bound.

upper.bound

An integer value indicating the upper limit.

lower.bound

An integer value indicating the lower limit.

colnames

An optional character vector indicating column names to use in the output.

lucid

Should results be printed? This converts results to characters of same length.

digits

Display lucid results to how many significant digits?

caption

A character string indicating caption.

hide

A character vector indicating the names of any columns to hide from the table.

Value

A character vector.

See Also

SimDisplay

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data(Brown1974)
Brown1974$REPLICATIONS <- Brown1974$SIM_TIME <- Brown1974$COMPLETED <- Brown1974$SEED <- NULL
TypeI <- subset(Brown1974, var_ratio == 1) # Separate type I error rate conditions
Power <- subset(Brown1974, var_ratio != 1) # from power conditions
simTable(TypeI)
simTable(TypeI, by = 'sample_size')
simTable(TypeI, by = 'sample_size', hide = 'var_ratio')

## End(Not run)

mattsigal/SimDisplay documentation built on May 21, 2019, 1:25 p.m.