R/save.boundary.values.R

Defines functions save.boundary.values

Documented in save.boundary.values

#' Function to create the boudnaries that satisfy the spending function
#'
#' calculate and store boundary values
#' if no stopping, single critical value/sqrt(v2) just depend on v1/v2
#' @export

save.boundary.values <- function()
{
  # calculate and store boundary values
  # if no stopping, single critical value/sqrt(v2) just depend on v1/v2
  save.boundary = rep(0,99)
  for (ratio in seq(0.01,0.99,0.01))
  {
    save.boundary[round(ratio*100)]=get.boundaries(v=c(ratio,1))$upper[2]
  }
  save.boundary
}
Gtmille2/seamlessTrial documentation built on Nov. 18, 2019, 5:16 a.m.