Learn R Programming

growcurves (version 0.2.4.1)

ddp_quantiles: Produce quantile summaries of model posterior samples

Description

Inputs MCMC samples for model parameters and constructs c(2.5%,50%,97.5%) quantile summaries.

Usage

ddp_quantiles(model.output, dosemat, Nfixed, Nrandom, Nsubject, typet)

Arguments

model.output
A list vector of objects returned by MCMC sampling functions. e.g. mmCplusDpPost for option = "mmcar".
dosemat
An P x (T+1) matrix object that maps subjects to treatment dosages. The first column should be an intercept column (filled with 1's).
Nfixed
Number of total fixed effects, both time-based and nuisance.
Nrandom
Number of total random effects, both time-based and nuisance, all grouped by subject.
Nsubject
Number of unique subjects (on which repeated measures are observed).
typet
A numeric vector of length equal to the number of treatments that contains the base distribution for each treatment. 1 = "car", 2 = "mvn", 3 = "ind".

Value

A list object containing quantile summaries for all sampled model parameters.

See Also

dpgrowmm, dpgrow