Statalist


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

st: AW: Finding the minimum of a variable


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: Finding the minimum of a variable
Date   Wed, 5 Aug 2009 14:50:57 +0200

<> 


http://www.stata.com/support/faqs/data/members.html



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von
[email protected]
Gesendet: Mittwoch, 5. August 2009 14:50
An: [email protected]
Betreff: st: Finding the minimum of a variable

Hello,

I have a "group" of four "subjects". For each "subject" i, I would like 
to fill the variable called "others_min_con" with the minimum of other 
three subjects' "con" in the "group" in a given "period", i.e., subject 
i's "con" should not be considered.

For example in a given period, in a certain group I have:
con[i]= 12, con[j]=23, con[k]= 24, con[l]=25,

then the variable "others_min_con" should be filled in with:

others_con_min[i]=23, others_con_min[j]=12, others_con_min[k]=12, 
others_con_min[l]=12

How can I do this? For each group, in each period?

Thank you very much for your help!
Ozgur

-- 
Dr. Özgür Gürerk

Lehrstuhl für Mikroökonomie & Laboratorium für experimentelle 
Wirtschaftsforschung
(Microeconomics & Laboratory for Experimental Economics)

Universität Erfurt, Nordhäuser Str. 63, D-99089 Erfurt

Tel: +49 361 7374561
Fax: +49 361 7374569
www.uni-erfurt.de/elab
--


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



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index