Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: Mata - extracting various vectors of different sizes in one loop


From   nick bungy <nickbungystata@hotmail.co.uk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Mata - extracting various vectors of different sizes in one loop
Date   Fri, 5 Apr 2013 11:22:43 +0100

Thank you for the replies. I intend to get to grips with mata more and try to understand and replicate your thoughts and examples
For interest, I implemented a quick (but clumsy) fix this morning which simply restricts each vector by the 10km limit, counts the number of rows and inputs this into a variable Count. I then run a second loop which cuts down each vector to a dimension of x, where x=max(Count). When brought into Stata, it's then a case of setting all irrelevant aspects to missing. 		 	   		  
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index