MCMC: Performs MCMC and returns needed values for dose-finding in a...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Performs MCMC and returns needed values for dose-finding in a list.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
MCMC(
  Y,
  I,
  Doses,
  Groups,
  T1,
  Target,
  Upper,
  Dose,
  meanmu,
  meanslope,
  MeanInts,
  MeanSlopes,
  varint,
  varbeta,
  phetero,
  Stopped,
  NumPat,
  SubRout,
  B
)

Arguments

Y

Vector containing observed event or censoring times.

I

Vector containing event indicators (1 if patient experiences an event for a patient).

Doses

Vector containing Doses of patients in trial.

Groups

Vector containing group assignment of patients, 0 is baseline group.

T1

Reference time for toxicity.

Target

Target cumulative toxicity probability vector at time T1.

Upper

Cutoff values used to determine if accrual in a subgroup should be suspended.

Dose

Vector containing the standardized doses considered.

meanmu

Prior mean for baseline intercept.

meanslope

Prior mean for baseline slope.

MeanInts

Vector of prior means for the group specific intercept parameters.

MeanSlopes

Vector of prior means for the group specific slope parameters.

varint

Prior variance for the intercept parameters.

varbeta

Prior variance for the slope parameters.

phetero

Prior probability of heterogeneous subgroups.

Stopped

Current vector of STOPPED groups

NumPat

Number of patients

SubRout

Parameter to specify subgroup borrowing/clustering. 0=No borrowing, 1=Borrowing but no clustering, 2=Borrowing and clustering.

B

Number of Iterations to run for MCMC

Value

A list of quantities needed for determining the next dose to enroll each subgroup.


SubTite documentation built on Sept. 15, 2021, 9:07 a.m.

Related to MCMC in SubTite...