** Welcome
*** { @unit = “”, @title = “Overview of the Program Evaluation”, @lecture, @foldout }
What does it mean to live in an evidence-based world? How do we become more data-driven?
It turns out that using data to improve decision-making and organizatoinal performance is not a trivial affair because of a little problem called omitted variable bias (correlation does not equal causation). As a result, we need to combine judicious analytical techniques with feasible approaches to research design in order to understand causal impact of social programs.
Here is a great introduction to a case study that uses evaluation to better understant the impact of a government program by getting past anecdotes to measure program impact.
In most cases we don’t have resources for large-scale Randomized Control Studies. They typically cost millions of dollars, are sometime unethical, and are often times not feasible. For example, does free trade prevent war? How do you randomized free trade across countries?
Statistics and econometricians have spent 75 years developing powerful regression tools that can be used with observational data and clever quasi-experimental research designs to tease out program impact when RCT’s are not possible. The courses in the Foundations of Program Evaluation sequence build the tools to deploy these methods.
Let’s start with a simple example. Is caffeine good for you?
What evidence is used to create these assertions? [ link ]
Can you conduct a Randomized Control Trial to study the effects of caffeine on mental health over a long period of time? Is this correlation or causation?
How can we be sure we are measuring the causal impact of coffee on health?
Just listen to this summary of current knowledge on the topic, then try to succinctly translate it to a rule of thumb physicians should use on whether to recommend coffee to patients.
*** { @unit = “”, @title = “Background Reading”, @reading, @foldout }
This course provides foundational skills in quantitative program evaluation:
Reichardt, C. S., & Bormann, C. A. (1994). Using regression models to estimate program effects. Handbook of practical program evaluation, 417-455. [ pdf ]
Program evaluation is a large field that deploys a diversity of methodologies beyond quantitative modeling and impact analysis. We focus heavily on the quantitative skills in the Foundations of Eval I, II, and III in this program because data is hard to use, so you need several courses to build a skill set. Qualitative and case-study approaches build from the same foundations in research design, so you can more fully develop some of those skills drawing from knowledge of formal modeling and inference.
For some useful context on evaluation as a field, this short (6-page overview) is helpful:
McNamara, C. (2008). Basic guide to program evaluation. Free Management Library. [ pdf ]
And to get a flavor for debates around approaches to measuring program impact in evaluation:
White, H. (2010). A contribution to current debates in impact evaluation. Evaluation, 16(2), 153-164. [ pdf ]
*** { @unit = “”, @title = “Review of Basic Stats”, @reading, @foldout }
OpenIntro Statistics is an excellent resource for a clear chapter on regression analysis pdf.
The Teacups, Giraffes & Statistics site has nice explanations of variance, covariance, and the standard error [ link ].
If you need a refresher on stats, you can try one of the free online statistics courses on Khan Academy, EdEx, Coursera, Udacity or other sites, or visit the OpenStax free Introductory Statistics textbook and review:
*** { @unit = “”, @title = “Build Your Library”, @reading, @foldout }
Regression is a tricky topic to learn because the math is the same across all fields, but statisticians, econemetricians, and other social sciences use very different notation to describe models. Finding textbooks that suits your background and your learning style will help you in the long run.
The field of quantitative program evaluation is like a river with tributaries. The main branch consists of a set of practices around using OLS regression to estimate program impact. There are many sub-fields such as panel models, hierarchical models, Bayesian approaches, generalized least squares… etc etc. These are the tributaries in the field.
Tributaries might also be specific practices like visualization or model diagnostics. You can build up expertise in these areas to get really good at a specific type of model that suits a specific type of research (in Psychology, for example, you would spend a lot of times learning to create and analyze interaction models so that you can deploy fancy factoral designs).
The lecture notes for this class will focus entirely on the principles of basic regression - the main branch on this river. We intentionally try to condense the topics covered so that you can develop an understanding of how a handful of core concepts all fit together (slopes, residuals, standard errors, hypothesis testing, control variables, and bias).
As a result, lecture notes are good for understanding these topics, but will not include all of the relevant background concepts and all of the formulas, not reference more advanced models. It is good to find a textbook that you are comfortable with so you can review concepts and look something up. I have a couple on my shelf that I return to often to look up formulas or read-up on a model I am not familiar with.
If you want to invest in a textbook, these are some texts that present this content using algebra instead of calculus or matrix algebra notations.
There is no way to learn and retain all of this material in one course!!! It is completely normal for this material to not click the first time you see it. We will try to repeat concepts and build on them through the semester, and the Evaluation sequence in this program (CPP 523, 524, and 525) provide a lot of reinforcement learning.
You are investing in a skill-set that you will build over time. I will reference material throughout the semester that you can add to your reference library for this purpose.
I will also add books, articles, tutorials and reference sheets to the Resources page, but I suggest you create your own catalog to do the same!
*** { @unit = “”, @title = “ORIENTATION to R”, @lecture, @foldout }
R is a data programming language developed for statistics.
We will be using R for lectures and labs in this course. If you are only taking the program evaluation course, you only need a rudimentary understanding of R. The code you need to run regressions and create tables will be provided to you. All of the datasets we will use for lectures and labs are pre-packaged, so you don’t have to know how to build datasets in R.
You will see, however, that I provide a lot of code in lecture notes. This is primarily for the students also taking the Intro to Data Science class (CPP 526) or enrolled in the masters program in data analytics. The more code you see, the more familiar it will become. It also let’s you steal it and incorporate it into your own projects. It is presented as a resource, not because you are expected to be able to make sense of all of it or use it in labs!
R is a foundational tool within a toolkit that I will refer to as the “data science ecosystem”.
If you were not able to make either Zoom session, I did a brief introduction to the “ecosystem” - the community of people that are creating cool analytical tools and building tutorials and case studies for how they might be applied, as well as a core set of tools that are all designed to work nicely together in order to implement projects.
You can think of R, R Studio, and Markdown kindof like Excel (analysis), Word (report-writing), and Power Point (presentations). R allows you to analyze your data, but these results are not useful unless you can share them with others. Here is where data-driven documents developed using R Studio and Markdown really shine. You can quickly package your R code as cool reports, websites, presentations, or dashboards to format the information in whatever way is most accessible and useful for your clients or stakeholders.
Nerds are stereotypically perceived as being hermetic, but in reality they have just created their own universes and civilizations. Surprisingly coding is a very social activity, and real-world analytics projects are almost always collaborative. You will learn how to use discussion boards to accelerate learning and facilitate collaboration, and social coding tools like GitHub to manage large data project.
We are going to throw a lot at you, but also provide a lot of support. Over these first couple of weeks feel free to reach out for anything you might need.
If you find something confusing let me know (likely others will as well).
Reach out if you have questions or feel stuck!
Course Overview Powerpoint for Zoom Call
The course shells for CPP 523 and CPP 526 are located at:
https://ds4ps.org/cpp-526-fall-2019/
https://ds4ps.org/cpp-523-fall-2019/
The unofficial program website can be found at:
https://ds4ps.org/ms-prog-eval-data-analytics/
And the dashboard example in R can be found here:
** Week 1 - Nuts and Bolts of Regression Models
*** { @unit = “”, @title = “Unit Overview”, @reading, @foldout }
This section provides a review of the basic building blocks of a bivariate regression model:
Once you have completed this section you will be able to conceptually understand what a regression slope represents (the conditional mean), how residuals are created, and what the standard error is measuring.
Reichardt, C. S., & Bormann, C. A. (1994). Using regression models to estimate program effects. Handbook of practical program evaluation, 417-455. [ pdf ]
Diez, D. M., Barr, C. D., & Cetinkaya-Rundel, M. (2012). OpenIntro statistics (pp. 174-175). OpenIntro. [ CH-08 Introduction to Linear Regression ]
Multiple Regression overview chapter [ pdf ]
Caffeine and Heart Rates based off of this caffeine study:
# paste this code into R
url <- "https://raw.githubusercontent.com/DS4PS/cpp-523-fall-2019/master/lectures/data/caffeine.csv"
dat <- read.csv( url, stringsAsFactors=F )
summary( dat )
plot( dat$caffeine, dat$heart.rate )
model.01 <- lm( heart.rate ~ caffeine, data=dat )
summary( model.01 )
Lecture: [ Building a regression model ]
Is caffeine good for you? [ link ]
Is caffeine a treatment in this study? How do we know caffeine is the cause of the outcomes we see here?
Lab-01 Regression Review covers the following topics:
Good reference for formulas:
Lewis-Beck, C., & Lewis-Beck, M. (2015). Applied regression: An introduction (Vol. 22). Sage publications. [ pdf ]
*** { @unit = “WED Aug-28”, @title = “Lab 01”, @assignment, @foldout }
This lab will review the following topics:
b1
)b0
)This first lab is meant as a review of some important regression formulas to either shake out the cobwebs if you have covered this material before, or get everyone on the same page if it is new.
The lecture notes needed for the lab are available on the course shell:
[ Building a regression model ]
And the first chapter from Lewis-Beck serves as a reference for specific formulas if needed:
Lewis-Beck, C., & Lewis-Beck, M. (2015). Applied regression: An introduction (Vol. 22). Sage publications. [ pdf ]
For THIS ASSIGNMENT all of the work is done by hand so you can type your answers right into the attached word document:
Save it using the naming convention:
Lab-##-LastName.doc
And submit via Canvas. Please show your work (include the basic steps for each calculation).
For future assignments we will be using R Markdown documents so that you can run models and submit the results directly.
Since this is meant as a review (or getting up to speed) assignment it is due Monday. You will, however, have a full week for subsequent labs.
If you have questions, please post them to the Assignment Discussion Board.
** Week 2 - Effect Size and Confidence Intervals
*** { @unit = “”, @title = “Unit Overview”, @reading, @foldout }
This week covers the topic of building confidence intervals around our estimates of program impact. We use the CIs to conduct hypothesis-testing to see if our program has the impact we expected.
Once you have completed this section you should be able to build a confidence interval around a slope estimate of program impact, and interpret a table with several regressions.
Please review the following lecture notes:
You might find this summary of notation helpful pdf
There are no assigned readings this week.
The lecture notes in this section cover the mechanics of standard errors and confidence intervals. These two important topics can be summed up in these animations of the sampling distribution of the mean.
Our model estimate for the slope is our best guess of the real statistic. It will always be pretty good, but not exact.
If we would repeatedly draw samples from a population and calculate slope estimates over and over, they would look like the distribution on the right. The “standard error” describes the average amount all of these guesses (statistics) are off from the true slope.
If we create confidence intervals around these guesses, we can see that 95 out of 100 of the CIs will contain the true slope (set to 3 here).
*** { @unit = “FRI Aug-30”, @title = “Mini-Assessment”, @assignment, @foldout }
This mini-assessment consists of four multiple-choice questions. You have thirty minutes to complete from the time you start the assessment.
*** { @unit = “MON Sept-02”, @title = “Lab 02”, @assignment, @foldout }
This lab introduces a case study on education policy that we will be using for the remainder of the semester to demonstrate the importance and impact of control variables, and consequences of their omissions.
You will need the formula for confidence intervals, and the concept of visual hypothesis-testing with coefficient plots.
When you are complete:
** Week 3 - Control Variables
*** { @unit = “”, @title = “Unit Overview”, @reading, @foldout }
This lecture introduces you to two distinctive types of control variables, and how the different ways they change our models. We will also start using Ballentine Venn Diagrams to compare models.
Once you have completed this section you will be able to explain how adding specific control variables to a model (or leaving them out) will impact (1) the slopes and (2) the standard error of your model.
None.
Lecture 06 on Control Variables
*** { @unit = “FRI Sept-06”, @title = “Mini-Assessment”, @assignment, @foldout }
This mini-assessment tests your understanding of the interpretation of statistical significance using confidence intervals.
*** { @unit = “MON Sept-09”, @title = “Lab 03”, @assignment, @foldout }
This lab introduces the important role of control variables in our models. They can be used to reduce standard errors of the model and thus increase model efficiency, or they can be used to to adjust slopes in the model. The lab draws on material from the lecture 06 notes.
I have provided the code for the regression models and scatterplots. This lab focuses on interpretation of results. You do need to create an RMD document, and knit an HTML file to submit your results.
When you are complete:
** Week 4 - Omitted Variable Bias
*** { @unit = “”, @title = “Unit Overview”, @reading, @foldout }
This week introduces the concept of omitted variable bias, and how it can impact our inferences in observational studies.
Once you have completed this section you should be able to:
‘Crack baby’ study ends with unexpected but clear result [ link ]
The study in the article was commissioned because of anedcotal evidence of a strong relationship between exposure to crack in the womb and poor development of a child, cognitively and socially.
If crack was the policy variable in this study, what was the omitted variable?
How did the understanding of the DIRECT impact of crack on child development change once the omitted variable was added to the models?
When are omitted variables a problem? What makes a variable a competing hypothesis?
Lecture Notes: Omitted Variable Bias [ pdf ]
Lecure Notes: A Taxonomy of Control Variables [ pdf ]
*** { @unit = “FRI Sept-13”, @title = “Mini-Assessment”, @assignment, @foldout }
This mini-assessment tests your understanding of the differences between the two types of control variables.
*** { @unit = “TUE Sept-17”, @title = “Lab 04”, @assignment, @foldout }
This lab examines the impact of omitted variable bias on our inferences.
A lab solutions RMD template has been provided. Submit your knitted files via Canvas.
When you are complete:
** Week 5 - Dummy Variables: Revisiting Hypothesis Tests
*** { @unit = “”, @title = “Unit Overview”, @reading, @foldout }
This week introduces modeling group differences within the data using dummy variables and interaction terms.
Dummy variables are binary 0/1 variables where 1 means the observation belongs to a group, 0 means the observation does not. We need one dummy variable for each level of a categorical variable.
y = b0 + b1(X) + b2(D) + e
Interactions are created by multiplying a covariate by a dummy variable.
y = b0 + b1(X) + b2(D) + b3(X)(D) + e
Adding dummy variables to models allows us to test several hypotheses about differences between groups.
Once you have completed this section you will be able to run and interpret regression models with dummy variables and interaction effects.
Hypothesis-Testing With Groups
*** { @unit = “SUN Sept-22”, @title = “Mini-Assessment”, @assignment, @foldout }
This mini-assessment tests your understanding of the interpretation of the impact of control variables on statistical significance.
*** { @unit = “TUES Sept-24”, @title = “Lab 05”, @assignment, @foldout }
This lab examines tests your understanding of constructing groups and conducting tests using dummy variables.
When you are complete:
** Week 6 - Specification
*** { @unit = “”, @title = “Unit Overview”, @reading, @foldout }
This week introduces the concept of specification bias - various idiosyncracies of regression models such as outliers and functional forms that can introduce bias into the slope estimates.
Once you have completed this section you will be able to:
Specification Bias I [ html ]
Specification Bias II [ pdf ]
For this lab you will run and interpret a quadratic regression, and interpret coefficients from a logged regression model.
*** { @unit = “WED Oct-02”, @title = “Lab 06”, @assignment, @foldout }
This lab gives you a chance to practice non-linear regression models.
When you are complete:
*** { @unit = “”, @title = “No Mini-Assessment This Week”, @assignment }
** Week 7 - Review!
*** { @unit = “”, @title = “Review”, @lecture, @foldout }
Please post questions on the discussion board if you are not sure of the correct solutions for questions on lectures or practice exams.
*** { @unit = “”, @title = “The Seven Deadly Sins of Regression”, @lecture, @foldout }
Concise summary of the seven most common issues that will corrupt your regression inferences [ pdf ]
Some longer notes: Seven Sins of Regression [ pdf ]
*** { @unit = “”, @title = “Measurement Error”, @lecture, @foldout }
Increase in standard errors. No slope bias.
Attenuation of the slope (tilts toward zero), but also a decrease in standard errors that offset the shift of the slope toward zero.
*** { @unit = “MON Oct 07”, @title = “Mini-Assessment”, @assignment, @foldout }
This mini assessment covers material from the Taxonomy of Controls.
And on Measurement Error.
It is recommended you complete it before you final exam to get a sense of the types of questions to expect. I have left it open all week, though, if you need extra time.
** FINAL EXAM
*** { @unit = “MON Oct 7 12pm AZ”, @title = “Review Session”, @lecture, @foldout }
There will be a review session for the final exam at 12pm on Monday. It is a chance to bring questions from the practice exams and discuss material before taking the exam.
Please post questions on the discussion board, or email me for a Zoom call if you want help before the exam.
*** { @unit = “Open Oct-07 to 12”, @title = “Final Exam”, @assignment, @foldout}
You can start the exam any time between Monday and Saturday Oct 12th. You have 4 hours to complete the exam once it is started.
You are allowed to look back over your notes and use a calculator for help with math.
You are NOT allowed to work together on the final exam. Do not discuss questions after you have take it.