vtStan: Call STAN models for MCMC sampling

View source: R/visit_stan.R

vtStanR Documentation

Call STAN models for MCMC sampling

Description

Call STAN to draw posterior samples of the joint distribution of immunogenicity rate and toxicity risk for parametric and parametric+ model

Usage

vtStan(obs.y, priors, model = 0, iter = 4000, chains = 4,
  warmup = 2000, ...)

Arguments

obs.y

Observed data matrix with l rows and 4 columns. Row k in the matrix represents the observed data from dose level k. The columns are

  • column 1: number of patient with no DLT, no immune response

  • column 2: number of patient with no DLT, immune response

  • column 3: number of patient with DLT, no immune response

  • column 4: number of patient with DLT, immune response

priors

A class VTPRIOR object created by vtPriorPar for PARA and PARA+ model.

model

option of the probability models:

0:

parametric model

1:

parametric+ model

See visit for details.

iter

STAN option: number of iterations

chains

STAN option: number of chains

warmup

STAN option: number of warmup

...

additional parameters for package rstan's sampling method. These options include iter, warmup, thin, algorithm. See rstan::sampling for details.

Value

A rstan object that contains the posterior sampling results


visit documentation built on Aug. 9, 2023, 5:08 p.m.