Algorithm implemented according to Engelhardt et al. 2017. The function can be replaced by an user defined version if necessary.
LOGLIKELIHOOD_func(
pars,
Step,
OBSERVATIONS,
x_0,
parameters,
EPS_inner,
INPUT,
D,
GIBBS_PAR,
k,
MU_JUMP,
SIGMA_JUMP,
eps_new,
objectivfunc
)
sampled hidden influence for state k (w_new) at time tn+1
time step of the sample algorithm corresponding to the given vector of time points
observed values at the given time step/point
initial values at the given time step/point
model parameters estimates
current hidden inputs at time tn
discrete input function e.g. stimuli
diagonal weight matrix of the current Gibbs step
GIBBS_PAR[["BETA"]] and GIBBS_PAR[["ALPHA"]]; prespecified or calculated vector of state weights
number state corresponding to the given hidden influence (w_new)
mean of the normal distributed proposal distribution
variance of the normal distributed proposal distribution
current sample vector of the hidden influences (including all states)
link function to match observations with modeled states
returns the log-likelihood for two given hidden inputs