Skip to content

Commit

Permalink
cran 1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseob2kim committed Jun 16, 2024
1 parent e889bd3 commit dbede37
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: jstable
Title: Create Tables from Different Types of Regression
Version: 1.2.6
Date: 2024-05-31
Version: 1.2.7
Date: 2024-06-16
Authors@R: c(person("Jinseob", "Kim", email = "jinseob2kim@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-9403-605X")),
person("Zarathu", role = c("cph", "fnd")),
person("Yoonkyoung","Jeon", role = c("aut"))
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# jstable 1.2.7

* Fix: Interaction P when 3 or more categorical subgroups in `TableSubgroupCox` and `TableSubgroupMultiCox`

# jstable 1.2.6

* Add AIC metric to `cox2.display`.
Expand Down
2 changes: 1 addition & 1 deletion R/forestcox.R
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ TableSubgroupCox <- function(formula, var_subgroup = NULL, var_cov = NULL, data,
model.int$call$formula <- as.formula(gsub(xlabel, paste0(xlabel, "*", var_subgroup), deparse(formula)))
model.int$call$data <- as.name("data")
pv_anova <- tryCatch(anova(model.int), error = function(e) NA)
if (is.na(pv_anova) & !is.null(cluster)) {
if (is.logical(pv_anova) & !is.null(cluster)) {
warning("Warning: Anova test is not available for cluster data. So Interaction P value is NA when 3 and more categorical subgroup variable.")
}
pv_int <- tryCatch(round(pv_anova[nrow(pv_anova), 4], decimal.pvalue), error = function(e) NA)
Expand Down

0 comments on commit dbede37

Please sign in to comment.