Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Mata question


From   "Joseph Coveney" <jcoveney@bigplanet.com>
To   "Statalist" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Mata question
Date   Tue, 25 Mar 2008 10:06:32 +0900

Danielle H Ferry wrote:

Is there something in Mata like J() that creates a regular matrix as
opposed to a symmetric matrix? In other words, I'd like to create a
mXn matrix filled w/ empty values that I will fill in later.

--------------------------------------------------------------------------------

Yes.

Joseph Coveney


. mata:

: m = 3

: n = 4

: mXn = J(m, n, .)

: mXn
      1   2   3   4
   +-----------------+
 1 |  .   .   .   .  |
 2 |  .   .   .   .  |
 3 |  .   .   .   .  |
   +-----------------+

: end



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index