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]
AW: st: RE: Deleting similar observations
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
AW: st: RE: Deleting similar observations
Date
Wed, 16 Jun 2010 09:25:08 +0200
<>
That makes me think you have an old version of Stata. Note you are meant to
disclose any version other than 11.1.
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von George Chioran
Gesendet: Mittwoch, 16. Juni 2010 01:12
An: [email protected]
Betreff: Re: st: RE: Deleting similar observations
Dear Martin,
I try this, but I keep getting the message: "time-series operators not
allowed".
Best,
George
----- Original Message ----
From: Martin Weiss <[email protected]>
To: [email protected]
Sent: Wed, June 16, 2010 1:01:26 AM
Subject: st: RE: Deleting similar observations
<>
So Account 7 should also be -drop-ped, I guess:
***********
clear*
inp byte Account str1 Buy_sell
2 b
2 b
2 s
2 b
5 s
5 s
5 s
5 s
7 s
7 s
end
list, noo
bys Account (Buy_sell): drop if Buy_sell[1]==Buy_sell[_N]
list, noo
***********
HTH
Martin
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of George Chioran
Sent: Mittwoch, 16. Juni 2010 00:53
To: [email protected]
Subject: st: Deleting similar observations
Dear statlisters,
I have a database that
looks like this:
Account Buy sell
2 b
2 b
2 s
2 b
5 s
5 s
5 s
5 s
7 s
7 s
Taken per account, I would like to know if
there is a way to delete all the observations that have the same letter in
the Buy sell variable. In my case this would delete all observations from
account 5 since they are all only sell.
Thank you,
George
*
* 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/
*
* 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/