Sample size estimation for observational studies using Bayesian methods

I am designing a clinical observational study. My statistical analysis plan is to use a Bayesian modelling framework. However, I have not come across practical tutorials on sample size calculations using Bayesian framework unlike the Frequentist formulas which are straight forward.
I have read some papers describing various criteria such as the worst outcome criterion (WOC), Average length criterion (ALC) and Average coverage criterion (ACC) but not provides code for practical use.

I am wondering whether practical resources exist on Bayesian Sample size estimation for observation studies.


Maybe this can help? Not sure

Thanks for the reply. The Adaptive trial design package linked in the tweet is great. I’m looking for something specific to observational studies. Perhaps it’s possible to adapt their work to fit observational studies.