Description Usage Arguments Details Value Author(s)
Fit and pretty-print uni or multivariate Cox regressions
1 2 3 4 5 |
formula |
formula object specifying the uni or multivariate model to be fitted. |
data |
a data frame containing the covariates |
output |
character string indicating the type of
output. Possible values are \textlatex,
|
Format |
character string indicating the type of
format. Possible values are |
rmNA |
logical, whehter rows corresponding to
NA-categories should be removed. Default is
|
Digits |
integer, the number of floating point digits in the output. The default value is 2. |
file |
full path to the file where the text output should be saved. The default value is "", i.e. the standard output. |
type |
character string, indicates the type of
model. Possible values are |
caption |
Character string (possibly multiline,
glued together with |
label |
character string representing the label used in LaTeX for referencing |
... |
optional arguments |
This function fits the uni or multivariate Cox regression
specified in the formula and returns an output that is
suitable for pubblication. The output can be in LaTeX, in
text or a data frame for further manual modification.
There are two formats available, one of which is closer
to what is usually found in publications. If categorical
covariates contain NAs as additional levels, the
rmNA
allows to remove the corresponding rows from
the output. The number of digits can be set by the user,
and the text output can be saved on a file (default is to
print it to screen). Note; the user must specify
whether the model is univariate or multivariate, since
the formula can contain multiple covariates even in
univariate models. In this case each covariate will be
fit independently in a univariate model, but the results
will be presented in the same table for all covariates.
either some LaTeX code, a text output or file, or a data
frame, depending on the value of the output
parameter
Giovanni d'Ario
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.