Learn R Programming

c212 (version 0.98)

c212.sim.control.params: Generate a template for the individual model parameter simulation control parameters.

Description

This function generates a template for overriding the global simulation parameters used by the model simulation functions (e.g. c212.BB).

Usage

c212.sim.control.params(trial.data, model = "1a")

Arguments

trial.data

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

model

Allowed values are "BB" and "1a" for point-mass and non-point-mass models respectively.

Value

A dataframe containing the simulation parameters template.

Examples

Run this code
# NOT RUN {
data(c212.trial.data)
s.p <- c212.sim.control.params(c212.trial.data)
head(s.p)
# }
# NOT RUN {
data(c212.trial.data)
s.p <- c212.sim.control.params(c212.trial.data)
head(s.p)

   type variable         B        AE param value control
1 SLICE    gamma Bdy-sys_2  Adv-Ev_5     w     1       6
2 SLICE    gamma Bdy-sys_5 Adv-Ev_24     w     1       6
3 SLICE    gamma Bdy-sys_6 Adv-Ev_31     w     1       6
4 SLICE    gamma Bdy-sys_8 Adv-Ev_42     w     1       6
5 SLICE    gamma Bdy-sys_7 Adv-Ev_39     w     1       6
6 SLICE    gamma Bdy-sys_6 Adv-Ev_34     w     1       6

# }

Run the code above in your browser using DataLab