- disProgObj
object of class disProg
- control
control object:
burnin
Number of burn in samples.
filter
Thinning parameter. If filter = 10
every 10th sample is after the burn in is returned.
sampleSize
Number of returned samples. Total
number of samples = burnin
+filter
*sampleSize
noOfHarmonics
Number of harmonics to use in the
modelling, i.e. \(L\) in (2.2) of Held et al (2006).
alpha_xi
Parameter \(\alpha_{\xi}\) of the hyperprior of the epidemic parameter \(\lambda\)
beta_xi
Parameter \(\beta_{\xi}\) of the hyperprior of the epidemic parameter \(\lambda\)
psiRWSigma
Starting value for the tuning of the variance of the random walk proposal for the overdispersion parameter \(\psi\).
alpha_psi
Parameter \(\alpha_{\psi}\) of the prior of the overdispersion parameter \(\psi\)
beta_psi
Parameter \(\beta_{\psi}\)
of the prior of the overdispersion parameter \(\psi\)
nu_trend
Adjust for a linear trend in the endemic
part? (default: FALSE
)
logFile
Base file name for the output files. The function writes three output files in the current working directory getwd()
. If logfile = "twins.log"
the results are stored in the three files twins.log
, twins.log2
and twins.log.acc
.
twins.log
contains the returned samples of the parameters \(\psi\), \(\gamma_{0}\), \(\gamma_{1}\), \(\gamma_{2}\), K, \(\xi_{\lambda}\) \(\lambda_{1},...,\lambda{n}\), the predictive distribution of the number of cases at time \(n+1\) and the deviance.
twins.log2
contains the sample means of the variables \(X_{t}, Y_{t}, \omega_{t}\) and the relative frequency of a changepoint at time t for t=1,...,n and the relative frequency of a predicted changepoint at time n+1.
twins.log.acc
contains the acceptance rates of \(\psi\), the changepoints and the endemic parameters \(\gamma_{0}\), \(\gamma_{1}\), \(\gamma_{2}\) in the third column and the variance of the random walk proposal for the update of the parameter \(\psi\) in the second column.