Create Initial Parameter Values for the MuSyC Model
MuSyC_init.RdInitial values for the MuSyC model
Usage
MuSyC_init(
logE0 = function() stats::runif(n = 1, min = log(0.4), max = log(0.6)),
logE1 = function() stats::runif(n = 1, min = log(0.4), max = log(0.6)),
logC1 = function() stats::runif(n = 1, min = -0.2, max = 0.2),
h1 = function() stats::runif(n = 1, min = 3, max = 5),
logE2 = function() stats::runif(n = 1, min = log(0.4), max = log(0.6)),
logC2 = function() stats::runif(n = 1, min = -0.2, max = 0.2),
h2 = function() stats::runif(n = 1, min = 3, max = 5),
logE3 = function() stats::runif(n = 1, min = log(0.4), max = log(0.6)),
logalpha = function() stats::runif(n = 1, min = -0.2, max = 0.2),
...
)Arguments
- logE0
numericor function returningarrayof length1. Initial value for thelogE0parameter. Default:log(0.5)- logE1
numericor function returning array of length 1. Initial value for thelogE1parameter. Default: log(0.5)- logC1
numericor function returning array of length 1. Initial value for thelogC1parameter. Default:0 = log(1)- h1
numericor function returning array of length 1. Initial value for theh1parameter. Default:4 = MuSyC_si_to_hi(si=1, Ci=1, E0=1, Ei=0.0)the exponent for treatment1corresponding to a slope of1- logE2
numericor function returning array of length1. Initial value for thelogE2parameter. Default:log(0.5)- logC2
numericor function returning array of length1. Initial value for thelogC2parameter. Default:0 = log(1)- h2
numericor function returning array of length1. Initial value for theh2parameter. Default:4 = MuSyC_si_to_hi(si=1, Ci=1, E0=1, Ei=0.0)the exponent for treatment1corresponding to a slope of1- logE3
numericor function returning array of length 1. Initial value for thelogE3parameter. Default:log(0.5)- logalpha
numericor function returning array of length 1. Initial value for thelogalphaparameter. Default:0 = log(1)- ...
additional parameter initialization. Each named argument should be a function that returns a
numericorarraydepending on the dimension of the parameter, seerstan_default_init()to use the rstan default init.
Examples
if (FALSE) { # \dontrun{
# default prior and init for MuSyC Model
prior <- BayesPharma::MuSyC_prior()
init <- BayesPharma::MuSyC_init()
# Set prior and init for MuSyC model where both treatment 1 and treatment 2
# are assumed to be full inhibitors
BayesPharma::MuSyC_prior(logE0 = 0, E1 = -Inf, E2 = -Inf, E3 = -Inf)
BayesPharma::MuSyC_init(E0 = 1, E1 = -Inf, E2 = -Inf, E3 = -Inf)
} # }