An orthogonal comment on a small matter of efficiency and style:
It is never necessary to fire up a command (here -describe-) just to
find out the number of observations. Stata already knows what that is.
forval m = 1(1000)`=_N' {
forval m = 1(1000)`c(N)' {
are alternatives.
Nick
[email protected]
Johannes Geyer
You could work with a loop and -in-:
************************************
gen x = .
qui des
forvalues m = 1(1000)`r(N)' {
replace x = something in `m'
}
************************************
Note that this assigns a value to observation 1, 1001, 2001, ... , last
observation.
*
* 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/