View source: R/summary.regressionTable.R
summary.regressionTable | R Documentation |
Preparing regression results for publication
## S3 method for class 'regressionTable' summary(object, show.missing = "ifany", print = TRUE, ...)
object |
object obtained with |
show.missing |
Decide if number of missing values are shown.
Either logical or character. If |
print |
If |
... |
Used to control formatting of parameter estimates, confidence intervals and p-values. See examples. |
List with two elements:
regressionTable: the formatted regression table (a data.frame)
rawTable: table with the unformatted values (a data.frame)
Thomas A. Gerds <tag@biostat.ku.dk>
publish.glm publish.coxph
library(survival) data(pbc) pbc$edema <- factor(pbc$edema,levels=c("0","0.5","1"),labels=c("0","0.5","1")) fit = coxph(Surv(time,status!=0)~age+sex+edema+log(bili)+log(albumin)+log(protime), data=pbc) u=summary(regressionTable(fit)) u$regressionTable u$rawTable summary(regressionTable(fit),handler="prettyNum") summary(regressionTable(fit),handler="format") summary(regressionTable(fit),handler="sprintf",digits=c(2,2),pValue.stars=TRUE) summary(regressionTable(fit),handler="sprintf",digits=c(2,2),pValue.stars=TRUE,ci.format="(l,u)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.