Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: every n-th individual


From   Henrik Stovring <[email protected]>
To   [email protected]
Subject   Re: st: every n-th individual
Date   Thu, 27 Oct 2005 15:10:17 +0200

Try this

reg y x if mod(id, 5) == 0

Dirk Nachbar wrote:
> Hi
> 
> I want to run a regression for each fifth indivdiual
> 
> reg y x if id/5==integer
> 
> obviously this does not work, so do you have any suggestions?
> 
> Dirk Nachbar
> 
> Assistant Economist
> 
> Pensim2
> 
> Department for Work and Pensions
> 
> Level 4, The Adelphi
> 
> 1-11 John Adam St
> 
> WC2N 6HT London
> 
> 020 796 28531
> **********************************************************************
> This document is strictly confidential and is intended only for use by
> the addressee. If you are not the intended recipient, any disclosure,
> copying, distribution or other action taken in reliance of the
> information contained in this e-mail is strictly prohibited. Any views
> expressed by the sender of this message are not necessarily those of the
> Department for Work and Pensions. If you have received this transmission
> in error, please use the reply function to tell us and then permanently
> delete what you have received. Please note: Incoming and outgoing e-mail
> messages are routinely monitored for compliance with our policy on the
> use of electronic communications.
> **********************************************************************
> The original of this email was scanned for viruses by the Government
> Secure Intranet (GSi) virus scanning service supplied exclusively by
> Energis in partnership with MessageLabs.
> 
> On leaving the GSi this email was certified virus-free
> 

-- 
Henrik St�vring, PhD

Research Unit of General Practice
University of Southern Denmark
J.B. Winsl�ws Vej 9
DK-5000 Odense C
Phone: (+45) 6550 3692
Fax: (+45) 6591 8296
email: [email protected]
Homepage: http://www.biostat.sdu.dk/~stovring
------------------------------------------------------------------
*
*   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