Learn R Programming

c212 (version 0.98)

c212.pointmass.weights: Generate a template for the point-mass weightings.

Description

This function generate a template for weights for the proposal distribution used to sample theta variables in models which use a point-mass.

Usage

c212.pointmass.weights(trial.data)

Arguments

trial.data

A file or data frame containing the trial data, either for end of trial or interim analysis.

Value

A dataframe containing the weightings template for each Body-system, adverse event and, if required, interval.

Examples

Run this code
# NOT RUN {
data(c212.trial.data)
pmw <- c212.pointmass.weights(c212.trial.data)
head(pmw)
# }
# NOT RUN {
data(c212.trial.data)
pmw <- c212.pointmass.weights(c212.trial.data)
head(pmw)
          B        AE weight_pm
1 Bdy-sys_2  Adv-Ev_5       0.5
2 Bdy-sys_5 Adv-Ev_24       0.5
3 Bdy-sys_6 Adv-Ev_31       0.5
4 Bdy-sys_8 Adv-Ev_42       0.5
5 Bdy-sys_7 Adv-Ev_39       0.5
6 Bdy-sys_6 Adv-Ev_34       0.5
# }

Run the code above in your browser using DataLab