Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyyeoCH committed Jan 9, 2025
1 parent 3a65c36 commit e38b84f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/plotBeta.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ plotBetaDiff <- function(parY, # parameters of experimental arm
)

Go_label <- paste("P(Go) is", round(Go_auc$value * 100, digits = 2), "%")
Stop_label <- paste("P(S) is", round(Stop_auc$value * 100, digits = 2), "%")
Stop_label <- paste("P(Stop) is", round(Stop_auc$value * 100, digits = 2), "%")
plot_title <- paste("According to Beta difference density", Go_label, "and", Stop_label)

if (shade == TRUE) {
Expand Down
4 changes: 2 additions & 2 deletions examples/plotBetaDiff.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plotBetaDiff(
parY = parY,
parX = parX,
Go_cut = 0.3,
Stop_cut = 0.1, # below a difference of 10%, is an unsuccesful trial
Stop_cut = 0.1, # below a difference of 10%, is an unsuccessful trial
shade = TRUE,
note = TRUE
)
Expand All @@ -17,7 +17,7 @@ plotBetaDiff(
parY = c(1, 1), # prior parameters for experimental arm
parX = c(1, 1), # prior parameters for control or SOC arm
Go_cut = 0.3,
Stop_cut = 0.1, # below a difference of 10%, is an unsuccesful trial
Stop_cut = 0.1, # below a difference of 10%, is an unsuccessful trial
shade = TRUE,
note = TRUE
)
4 changes: 2 additions & 2 deletions man/plotBetaDiff.Rd

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

0 comments on commit e38b84f

Please sign in to comment.