Command Reference : Command Reference
Contract the active workfile page according to the specified sample.
pagecontract smpl_spec
where smpl_spec is a sample specification. Contraction removes observations not in specified sample from the active workfile page. Note that since this operation is performed in place, you may wish to backup your original page (see pagecopy) prior to contracting.
pagecontract if income<50000 and race=2
removes all observations with INCOME values greater than or equal to 50000 and RACE not equal to 2.
pagecontract 1920 1940 1945 2000
removes observations for the years 1941 to 1944.
See “Contracting a Workfile” for discussion.
See also pagecopy.