Skip to content

Commit

Permalink
[skip style] [skip vbump] Restyle files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 19, 2024
1 parent f1fddfc commit 0a0393e
Showing 1 changed file with 8 additions and 8 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

0 comments on commit 0a0393e

Please sign in to comment.