Stata Help

Inputting Data

Now we're going to input some data. The easiest way to input data is using the input command. In this case, you will enter three variables named sex dog and cat. The values are as follows in the order sex, dog, cat:

  1. 0 3 4
  2. 1 4 2
  3. 1 1 5
  4. 0 5 2
  5. 0 3 3
  6. 1 2 2
  7. 0 3 1
  8. 1 2 4
  9. 0 3 3
  10. 1 5 5

To input this data, the command is input followed by the desired variable names.

Command window

Now enter each line of data followed by the enter key. Don't forget to leave spaces in between each value.

Value inputs

After you hit enter, each line should show up in the "Results" window. When you have entered all 10 lines use the command end.

Input results

Forward to Manipulating Your Data

Back to Opening STATA