Description Usage Arguments Value Examples
Intrinsic inference on the rate ratio.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | intrinsic_phi0(phi0, x, y, S, T, a = 0.5, b = 0, c = 0.5, d = 0,
beta_range = TRUE, tol = 1e-08, ...)
intrinsic_phi0_sims(phi0, x, y, S, T, a = 0.5, b = 0, c = 0.5, d = 0,
nsims = 1e+06)
intrinsic_estimate(x, y, S, T, a = 0.5, b = 0, c = 0.5, d = 0,
otol = 1e-08, ...)
intrinsic_H0(phi.star, alternative, x, y, S, T, a = 0.5, b = 0, c = 0.5,
d = 0, ...)
intrinsic_bounds(x, y, S, T, a = 0.5, b = 0, c = 0.5, d = 0,
conf = 0.95, parameter = "phi", otol = 1e-08, ...)
|
phi0 |
the proxy value of |
x,y |
Observed counts |
S,T |
sample sizes |
a,b,c,d |
Prior parameters |
beta_range |
logical, if |
tol |
accuracy requested |
... |
other arguments passed to |
nsims |
number of simulations |
otol |
desired accuracy for optimization |
phi.star |
the hypothesized value of |
alternative |
alternative hypothesis, "less" for H1: |
conf |
credibility level |
parameter |
parameter of interest: relative risk |
intrinsic_phi0
returns the posterior expected loss,
intrinsic_estimate
returns the intrinsic estimate,
intrinsic_H0
performs intrinsic hypothesis testing, and
intrinsic_bounds
returns the intrinsic credibility interval.
1 2 3 4 5 6 | a<-0.5; b<-0; c<-1/2; d<-0; S<-100; T<-S; x<-0; y<-20
intrinsic_phi0(0.5, x, y, S, T, a, b, c, d)
intrinsic_phi0_sims(0.5, x, y, S, T, a, b, c, d)
intrinsic_estimate(x, y, S, T, a, b, c, d)
bounds <- intrinsic_bounds(x, y, S, T, a, b, c, d, conf=0.95); bounds
ppost_phi(bounds[2], a, b, c, d, S, T, x, y)- ppost_phi(bounds[1], a, b, c, d, S, T, x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.