bhpm.gen.initial.values {bhpm} | R Documentation |
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.
bhpm.gen.initial.values(cluster.data, nchains = 3,
model = "1a", hier = 3, level = 1)
cluster.data |
A file or data frame containing the data for 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. |
A dataframe containing the template of intial values.
R. Carragher
data(bhpm.cluster.data1)
initial.values <- bhpm.gen.initial.values(bhpm.cluster.data1)
print(initial.values$mu.gamma.0)
data(bhpm.cluster.data1)
initial.values <- bhpm.gen.initial.values(bhpm.cluster.data1)
print(initial.values$mu.gamma.0)