Skip to content

Incorrect legend when plotting designs with/without binding futility #11

Closed
@TimHesterberg

Description

@TimHesterberg
# Compare nonbinding and binding futility bounds
design1 <- getDesignGroupSequential(
  kMax = 4, alpha = 0.05,
  sided = 1,
  informationRates = 1:4/4,
  typeOfDesign = "asOF",
  typeBetaSpending = "bsOF")

design2 <- getDesignGroupSequential(
  kMax = 4, alpha = 0.05,
  sided = 1,
  informationRates = 1:4/4,
  typeOfDesign = "asOF",
  typeBetaSpending = "bsOF",
  bindingFutility = TRUE)

plot(getDesignSet(designs = c(design1, design2),
                  variedParameters = "bindingFutility"))
# The final legend line is:
# TRUE, Futility bound (non-binding)
# The TRUE indicates that futility is binding.
# The "(non-binding)" is incorrect.

# In contrast
plot(design2)
# has the second line in the legend "Futility bound (binding)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions