11.07.2015 Views

[U] User's Guide

[U] User's Guide

[U] User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

322 [ U ] 21 Inputting dataAnother way of reading the data in pieces is to specify the if exp modifier. Say that your datacontained an equal number of males and females, coded as the variable sex (which you will read)being 0 or 1, respectively. You could type infile . . . if sex==0 to read the males. infile willread an observation, determine if sex is zero, and if not, throw the observation away. You could readjust the females by typing infile . . . if sex==1.If the dataset is really big, perhaps you need only a random sample of the data—you never intendedto analyze the entire dataset. Because infile and infix allow if exp, you could type infile. . . if runiform()

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!