R/plot_sens.R

Defines functions plot_sens

Documented in plot_sens

plot_sens <- function(x,min,max) {
  grid <- seq(min, max, (max - min)/10)
  par(mfrow = c(1, 2))
  plot(grid, x[[1]], type = "l", ylab = "Number of PSUs", 
       xlab = "Varying minimum SSUs per PSU")
  title("First Stage Size")
  plot(grid, x[[2]], type = "l", ylab = "Number of SSUs", 
       xlab = "Varying minimum SSUs per PSU")
  title("Second Stage Size")
  par(mfrow = c(1, 1))
}

Try the R2BEAT package in your browser

Any scripts or data that you put into this service are public.

R2BEAT documentation built on May 31, 2023, 7:19 p.m.