help mktrpr

Title

maketrpr -- Create a matrix containing transition rates from sequences

Syntax

maketrpr varlist (min=2) , options [option]

options

Matrix
MATrix(matname) store the
transition rates in matname. Will be
created or overwritten.

Moving average
MA(int) Calculate a moving average over int+1+int periods. Defaults to 3.

Description

maketrpr takes a set of sequences described by varlist
in wide format and creates an n by (n times t) matrix where each n by n
section contains the smoothed transition rates for the corresponding
time period. It uses tssmooth to create the smoothed rates, defaulting
to a 3-unit look-head and look-back (i.e., a 7-wide moving average).
If the number of states is 4 and there are 10 periods, it
generates a (4x(10-1))x4 or 36x4 matrix, where T[1..4,1..4] contains the transition
rates for time 1-2, T[5..8,1..4] for time 2-3 and so on.

This is essentially a utility program, and is used by dynhamming and
trprgr.

Author

Brendan Halpin, brendan.halpin@ul.ie

Examples

. maketrpr mon1-mon36, mat(trp)

. matrix list trp