c212.ptheta: Reports the posterior probability that theta (the increase in...

Description Usage Arguments Value Author(s) Examples

View source: R/c212.ptheta.R

Description

This function reports the posterior probability that theta is positive, i.e. that there is an increase in log odds of an adverse event being associated with treatment.

Usage

1

Arguments

raw

The output from a call to c212.BB.

Value

A data frame containing the columns: interval if analysing interim data, B: body system, AE: adverse event and ptheta, the posterior probability that theta is positive.

Author(s)

R. Carragher

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
data(c212.trial.data)
raw = c212.BB(c212.trial.data, burnin = 100, iter = 200)
p = c212.ptheta(raw)
head(p)

## Not run: 
data(c212.trial.data)
raw = c212.BB(c212.trial.data)

## End(Not run)

## Not run: 
p = c212.ptheta(raw)

head(p)
          B       AE    ptheta
1 Bdy-sys_1 Adv-Ev_1 0.2560500
2 Bdy-sys_2 Adv-Ev_2 0.9426417
3 Bdy-sys_2 Adv-Ev_3 0.8751500
4 Bdy-sys_2 Adv-Ev_4 0.1154917
5 Bdy-sys_2 Adv-Ev_5 0.2317417
6 Bdy-sys_3 Adv-Ev_6 1.0000000

## End(Not run)

c212 documentation built on Sept. 8, 2020, 5:07 p.m.

Related to c212.ptheta in c212...