name delobs 'Deleting some observations permanently from a dataset' ; ? ? There are no built-in features in TSP for automatically deleting ? observations and renumbering (i.e. MERGE) at the moment. ? SORT(ALL) may be helpful to reorder one or both datasets. ? If you can construct a special sorting variable which will get things ? in the right order, and also sort the extra observations to the "top" of ? the SMPL, then you can truncate the series to get rid of the extra obs. ? For example, say you want to sort by FIRMID, and also delete the firms ? numbered 100, 200, and 300: ? TSP 4.2B (October 1994) ? Author: Clint Cummins ? MSD(NOPRINT) FIRMID; ? TO CALCULATE MAX(FIRMID) SELECT FIRMID=100 .OR. FIRMID=200 .OR. FIRMID=300; FIRMID = @MAX+1; SET NEWNOB = @NOB; SELECT 1; SORT(ALL) FIRMID; SMPL 1,NEWNOB; NOREPL; ? This makes TSP truncate any revised series above NEWNOB. DOT FIRMID X1 X2 ... ; ? List all variables in dataset here GENR . = .; ENDDOT;