{"id":170,"date":"2018-08-15T12:36:40","date_gmt":"2018-08-15T19:36:40","guid":{"rendered":"https:\/\/blogs.ubc.ca\/datawithstata\/?page_id=170"},"modified":"2019-05-17T17:10:55","modified_gmt":"2019-05-18T00:10:55","slug":"regression","status":"publish","type":"page","link":"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/","title":{"rendered":"Regression"},"content":{"rendered":"<p class=\"box\">Regression analysis is a statistical technique which facilitates the study of the relation between a &#8216;dependent&#8217; or &#8216;explained&#8217; variable on one hand and a set of &#8216;independent&#8217; or &#8216;explanatory&#8217; variables on the other. Depending on the type of the explained variable considered and the nature of the research question (e.g., causality versus correlation), there are specific types of regression analyses.<\/p>\n<h3><a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/ordinary-least-square-2\/\">Ordinary Least Square (<abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr>)<\/a><\/h3>\n<p>This is the most basic and widely used regression technique. Most of the other regression techniques are essentially modifications of the <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> set-up in some particular way. The &#8216;<em>least square&#8217;<\/em> technique gets its name from the fact that the parameters of the regression equation are estimated by <em>minimizing the sum of the squares<\/em> of the deviation of the dependent variable from the regression function.<br \/>\n<span style=\"color: #dd3396;\"><a style=\"color: #dd3396;\" href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/ordinary-least-square-2\/\">More on (<abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr>)\u00a0\u00a0<\/a><\/span><\/p>\n<p>Results: <abbr class='c2c-text-hover' title='Statistical Software for Data Analysis'>Stata<\/abbr> Output<\/p>\n<p>Interpreting Regression Results<\/p>\n<h3><a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/ordinary-least-square\/\">Regression with Dummy Variable<\/a><\/h3>\n<p>Dummy variables, also known as indicator variables, are those which take the values of either 0 or 1 to denote some mutually exclusive binary categories like yes\/no, absence\/presence, etc. When one or more of the explanatory variables is a dummy, the standard <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> regression technique can still be used. However, a categorical dependent variable calls for a different regression technique, e.g., the logistic regression (or logit) and the probit.<\/p>\n<p>Click here for more on<\/p>\n<ul>\n<li><a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/ordinary-least-square\/\" target=\"_blank\" rel=\"noopener noreferrer\">Logit<\/a><\/li>\n<li>Probit<\/li>\n<\/ul>\n<h3><a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/poisson-regression-2\/\">Regression with Count Variable<\/a><\/h3>\n<p>When the dependent variable is a non-negative count variable, e.g., the number of telephone calls made by a call-centre agent in an hour, the number of deaths in a war, the number of victims of smallpox during an epidemic, etc., the standard <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> regression technique should not be used. Instead one has a choice of using either a Poisson regression, or a Negative Binomial Regression, or a Zero-Inflated Negative Binomial Regression.<\/p>\n<h3><a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/quantile-regression\/\">Quantile Regression<\/a><\/h3>\n<p>Usually regression coeffcients can be thought as the marginal impact of the explanatory variable on the mean of the dependent variable. However, the researcher might be interested in knowing the the marginal impact of the explanatory variable on certain quantiles of the distribution of the dependent variable, e.g., what is the impact of the food stamp program on the consumption of the bottom 10% of the consumption distribution? Such questions are addressed by implementing a quantile regression.<\/p>\n<h3><a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/instrumental-variable-regression\/\">Instrumental Variable Regression(IV)<\/a><\/h3>\n<p>When there is reason to believe that the explanatory variable is correlated with the error term in the <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> regression (in other words, the explanatory variable is <em>endogenous<\/em>), then it cannot be claimed that the explanatory variable <em>causes<\/em> the change in the dependent variable, rather simply that there exists a <em>correlation<\/em>. One way to argue for causality is to use the technique of instrumental variable regression where one uses an <em>exogenous<\/em> variable (called the <em>instrument<\/em>) that is uncorrelated with the error term in the <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> but correlated with the endogenous explanatory variable.<\/p>\n<h3><a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/panel-regression\/\">Panel Regression<\/a><\/h3>\n<p>When data is available over time and over the same individuals then a panel regression is run over these two dimensions of cross-sectional and time-series variation. Panel regression is essentially an <abbr class='c2c-text-hover' title='Ordinary Least Square'>OLS<\/abbr> regression with some added properties and interpretation like fixed effects, random effects, pooled cross-section, etc.<\/p>\n<h3><a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/difference-in-difference-regression\/\">Difference in Difference (Diff-in-Diff or DID)<\/a><\/h3>\n<p>To argue for the causal impact of a treatment on a dependent variable, the technique of Difference-in-Difference (or double difference) is used where the impact of the treatment is defined as the difference in average outcome in the treatment group before and after treatment minus the difference in average outcome in the control group before and after treatment: it is literally a &#8216;difference of differences&#8217;.<\/p>\n<h3><a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/regression-discontinuity\/\">Regression Discontinuity (RD)<\/a><\/h3>\n<p>Regression discontinuity design is useful for estimating the causal effect of an explanatory variable in the case where there is an observable jump or discontinuity in the level of the explanatory variable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Regression analysis is a statistical technique which facilitates the study of the relation between a &#8216;dependent&#8217; or &#8216;explained&#8217; variable on one hand and a set of &#8216;independent&#8217; or &#8216;explanatory&#8217; variables on the other. Depending on the type of the explained &hellip; <a href=\"https:\/\/blogs.ubc.ca\/datawithstata\/home-page\/regression\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":7089,"featured_media":0,"parent":2,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-170","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/pages\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/users\/7089"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":81,"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/pages\/170\/revisions"}],"predecessor-version":[{"id":1264,"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/pages\/170\/revisions\/1264"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/pages\/2"}],"wp:attachment":[{"href":"https:\/\/blogs.ubc.ca\/datawithstata\/wp-json\/wp\/v2\/media?parent=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}