replaceZinitNonFiniteLogDensLastStep: replaceZinitNonFiniteLogDensLastStep

Description Usage Arguments Value Author(s) See Also

View source: R/initZ.R

Description

Replaces states of last step, i.e. column of Zinit that yield non-finite rLogDen by sampling other states.

Usage

1
2
replaceZinitNonFiniteLogDensLastStep(Zinit, fLogDen, nPop = 1, 
    iStep = nrow(Zinit), maxSteps = 16, ...)

Arguments

Zinit

initial states see InitDEMCzsp

fLogDen

the logDen Function

nPop

number of populations. States are only choosen from same population

iStep

the step for which to replace nonfinite yielding parameters.

maxSteps

maximum number of iterations (when last row was replaced by another row yielding non-finite loglik)

...

arguments to twCalcLogDenPar

Value

list with components

Zinit

argument Zinit with some states in last row replaced by other states from Zinit.

rLogDen

numeric vector: results of twCalcLogDenPar for last row for all chains

logDenComp

numeric matrix: results of twCalcLogDenPar for last row for all chains

Author(s)

Thomas Wutzler

See Also

initZtwDEMCNormal


twDEMC documentation built on May 31, 2017, 3:44 a.m.