Skip to content

Commit

Permalink
Merge pull request #335 from HeidiSeibold/master
Browse files Browse the repository at this point in the history
Allow for survfit(..., conf.type = "none")
  • Loading branch information
kassambara authored Aug 23, 2018
2 parents 6f3e77e + 7cb6cc8 commit 831dfb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions R/surv_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ surv_summary <- function (x, data = NULL){
ncurve <- ncol(x$surv)
res <- data.frame(time = rep(x$time, ncurve), n.risk = rep(x$n.risk, ncurve),
n.event = rep(x$n.event, ncurve), n.censor = rep(x$n.censor, ncurve))
res <- cbind(res, surv = .flat(x$surv), std.err = .flat(x$std.err),
upper = .flat(x$upper), lower = .flat(x$lower))
res <- cbind(res, surv = .flat(x$surv),
std.err = ifelse(is.null(x$std.err), NA, .flat(x$std.err)),
upper = ifelse(is.null(x$upper), NA, .flat(x$upper)),
lower = ifelse(is.null(x$lower), NA, .flat(x$lower)))
res$strata <- as.factor(rep(colnames(x$surv), each = nrow(x$surv)))
}
# case of standard survfit() or survfit(res.cox)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The main functions, in the package, are organized in different categories as fol

- **ggforest**(): Draws forest plot for CoxPH model.

- **ggcoxadjustedcurves**(): Plots adjusted survival curves for coxph model.
- **ggadjustedcurves**(): Plots adjusted survival curves for coxph model.

<br/>

Expand Down

0 comments on commit 831dfb4

Please sign in to comment.