The different parts of an MCMCState are described in MCMCStateVector. posK returns the osition of the number of shifts (this is always equal to 1). See the section functions for the others.

posK(s, ctx = NULL)

posn(s, ctx = NULL)

posl(s, ctx = NULL)

posr(s, ctx = NULL)

posm(s, ctx = NULL)

posv(s, ctx = NULL)

Arguments

s

a MCMCState or a MCMCStateVector object.

ctx

a MCMCContext object. This is needed only if s is MCMCStateVector object.

Value

an integer vector.

Functions

  • posn: Positions of the shift nodes;

  • posl: Positions of the offsets of the shift-points in tip-ward direction relative to the beginnings of the branches leading to shift nodes;

  • posr: Position of the regime id's for each shift node;

  • posm: Positions of the model type id's for each regime;

  • posv: Positions of the model parameters.

See also