GetPriorsSPSO {Phase12Compare} | R Documentation |
Returns prior dose-specific means and prior ESS for the SPSO model.
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
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
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