Create Initial Parameter Values for the MuSyC Model
MuSyC_init.Rd
Initial 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
numeric
or function returningarray
of length1
. Initial value for thelogE0
parameter. Default:log(0.5)
- logE1
numeric
or function returning array of length 1. Initial value for thelogE1
parameter. Default: log(0.5)- logC1
numeric
or function returning array of length 1. Initial value for thelogC1
parameter. Default:0 = log(1)
- h1
numeric
or function returning array of length 1. Initial value for theh1
parameter. Default:4 = MuSyC_si_to_hi(si=1, Ci=1, E0=1, Ei=0.0)
the exponent for treatment1
corresponding to a slope of1
- logE2
numeric
or function returning array of length1
. Initial value for thelogE2
parameter. Default:log(0.5)
- logC2
numeric
or function returning array of length1
. Initial value for thelogC2
parameter. Default:0 = log(1)
- h2
numeric
or function returning array of length1
. Initial value for theh2
parameter. Default:4 = MuSyC_si_to_hi(si=1, Ci=1, E0=1, Ei=0.0)
the exponent for treatment1
corresponding to a slope of1
- logE3
numeric
or function returning array of length 1. Initial value for thelogE3
parameter. Default:log(0.5)
- logalpha
numeric
or function returning array of length 1. Initial value for thelogalpha
parameter. Default:0 = log(1)
- ...
additional parameter initialization. Each named argument should be a function that returns a
numeric
orarray
depending 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)
} # }