or_distribution_bayes: Get the odds ratio distribution combines prior with actual...

Description Usage Arguments Value

View source: R/odds_ratio.R

Description

Get the odds ratio distribution combines prior with actual data to posterior beta distributions and initiates sampling Extracted from PropCIs::orci.bayes()

Usage

1
or_distribution_bayes(x1, n1, x2, n2, a, b, c, d, nsim = 1e+07)

Arguments

x1

number of successes in sample 1

n1

sample size in sample 1

x2

number of successes in sample 2

n2

sample size in sample 2

a

beta prior for x1

b

beta prior for x2

c

beta prior for n1

d

beta prior for n2

nsim

integer

Value

vector of doubles, distribution od odds ratios


Famondir/birtms documentation built on Feb. 18, 2022, 2:51 a.m.