Statalist


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

Re: st: Mata question


From   Danielle H Ferry <dferry@nber.org>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Mata question
Date   Mon, 24 Mar 2008 22:17:46 -0400

Thank you. You're a godsend.

On Mar 24, 2008, at 9:06 PM, Joseph Coveney wrote:

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/
*
*   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