Upload
jetrei-benedick-benito
View
217
Download
0
Embed Size (px)
Citation preview
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 1/112
By Jet Benito
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 2/112
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 3/112
A Statistical Analysis software designed for
researchers of different fields
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 4/112
• Econometrics,
• Social Sciences, and
• Biostatistics and Medicine
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 5/112
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 6/112
A software for conducting Statistical Analysis,
ideally on Panel Data
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 7/112
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 8/112
Contains the
Point and ClickCommands of Stata
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 9/112
Displays Outputsand Errors
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 10/112
Commands andCodes are typedhere
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 11/112
Records of previouscommands arelogged here
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 12/112
Shows the variablesin the dataset
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 13/112
Shows theproperties of aselected variable
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 14/112
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 15/112
In the menu bar,
Select “Data”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 16/112
Select
“Data Editor”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 17/112
And Select
“Data Editor (Edit)”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 18/112
Alternatively,
Press this Button
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 19/112
• Manually Input, or
• Import a dataset
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 20/112
Manual Inputting will not be covered
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 21/112
To import a dataset from an external source
(i.e.: Excel),
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 22/112
Copy the Dataset
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 23/112
In the Data Editor,
select the upper- most
left cell
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 24/112
Press “Edit”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 25/112
Press Paste
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 26/112
A window with concerns about the first row will open
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 27/112
Press this if itcontains thenames of thevariables
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 28/112
Press this if it ispart of the
dataset
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 29/112
In this example,it contains the
variable names
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 30/112
In the menu bar,Select “File”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 31/112
Select “Import”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 32/112
Select “Excel spreadsheet”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 33/112
Press “Browse” andselect your file
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 34/112
Select the worksheetwhere the data is found
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 35/112
Select the range of thedata to be imported
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 36/112
Enable this if the first rowcontains variable names
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 37/112
Be sure to check
if the dataset isread correctly
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 38/112
Press “OK” whenthe data is readyto be imported
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 39/112
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 40/112
Press “File”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 41/112
Press “Save As…”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 42/112
Press this button
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 43/112
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 44/112
Press “File”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 45/112
Press “Open”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 46/112
Press this button
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 47/112
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 48/112
Press “Data”
Using the menu
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 49/112
Select
“Data Utilities”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 50/112
Select
“Label Utilities”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 51/112
Select
“Label Variable”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 52/112
Select theVariable
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 53/112
Input the Label
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 54/112
Press “OK”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 55/112
Using the Properties Window
Select the
variable
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 56/112
Input the labelhere
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 57/112
• For Categorical Variables
(i.e.: True or False)
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 58/112
The Variable ALI_1 has two values:
1 or 0
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 59/112
Press “Data”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 60/112
Select
“Variables Manager”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 61/112
Select theVariable
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 62/112
Press“Manage…”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 63/112
Press
“Create Label”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 64/112
Input the Value
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 65/112
Assign a Labelfor the value
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 66/112
Press “Add”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 67/112
The New Label willbe registered here
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 68/112
Rinse and Repeatfor all the Values
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 69/112
Assign a name tothe Value Label
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 70/112
Press “OK”
when done
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 71/112
Returning to thevariables manager,press the down arrow
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 72/112
Select theNewly CreatedValue Label
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 73/112
Press “Apply”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 74/112
The Value Labelwill be assigned
to the variable
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 75/112
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 76/112
Generate Summary Statistics
(i.e.: Mean, Standard Deviation, Range)
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 77/112
Create Frequency Tables (especially for Categorical
Variables)
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 78/112
Press “Statistics”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 79/112
Select “Summaries,tables, and test”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 80/112
Select “Summary anddescriptive statistics”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 81/112
Select
“Summary statistics”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 82/112
Enter theVariables here
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 83/112
Choose “Standard display”for summary statistics
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 84/112
Press “OK”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 85/112
The Table will be displayedin the Results Window
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 86/112
Press “Statistics”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 87/112
Select “Summaries,tables, and test”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 88/112
Select “Frequency tables”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 89/112
Select
“Multiple one- way tables”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 90/112
Enter theVariables here
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 91/112
Press “OK”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 92/112
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 93/112
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 94/112
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 95/112
Select “Graphics”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 96/112
Choose the kind of
graph that will suityour needs
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 97/112
Select
“Twoway graph”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 98/112
Press “Create…”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 99/112
Select “Line”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 100/112
Select your variable
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 101/112
Select yourtime variable
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 102/112
Press “Accept”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 103/112
Press “OK”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 104/112
A new window will opento generate the graph
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 105/112
To edit the graph,Press this button
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 106/112
Double- click any partof the graph to edit it
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 107/112
To save your graph,press “File”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 108/112
Select “Save As”
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 109/112
Press this to opena list of formats
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 110/112
And choose yourdesired format
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 111/112
Press this button tostop editing mode
8/16/2019 Jetrei_Benito_How to Use Stata
http://slidepdf.com/reader/full/jetreibenitohow-to-use-stata 112/112