Skip to content

Commit

Permalink
Merge branch '101-reconsider-rounding-in-outputs-and-reporting-tables…
Browse files Browse the repository at this point in the history
…' of https://github.com/hta-pharma/maicplus into 101-reconsider-rounding-in-outputs-and-reporting-tables
  • Loading branch information
hoppanda committed Sep 19, 2024
2 parents 54c8d90 + fef3613 commit 6d8b44d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
16 changes: 8 additions & 8 deletions R/binary-helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ get_pseudo_ipd_binary <- function(binary_agd, format = c("stacked", "unstacked")
#' @examples
#' data(adrs_sat)
#' pseudo_adrs <- get_pseudo_ipd_binary(
#' binary_agd = data.frame(
#' ARM = rep("B", 2),
#' RESPONSE = c("YES", "NO"),
#' COUNT = c(280, 120)
#' ),
#' format = "stacked")
#' binary_agd = data.frame(
#' ARM = rep("B", 2),
#' RESPONSE = c("YES", "NO"),
#' COUNT = c(280, 120)
#' ),
#' format = "stacked"
#' )
#' pseudo_adrs$RESPONSE <- as.numeric(pseudo_adrs$RESPONSE)
#' combined_data <- rbind(adrs_sat[,c("USUBJID", "ARM", "RESPONSE")], pseudo_adrs)
#' combined_data <- rbind(adrs_sat[, c("USUBJID", "ARM", "RESPONSE")], pseudo_adrs)
#' combined_data$ARM <- as.factor(combined_data$ARM)
#' binobj_dat <- stats::glm(RESPONSE ~ ARM, combined_data, family = binomial("logit"))
#' glm_makeup(binobj_dat)

glm_makeup <- function(binobj, legend = "before matching", weighted = FALSE) {
ARM <- levels(binobj$data$ARM)
if (!weighted) {
Expand Down
28 changes: 22 additions & 6 deletions man/glm_makeup.Rd

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

0 comments on commit 6d8b44d

Please sign in to comment.