Statistical Methods for Business and Economics Laboratory
STAT 17L - Sec 1 & Sec 2
Subhra Saha
Spring 2024
COURSE INFORMATION
This class provides students with an overview and basic training in statistical programs used in the economics major. The course will introduce you to basic data analysis workflow. A workflow of data analysis is a process for managing all aspects of data analysis. Planning, documenting, and organizing your work; cleaning the data; creating, renaming, and verifying variables; creating summary statistics; and archiving what you have done are all integral parts of your data analysis. This is a hybrid course: a Canvas page will be available with all the materials/videos, and a 1 hour in-person lecture will beheld weekly.
INSTRUCTOR INFORMATION
Instructor: Subhra Saha. Students can address me as Dr. Saha, Professor Saha or Prof. Saha
A short bio: Currently, I teach a master’s Level STATA for Economics department (since 2016 to present) & use STATA for advising businesses (since 2017). In the past, this software was also the basis of my Ph.D. work and research work which produced grants from prestigious institutions.
Office Hour: No formal office hour: E2 405 F; Wed 9:30 – 10:00am
Course Title (Name) |
Days/Times |
Location |
Stat Method Econ Lab (Laboratory) – Section 1 (50020) |
Mo 2:40PM - 3:45PM
|
Steven Acad 150
|
Stat Method Econ Lab (Laboratory) – Section 2 (50019) |
We 2:40PM - 3:45PM
|
Steven Acad 150
|
LEARNING OUTCOMES
1. Learn how to setup and use commands in STATA to produce appropriate graphical and numerical descriptive statistics for different type of data.
2. Be able to plan, document and organize data related work, including creating, renaming, cleaning, verifying and saving data.
3. Conduct regression models to analyze the underlying relationships between the
variables through hypothesis testing and confidence intervals to aid decision making in a business and economics context using statistical software.
PREREQUISITES/COREQUISITES
Prerequisite(s): Score of 300 or higher on the mathematics placement examination (MPE), or AM 3 or AM 11A or MATH 3 or MATH 11A. MATH 19A strongly recommended.
Concurrent enrollment in STAT 17 is required. See economics department to petition for exceptions to this concurrent enrollment restriction.
REQUIRED MATERIALS, TEXTBOOKS AND TECHNOLOGY
STATA (BE (formerly called STATA IC), SE or MP) version 12 or higher. All UCSC PC computer labs have STATA software installed (see https://its.ucsc.edu/computer-labs/software/pc.html and https://its.ucsc.edu/computer-labs/descriptions/all-labs-summary.html for more information). If not, you may wish to purchase your own version if you intend to pursue the study of Economics. Please purchase STATA software from Stata.com.
COMMUNICATION
All communications outside the classroom will beheld via Canvas and email (preferred).
ASSIGNMENTS & ASSESSMENT
This lab will include 4 homework assignments (HWA: may include analytical labs (short answers, coding questions, show output of codes etc.) and multiple-choice questions), all of these assignments will be for credit, none of them are optional. There is no midterm exam, final exam or any end of term project.
HWA will be very similar to the analytical problems solved in class. Please note that if you missa Problem Set, there will not be anyway to repeat it. Please do not email me after the hard deadline and ask me to give you an extension. Emailed answers will not be accepted.
This is unfair to students who submitted their work on time. Please start your work ahead of time and get it done before the hard deadline. Problem Set for module i is due after that module is nearly completed.
Submit HWA in Canvas individually.
MISSED HOMEWORK POLICY
All homework answers (without DRC approval) submitted after the solutions to that homework are posted, will be penalized at least 75%. By department and university policy I am not allowed to ask for or review any students’ medical records. If you need accommodation for late homework submission, you need to contact DRC. Remember the homework questions are open for a while for you to answer. It is expected that you submit within the hard deadline. I will not have the time to make additional makeup homework assignments.
Extra Credit: Syllabus Acknowledgement Quiz - Sun April 14; 11:59 PM
GRADING POLICY
All HWA will be graded on a 0-20-point scale. There will be no rounding, no makeup or extra assignments. The final course score will be on a 0- 100-point scale; course grades will then be assigned as follows: 98- 100 (A+), 93-97 (A), 90-92 (A-), 88-90 (B+); 83-87 (B);
80-82 (B-); 78-80 (C+); 70-77 (C); 67-69 (D+); 63-66 (D); 60-62 (D-); 0-59 (F)
STUDENT HOURS FOR CLASS
This is a 2-unit lab course. It will require 2 hour of readings/videos per week, 1 hour of in- person lecture, 3 hour of lab work at home including working on HWA & reading your STAT 7 textbook.
INSTRUCTOR FEEDBACK
The readers will provide direct comments and feedback on student assignments.
STUDENT FEEDBACK
At the end of the quarter, you will be asked to complete a Student Experience of Teaching survey for this course. SETs provide an opportunity for you to give valuable feedback on your learning that is honest and constructive. This anonymous feedback will help me consider modifications to the course that will help future students learn more effectively.
COURSE SCHEDULE
Lab: Module |
Reading and Activities |
One: Module 1 Week 1 |
Introduction to workflow management in data analysis - Directories, folders, paths, scripts, files - Raw inputs, intermediate files, and outputs - Naming conventions Focus on getting the correct version of stata See if stata is installed Installing STATA Filepath & how to find filepath for windows and Mac computers |
Two: Module 1 Week 2 |
Introduction to Stata - What is Stata - Opening Stata and review of its windows and menus - Command prompt - Stata command syntax Filepath & how to find filepath for windows and Mac computers - Creating and saving do files - Stata help command - Current Working directories (creating & changing) - Opening a .dta file from STATA memory versus hard drive - Data viewer and data browser - Saving data - Stata documentation (help command) |
Three: Module 1 Week 3 |
Opening, importing, and exporting data - Do files & opening a log file & close a log file Opening a .dta file - Importing a file in a different Format - Excel - csv - text - what to do with difficult to open text files - Data viewer and data browser - Exporting data |
Four: Module 2 Week 4 |
- commenting in STATA - basic operators & logical operators & if statements - display - count - browse, String and numeric variables, viewing data with list command - Describe - Codebook - Inspect - Tabulate - Summarize - generate variable |
Five: Module 2 Week 5 |
Variables management - sort variables; by & bysort - egen - setting observations - dropping and renaming variables - replacing values - Indicator and categorical variables (i.race) - Labels - Missing Values, Set variables |