Skip to content

Commit

Permalink
restore n column re: chest revdepcheck (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed May 26, 2020
1 parent f12396c commit f6d1b99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions R/survival-coxph-tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ augment.coxph <- function(x, data = NULL, newdata = NULL,
#' @inherit tidy.coxph params examples
#'
#' @evalRd return_glance(
#' "n",
#' "nevent",
#' "logLik",
#' "AIC",
Expand All @@ -159,6 +160,7 @@ glance.coxph <- function(x, ...) {
# including all the test statistics and p-values as separate
# columns. Admittedly not perfect but does capture most use cases.
ret <- list(
n = s$n,
nevent = s$nevent,
statistic.log = s$logtest[1],
p.value.log = s$logtest[3],
Expand Down
3 changes: 2 additions & 1 deletion man/glance.coxph.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f6d1b99

Please sign in to comment.