Bookmark and Share

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

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

st: Loops in Mata

From   gsborker <[email protected]>
To   [email protected]
Subject   st: Loops in Mata
Date   Wed, 26 Jan 2011 02:08:54 -0800 (PST)


I am trying to do the following in mata


	for (i=1; i<=379; i++) {
		xi = st_data(.,"Pi") ;
		yi = (xi)' ;
		polyroots(yi) ;

where P* are (674x1) column vectors. I am trying to run the "polyroots"
command 379 times on (1x674) row vectors. This is not working and I'm
getting recurrent errors.

Thanks for your help in advance.

View this message in context:
Sent from the Statalist mailing list archive at
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index