Statalist The Stata Listserver


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

Re: st: version 5.0 to version 9.2


From   "Abdel Rahmen El Lahga" <[email protected]>
To   [email protected]
Subject   Re: st: version 5.0 to version 9.2
Date   Fri, 22 Jun 2007 01:25:45 +0200

inspect `2'
local r=`r(N_unique)' - 1 // maxt is ignored
foreach v of numlist 1/`r' {
matrix C[`v',1]=c`v'
}
ltype(numeric) is to tell Stata that the cooresponding list is numeric
not varlist
nostop tell Stata to not stop the loop even if there are an error but
i don't know to deal with this option
HTH
AbdelRahmen El Lahga
2007/6/22, Raphael Fraser <[email protected]>:
An additional question:

inspect `2'
local maxt=`r(N_unique)'
local r=`maxt'-1
for 1-`r', ltype(numeric) nostop: matrix C[@,1]=c@  /* <-- Convert to
Stata 9 code */
matrix list C


Regards,
Raphael
*
*   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/


--
AbdelRahmen El Lahga
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index