GetPriors: Returns prior dose-specific means.

Description Usage Arguments Value Examples

View source: R/GetPriors.R

Description

Uses elicited efficacy and toxicity dose-specific parameters along with latent prior variance, dose-specific mean hypervariance and frailty variance to determine dose-specific prior means for efficacy and toxicity and prints the prior effective sample size associated with the specified prior parameters.

Usage

1
GetPriors(PROBST, PROBSE, Var, HypVar, tau, B)

Arguments

PROBST

Elicited prior toxicity probability at each dose.

PROBSE

Elicted prior efficacy probability at each dose.

Var

Latent parameter variance for normal probability of efficacy and toxicity.

HypVar

Hypervariance on dose specific mean efficacy and toxicity parameters.

tau

Frailty variance parameter.

B

Number of prior samples to draw for calculating ESS. Suggested values of ten thousand.

Value

A list contianing the vector of dose-specific efficacy probability prior mean parameters and the vector of dose-specific toxicity probability prior mean parameters.

Examples

1
2
3
4
5
6
7
8
library(mvtnorm)
PROBST=c(.05,.10,.15,.20,.30)
PROBSE=c(.2,.4,.6,.65,.7)
Var=1
HypVar=36
tau=1
B=100
Z=GetPriors(PROBST,PROBSE,Var,HypVar,tau,B)

UtilityFrailtyPH12 documentation built on May 2, 2019, 6:03 a.m.