GetPriorsSPSO: Returns prior dose-specific means and prior ESS for the SPSO...

Description Usage Arguments Value Examples

View source: R/GetPriorsSPSO.R

Description

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

Usage

1
GetPriorsSPSO(PROBST, PROBSE, tau, Var, HypVar, PGLOBAL)

Arguments

PROBST

Elicited prior toxicity probability at each dose.

PROBSE

Elicted prior efficacy probability at each dose.

tau

Frailty variance parameter.

Var

Latent parameter variance for normal probability of efficacy and toxicity.

HypVar

Hypervariance on dose specific mean efficacy and toxicity parameters.

PGLOBAL

Global monotonicity probability of dose-efficacy curve.

Value

A list contianing (1) the prior effective sample size, (2) the vector of dose-specific efficacy probability prior mean parameters and, (3) the vector of dose-specific toxicity probability prior mean parameters.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library(mvtnorm)
##Elicited probabilities of toxicity
PROBST=c(.05,.10,.15,.20,.30)
##Elicited probabilities of efficacy
PROBSE=c(.2,.4,.6,.65,.7)
##Sigma_0
Var=1
##Sigma_mu
HypVar=16
##Frailty Variance
tau=1
##Global Monotonicity Probability
PGLOBAL=.1
Z=GetPriorsSPSO(PROBST,PROBSE,tau,Var,HypVar,PGLOBAL)
Z

Phase12Compare documentation built on July 31, 2020, 5:07 p.m.