vtPost | R Documentation |
Call STAN to draw posterior samples of the joint distribution of immunogenicity rate and toxicity risk
vtPost(obs.y, prob.mdl = c("NONPARA", "NONPARA+", "PARA", "PARA+"),
priors = NULL, ..., nsmp = 4000, prior.const = 0.5)
obs.y |
Observed data matrix with
|
prob.mdl |
Option of the probability models:
Default value is |
priors |
A class |
... |
additional parameters for package rstan's sampling method. These
options include |
nsmp |
number of iterations |
prior.const |
Specify |
A class VTPOST
matrix of posterior samples with nsmp
rows and 4 columns. Columns 1-4 correspond to\theta^{(l)}_{00},
\theta^{(l)}_{01}, \theta^{(l)}_{10}, \theta^{(l)}_{11}
. See
visit
for details about \theta
's.
obs.y <- rbind(c(5, 2, 0, 0), c(3, 4, 0, 0), c(1, 6, 0, 0))
prior <- vtPriorPar(prior.y = NULL, tau = c(0.1, 0.3, 0.6), sdalpha=10, sdrho=10, vtheta=NULL)
rst.post <- vtPost(obs.y, priors = prior, warmup = 100, prob.mdl = "PARA", nsmp = 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.