Skip to content

Commit

Permalink
Merge pull request Merck#257 from Merck/254-decimals-display-of-param…
Browse files Browse the repository at this point in the history
…eters

254 decimals display of parameters
  • Loading branch information
LittleBeannie authored Jun 12, 2024
2 parents fedf01d + 93ec397 commit 23449e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: simtrial
Type: Package
Title: Clinical Trial Simulation
Version: 0.4.1.5
Version: 0.4.1.6
Authors@R: c(
person("Keaven", "Anderson", email = "[email protected]", role = c("aut")),
person("Yujie", "Zhao", email = "[email protected]", role = c("ctb","cre")),
Expand Down
2 changes: 1 addition & 1 deletion R/wlr.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ wlr <- function(data, weight, return_variance = FALSE) {
} else if (inherits(weight, "early_period")) {
x <- x |> early_zero_weight(early_period = weight$early_period, fail_rate = weight$fail_rate)

ans$parameter <- paste0("Xu 2017 with first ", weight$early_period, " months of 0 weights")
ans$parameter <- paste0("Xu 2017 with first ", round(weight$early_period, 4), " months of 0 weights")
ans$estimate <- sum(x$o_minus_e * x$weight)
ans$se <- sqrt(sum(x$var_o_minus_e * x$weight^2))
ans$z <- ans$estimate / ans$se
Expand Down

0 comments on commit 23449e0

Please sign in to comment.