c212.ptheta {c212}R Documentation

Reports the posterior probability that theta (the increase in the log-odds) is greater than zero for each Adverse Event

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

	c212.ptheta(raw)

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


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)

[Package c212 version 0.98 Index]