Computing prediction for each sample, recomputing cumulative history and uses fitted parameter values.
predict_samples(
family,
fixedN,
randomN,
lmN,
istate,
duration,
is_used,
run_start,
session_tmean,
irandom,
fixed,
tau_ind,
mixed_state_ind,
history_init,
a,
bH,
bF,
sigma
)
NumericMatrix with predicted durations for each sample.
int, distribution family: gamma (1), lognormal(2), or normal (3).
int, number of fixed parameters (>= 0).
int, number of random factors (>= 1).
int, number of linear models (>= 1).
IntegerVector, zero-based perceptual state 0 or 1, 2 is mixed state.
DoubleVector, duration of a dominance phase.
IntegerVector, whether dominance phase is used for prediction (1) or not (0).
IntegerVector, 1 whenever a new run starts.
DoubleVector, average dominance phase duration.
IntegerVector, zero-based index of a random effect.
NumericMatrix, matrix with fixed effect values.
NumericMatrix, matrix with samples of tau for each random level.
NumericMatrix, matrix with samples of mixed_state for each random level.
DoubleVector, Initial values of history for a run
NumericMatrix, matrix with samples of a (intercept) for each random level.
NumericMatrix, matrix with sample of bH for each linear model and random level.
NumericMatrix, matrix with sample of bF for each linear model and fixed factor.
DoubleVector, samples of sigma.