New Contributor
Posts: 2

# How to use Sharp Regression Discontinuity (SRD) in SAS?

Hello Expert SAS users,

I’m in the midst of doing some SRD analysis (Sharp Regression Discontinuity) in SAS.

The technique is still somewhat rare, so I’ve had significant problems finding textbook examples. There are a bunch of theoretical articles, but not that many that seems to explain how to implement it in SAS.

The few sources I have found don’t seem to agree at all on how to implement it. Some say it requires that I write a macro in SAS, while others claim that you can just run 2 regressions and calculate the differences in mean between the two, while even others suggest a pooled regression – but not how to do it (because then you can use the tests carried out in the regression). Even the regressions themselves, seem to be a topic of debate, as the suggested regressors vary a great deal. (Some even suggest that it doesn’t matter whether you use an OLS or GLS regression).

The few people I know that has used this technique, have all used STATA, as it apparently has a RD package, but I prefer to use SAS, as all my other analysis are done here.

So my question is: What is the best way to do SRD in SAS, and are there any good textbooks/ARTICLES, preferably with examples and code, that I can use? I have searched the internet a lot, which has given me plenty of ideas, but also plenty of questions.

My data is the following:

I look at the number of applicants for a government program, and the number of accepted into this program. My hypothesis is that the number of applicants sharply rose, because of a shift in policy, which led to a decrease in the quality of applications. So therefore I use RD to compare the applicants before and after the policy shift, to see if the applicants after the policy shift have a much lower acceptance rate, than before the policy shift.

If the acceptance rate is lower, it is evidence of a lower ‘quality’ of applicants.

Any help is appreciated.

Ulrik

Posts: 2,655

## Re: How to use Sharp Regression Discontinuity (SRD) in SAS?

This is a long shot, but take a look at Example 55.12 Change Point Models in the PROC MCMC documentation.

I am basing everything on a single graph, presented at the end of the example, that looks something like what I would expect from a regression discontinuity.

Steve Denham

New Contributor
Posts: 2

## Re: How to use Sharp Regression Discontinuity (SRD) in SAS?

Hi Steve,

Thanks for the suggestion, but as far as I can gather, the example is about a change in the coeffecient/slope after a given point and not a jump in the mean as seen in a RD design.

Posts: 2,655

## Re: How to use Sharp Regression Discontinuity (SRD) in SAS?

I think you could get around that by parameterizing the model slightly differently, so that it has a change in both the slope and intercept, which would be equivalent to the jump in the mean.

Steve Denham

SAS Employee
Posts: 89

Contributor
Posts: 47