updateS {NetworkChange}R Documentation

Update latent states

Description

Update latent states

Usage

updateS(
  iter,
  s,
  V,
  m,
  Zb,
  Zt,
  Time,
  MU.state,
  P,
  s2,
  N.upper.tri,
  random.perturb
)

Arguments

iter

iteration number

s

the most recent latent states

V

Network generation rules

m

The number of breaks

Zb

Z - b

Zt

Z stacked by time

Time

The length of time

MU.state

UVU for each state

P

Transition matrix

s2

error variance

N.upper.tri

The number of upper triangular elements

random.perturb

If random.perturb = TRUE and a single state observation is found, the latent state is randomly selected by equal weights.

Value

A list of vectors containing latent states and their probabilities


[Package NetworkChange version 0.8 Index]