Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

updateS

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


NetworkChange

Bayesian Package for Network Changepoint Analysis

v0.7
GPL-3
Authors
Jong Hee Park [aut,cre], Yunkyu Sohn [aut]
Initial release
2020-07-09 14:17:31 UTC

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.