construct transtion matrix from trajectory

msm.transitionMatrix(traj, lag, row.normalized = FALSE)

Arguments

traj
State trajectory, either encoded as vector or a filename.
lag
time lag to use for counting jumps: traj[i] -> traj[i+lag].
row.normalized
if TRUE, transition matrix will be row-normalized, encoding jumps by from(row) to(col). Else (default) matrix is column-normalized encoding jumps from(col) to(row).