The cell, row and col options display the cell, row and column percentages. The m option is used to display the number of missing values for the specified variables. List originstate deptime depdelay in 1000/1005 It allows users to specify the variables and observations to print. ![]() List can be used to print data values in the results window. Codebook gives a frequency table for character variables, basic statistics (mean, std dev etc) for numeric variables and the number of missing observations for both types of variables. You can check the number of rows and the number of observations in the properties window.ĭescribe enumerates the list variables, their data type and their labels. Once you import the dataset, the variables are listed in the variables window. Every time you import a dataset, it is good practice to add the clear option to clear any dataset that is loaded in memory. The use command can be used to import a Stata dataset. You are advised to save all the datasets from this tutorial in the same folder and to make this folder the working directory using the cd command.ĭir and ls both show the content of the current directory. Use cd to change the working directory to the location of your datasets. The working directory is the home directory that Stata works from by default. Help enter_command_here returns the help file for a specific commandĬlear removes the dataset that is currently loaded in memory so that you can import a new dataset Search enter_topic_here returns the list of commands associated with a topic The results will always appear in the results window. Once you type your code in the do-file, you can run it by highlighting the line of code and clicking on the execute icon (the play button) in the top-right corner of the do-file window. To open a do-file editor, go to the File menu, then go to New and select Do-file. Or you can type Stata code in the do-file editor. You can type Stata code in the command window and submit the code by hitting the ENTER/return key. ![]() You can use point-and-click to execute tasks using the dialogs from the Data, Graphics and Statistics menus. There are three ways to run tasks in Stata. If you need assistance, fill out the support request form. The link to the recording of this workshop can be found here. The other two datasets used are fabricated datasets created for the purpose of this guide. ![]() It contains the US domestic flights in January 2020. The main dataset used is the flights dataset. This guide has been created using Stata IC version 16.1.
0 Comments
Leave a Reply. |