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: construct a loop
From
Nikolaos Pandis <[email protected]>
To
[email protected]
Subject
Re: st: construct a loop
Date
Sat, 19 Feb 2011 04:56:29 -0800 (PST)
Dear Daniel,
That did it!
Many thanks
Nick
--- On Sat, 2/19/11, Daniel Klein <[email protected]> wrote:
> From: Daniel Klein <[email protected]>
> Subject: Re: st: construct a loop
> To: [email protected]
> Date: Saturday, February 19, 2011, 2:29 PM
> Hi Nick,
>
> how about something like this:
>
> /*Exaple*/
>
> forval j = 1/3 {
> loc i = `j' - 1
> forval k = 0/`i' {
> stmh varX
> ,c(`j',`k')
> }
> }
> /*End*/
>
> Best
> Daniel
> --
> NEU: FreePhone - kostenlos mobil telefonieren und
> surfen!
>
> Jetzt informieren: http://www.gmx.net/de/go/freephone
> *
> * 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/