Skip to contents

In the usual model a subject's level sits in random manifest intercepts (MANIFESTMEANS), so the latent state is the subject's deviation from it. That is the same model, for linear dynamics, as one whose latent process carries the level itself through a random latent intercept (CINT) – but not once the dynamics depend on the state: a term that reads the state reads the deviation in the first, the level in the second. Persistence that differs near the bottom of a scale, or innovations that grow with how high a subject usually is, are dependence on the level, which state dependence written into the first model cannot express and its tests (ctScoreTest) cannot see; ctScoreTest(tests = 'level') asks about it between subjects.

Usage

ctModelLatentLevel(ctm, latents = NULL)

Arguments

ctm

A model from ctModel(type = 'ct').

latents

Which latents, by name or position; by default every one.

Value

The model, with the latents whose level moved in attribute moved.

Details

For each latent in latents with a marker – an indicator whose loading on it is fixed at 1 and on every other latent at 0 – whose MANIFESTMEANS intercept varies over subjects, the intercept's variation moves into the latent: CINT becomes a free parameter, cint_ and the latent's name, with the intercept's random effect and predictor effects; the marker's intercept is fixed at 0; and the latent's initial mean is its stationary one (T0MEANS 'stationary'), so a subject starts at their own level. The other indicators' intercepts are left as they are, fixed or varying. A latent without such a marker, or whose CINT is already free, is left as it is, with a message.

The level then rides on the dynamics: CINT is the level times the rate of return to it, so a level's random effect is no longer one an indicator's filter can integrate on its own, and a fit on the Laplace route carries it as a coordinate.

See also

ctScoreTest for the tests of level dependence.

Examples

m <- ctModel(type = 'ct', manifestNames = c('Y1', 'Y2'),
  latentNames = c('eta1', 'eta2'), LAMBDA = diag(2), CINT = matrix(0, 2),
  MANIFESTMEANS = matrix(c('mm1', 'mm2'), 2))
lm <- ctModelLatentLevel(m)
attr(lm, 'moved')
p <- lm$pars
p[p$matrix %in% c('CINT', 'MANIFESTMEANS', 'T0MEANS'), c('matrix', 'row', 'param',
  'value', 'indvarying')]