Description Usage Arguments Value Examples
Function to compute and render text entries for HR-table
1 2 | HRtable.text(this.data, this.outcome, this.var, this.type, sign.digits,
sign.digits.HR, pvalue.digits, pvalue.cutoff, less.than.character)
|
this.data |
Data used for the computations |
this.outcome |
A text string as input for survival::coxph, e.g.,
"Surv(Follow_up_Years, Event_Death)" (incl. the quotes). This string will
be passed to coxph as the left-side of the model equation with
|
this.var |
Variable in the table (must exist in |
this.type |
Variable type for table |
sign.digits |
Digits used for parameter estimates |
sign.digits.HR |
Digits used for hazard ratios and 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 |
Output used by HRtable()
1 | ## Not run: Called by other function - not intended to be called by user directly.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.