A tna object representing the model. Its weights element is a
square matrix with one row and column per state, holding the
aggregated weight of each pair of states (zero when the pair does not
occur). The inits and data elements are NULL.
Arguments
x
A data.frame or a matrix with three columns: the first two
representing the states and the third giving the weights.
aggregate
A function to use for aggregating the weights. The
default is sum().