Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
"Künzel Sven" <s.kuenzel@tu-braunschweig.de> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: foreach/forvalue-loop |

Date |
Sat, 13 Apr 2013 23:05:22 +0200 |

Dear Statalist,

Thanks for helping me. /*window t=-10 bis t=-6*/ gen t_test_window=1 if dif >=-10 & dif <=-6 & id==1

drop t_test_window /*window t=-5 bis t=-1*/ gen t_test_window=1 if dif >=-5 & dif <=-1 & id==1

drop t_test_window /*window t=0 bis t=1*/ gen t_test_window=1 if dif >=0 & dif <=1 & id==1

drop t_test_window /*window t=2 bis t=5*/ gen t_test_window=1 if dif >=2 & dif <=5 & id==1

drop t_test_window * * 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/

**Follow-Ups**:**st: RE: foreach/forvalue-loop***From:*"Modesto Escobar" <modesto@usal.es>

- Prev by Date:
**st: could this be done with tssmooth** - Next by Date:
**Re: st: Compute Z-score** - Previous by thread:
**st: could this be done with tssmooth** - Next by thread:
**st: RE: foreach/forvalue-loop** - Index(es):