Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: matrix in mata


From   Christophe Kolodziejczyk <ck.statalist@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: matrix in mata
Date   Fri, 27 Jan 2012 15:16:20 +0100

Can you show us a log file where we can see the matrices Z,Y and X? I
cannot see anything wrong in your code, so I guess it has something to
do with the matrices themselves

Christophe

2012/1/27 Mintewab Bezabih <Mintewab.Bezabih@economics.gu.se>:
> Dear Statalisters,
>
>
> I have done the following mata procedure to do an element by element division in mata.
>
>
> mata:
>  Z = st_matrix("d")
>  Y = st_matrix("e")
> end
> mata:
>  X=Y:/Z
>  X
> end
>
> However the results I get are identical values for each column in x. The figures in X and Y look so different that it is not possible to get identical values. There must be something that I did wrong in the coding. I appreciate it very much if anyone points that out to me
>
> regards
> minti
> *
> *   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/

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index