Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: how to do a weighted transition matrix


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: how to do a weighted transition matrix
Date   Fri, 29 Apr 2011 17:06:46 +0100

More explanation would help. Where do the weights come from? Do they
weight the transitions? The earlier state? The later state? Are they
integers or not? What is your data structure? Which variables hold
which information? Do you expect a precise answer to a vague question?

At its easiest, this sounds like a transition matrix multiplied
elementwise by a weights matrix, so save the matrices independently
and do the multiplication in Mata.

Nick

On Fri, Apr 29, 2011 at 4:57 PM, > Nan from Montreal, a.k.a. Hey Sky
<heyskywalker@yahoo.com> wrote:

> I have to do a weighted transition matrix but it is not an option for the
> command xttrans.
>
> I have searched the archives but did not find any discussion about
> this question.
> did anyone experience this before and any (other) method to deal with it?

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index