ORtable.text: Function to compute and render text entries for OR-table

Description Usage Arguments Value Examples

View source: R/ORtable.R

Description

Function to compute and render text entries for OR-table

Usage

1
2
ORtable.text(this.data, this.outcome, this.var, this.type, sign.digits,
  sign.digits.OR, pvalue.digits, pvalue.cutoff, less.than.character)

Arguments

this.data

Data used for the computations

this.outcome

The name of the variable (column) in data that is the binary outcome for the logistic regression models.

this.var

Variable in the table (must exist in this.data)

this.type

Variable type for table

sign.digits

Digits used for parameter estimate

sign.digits.OR

Digits used for odds ratio with conf.intervals

pvalue.digits

Digits used for p-values.

pvalue.cutoff

Cutoff for changing p-values to simply 'smaller than', e.g., p < 0.001.

less.than.character

The character to be prepended to the cutoff-value for the p-values (e.g., '< 0.001'). The default is less.than.character = "< " but it can be reset to any character string. If the result is passed on to html-rendering this symbol can be produced by less.than.character = "&lt; " (HTML-friendly name for 'less than' since '<' is used in HTML-tags and might not render correctly as a character; e.g., when using function htmlTable() in the htmlTable-package).

Value

Output used by ORtable()

Examples

1
## Not run:  Called by other function - not intended to be called by user directly. 

FrThomas/risyphus documentation built on Dec. 6, 2019, 6:27 a.m.