Presentation is loading. Please wait.

Presentation is loading. Please wait.

Getting started with Stata

Similar presentations


Presentation on theme: "Getting started with Stata"— Presentation transcript:

1 Getting started with Stata
September 2017 Kine Josefine Aurland-Bredesen Norwegian University of Life Sciences

2 Getting started with Stata
Four hours. 2 x 45 minutes with lecture. 2 x 45 minutes of exercise solving. Hands on from the beginning. No questions are stupid! Stata can be hard. Learning objectives Familiarize yourself with the Stata interface Get data in and out of Stata Compute new variables and transformations Compute very basic statistics and construct of graphs Learn to use a do-file Where to find help when needed Norwegian University of Life Sciences

3 http://arken.nmbu.no/~kiau/Stata Webpage Here you can find:
Datasets we use today Exercise Set for today Dummy do-file Cheat-sheet with Stata code and useful information Other useful resources for Stata Norwegian University of Life Sciences

4 Practice using Stata and avoid..
Norwegian University of Life Sciences

5 GUI: Graphical User Interface
Norwegian University of Life Sciences

6 Graphical user interface
Result window Variable window Command review window Command window (write commands here) Norwegian University of Life Sciences

7 command varlist, options
Syntax command varlist, options Syntax is case sensitive type help name_of_command if you need help Norwegian University of Life Sciences

8 Syntax: Common Logical > Greather than < Less than >=
Greather than or equal <= Less than or equal == Equal != Not equal ~= Arithmetic + Addition - Subtraction * Multiplication / Division ^ Power ( ) brackets Numeric and string & and | or ! not ~ Mathematical functions Exp() Exponential function Log() Natural logarithm Sqrt() Square root Norwegian University of Life Sciences

9 Do-file Keep track Re-run commands Make modifications
Make comments in do-file // comment ** comment /* comment */ Norwegian University of Life Sciences

10 Before get to work.. Create a folder for this course on your server
Go to webpage and download Excel file country_short and the pdf-file To Do List to the folder. Norwegian University of Life Sciences

11 Launch Stata Start -> Programs -> Stata
Norwegian University of Life Sciences

12 Exercise Set Go to webpage and download Excel file country_long and the pdf-file Exercise Set … and get cracking! Norwegian University of Life Sciences

13


Download ppt "Getting started with Stata"

Similar presentations


Ads by Google