ModelData | R Documentation |
Function to build the data list to give to stan
Order the data set in replicate and then in time to create a new column
i_row
used to delimited replicates.
Create a matrix of replicate and index "id_row"
Compute Nprec = lag of Nsurv
return a list of element to be passed to Stan sampler
Create a list of scalars giving priors to use in Bayesian inference.
modelData(data, model_type, ...)
## S3 method for class 'SurvData'
modelData(data, model_type = c("SD", "IT"), hb_value = NULL, ...)
build_stanData(x)
build_priors(x, model_type = c("SD", "IT"), hb_value = NULL)
data |
An object of class |
model_type |
TKTD model type ('SD' or 'IT') |
... |
Further arguments to be passed to generic methods |
hb_value |
default is NULL, can be fixed by specifying a numeric. |
x |
An object of class |
A list for parameterization of priors for Bayesian inference.
A list for parameterization of priors for Bayesian inference with JAGS.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.