[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: mata: interaction of column matrix
From
"Abdel Rahmen El Lahga" <[email protected]>
To
[email protected]
Subject
st: mata: interaction of column matrix
Date
Thu, 18 Oct 2007 13:12:36 +0200
under mata (stata 9.2) I have the following matrices X=a,b,c and Y=d,e.
I would like to create a new matrix Z=(a:*d, a:*e, b:*d, b:*e, c:*d,
c:*e) which is an interaction betwenn X and Y's columns.
Note that in my old Gauss code this task is easy to ny typing
Z=X*~Y
Any help?
--
AbdelRahmen El Lahga
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |