Experiment int outcome from another experiment

I have results of an experiment exp1Size independent trials with binary outcome of which exp1Pos came out positive. I can easily get CI for the rate. But what I want is confidence intervals for a future experiment of given size.
I can’t seem to put an Int paramater in pystan and was wondering how I can get around this.
What I would like to is something like this:

model {
  exp1pos ~ binomial(exp1size,rate);
  exp2pos ~ binomial(exp2size, rate); 
} 

When the input is: exp1Size,exp1Pos, and exp2Size and I want confidence interval for exp2pos.

Generated quantities block is useful for prediction about future experiments.

model {
  exp1pos ~ binomial(exp1size,rate);
}
generated quantities {
  int exp2pos = binomial_rng(exp2size, rate); 
}
1 Like