Date: Fri, 14 Sep 2007 21:06:17 -0000
Reply-To: RodrigoLopezAlsina@GMAIL.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: RodrigoLopezAlsina@GMAIL.COM
Organization: http://groups.google.com
Subject: Proc Score for matrix multiplication (for Markov Chain)
Content-Type: text/plain; charset="iso-8859-1"
Hi,
want to use Proc score to multipy two matrixes in SAS.
I have one table that has the probability of transition from one state
to another state in this format:
Start End Prob
1 1 x
1 2 x
2 1 x
2 2 x
And I have another table that contains my starting state
distributions.
Person State StartDist EndDist
1 1 .2 x1
1 2 .8 x2
2 1 .2 x1
2 2 .8 x2
I want to get the ending state distributions for each person for each
state. I think I can do this with proc score. Does anyone have info on
this? or is there an easier way? Someone suggested using PROC IML.
Thanks