I am attempting to make a table that would hold the sample size determination from several methods for different initial probabilities. I would like it to look something like the following
Prob. .80 .81 .82 ...
Wald xxx yyy zzz
AC qqq rrr sss
Jeff. ddd uuu iii
With the letters being the actual output I would like to populate with based on the type of interval and the probability value. In order to get an individual value I could use the following pieces of code, but am struggling to put them together.
library(binom)
n_wald <- ciss.wald(p, d, alpha = a)
n_agricoull <- ciss.agresticoull(p, d, alpha = a)
n_jeffreys <- ciss.binom(p, d, alpha = a, prior.shape1 = 0.5,
prior.shape2 = 0.5, method = "bayes")
I want help in converting the sample size calculations into a table for each increment of initial probability. Basically, I am trying to use the second piece of code to fill in the "xxx" for the table.