website page counter

Stata Do File If Statement

The best Images

Stata Do File If Statement. When you tell stata to do the do file it will carry out all the commands in order. Log files can be opened by clicking on the file in your directory will use notepad by default or in any text editor.

Excel Import Export Stata
Excel Import Export Stata from www.stata.com

For this module we will focus on the variables make rep78 foreign mpg and price. You ll probably hear people refer to do files as programs all the time i do it and don t be confused if someone starts calling stata a program a subroutine. Generate byte cond7 condition1 condition2.

Let s use the auto data file.

Or by opening the do file in the do file editor and clicking the do current file button. The if command suffix is used to restrict on which data a command is run. Keep make rep78 foreign mpg price. When you tell stata to do the do file it will carry out all the commands in order.

close