c212.gen.initial.values: Generate a template simulation initial values.

Description Usage Arguments Value Author(s) Examples

View source: R/c212.gen.initial.values.R

Description

This function generates a template for the initial values to be used to start the simulation. They can be updated by the caller and passed to the simulation function.

Usage

1
2
	c212.gen.initial.values(trial.data, nchains = 3,
						model = "1a", hier = 3, level = 0)

Arguments

trial.data

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

nchains

The number of chains in the simulation.

model

The model type: "BB" for point-mass models, "1a" for non-point-mass models.

hier

Allowed values are 2, 3 indicating two or three level hierarchies.

level

The dependency level in the model: 0, 1, 2.

Value

A dataframe containing the template of initial values.

Author(s)

R. Carragher

Examples

1
2
3
4
5
6
7
8
9
data(c212.trial.data)
init.vals <- c212.gen.initial.values(c212.trial.data)
print(init.vals$mu.gamma.0)
## Not run: 
data(c212.trial.data)
init.vals <- c212.gen.initial.values(c212.trial.data)
print(init.vals$mu.gamma.0)

## End(Not run)

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