收藏 分销(赏)

《计量经济学导论》电子教案ch.ppt

上传人:人****来 文档编号:14507051 上传时间:2026-10-02 格式:PPT 页数:18 大小:451.54KB 下载积分:10 金币
下载 相关
《计量经济学导论》电子教案ch.ppt_第1页
第1页 / 共18页
《计量经济学导论》电子教案ch.ppt_第2页
第2页 / 共18页


点击查看更多>>
资源描述
Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Fifth level,*,*,单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,*,Multiple Regression Analysis,y=,b,0,+,b,1,x,1,+,b,2,x,2,+.,b,k,x,k,+u,5.Dummy Variables,1,Dummy Variables,A dummy variable is a variable that takes on the value 1 or 0,Examples:male(=1 if are male,0 otherwise),south(=1 if in the south,0 otherwise),etc.,Dummy variables are also called binary variables,for obvious reasons,2,A Dummy Independent Variable,Consider a simple model with one continuous variable(,x,)and one dummy(,d,),y=,b,0,+,d,0,d+,b,1,x+u,This can be interpreted as an intercept shift,If d=0,then,y=,b,0,+,b,1,x+u,If d=1,then,y=,(,b,0,+,d,0,),+,b,1,x+u,The case of d=0 is the base group,3,Example of,d,0,0,x,y,d,0,b,0,y=,(,b,0,+,d,0,),+,b,1,x,y=,b,0,+,b,1,x,slope=,b,1,d,=0,d,=1,4,Dummies for Multiple Categories,We can use dummy variables to control for something with multiple categories,Suppose everyone in your data is either a HS dropout,HS grad only,or college grad,To compare HS and college grads to HS dropouts,include 2 dummy variables,hsgrad=1 if HS grad only,0 otherwise;and colgrad=1 if college grad,0 otherwise,5,Multiple Categories(cont),Any categorical variable can be turned into a set of dummy variables,Because the base group is represented by the intercept,if there are n categories there should be n 1 dummy variables,If there are a lot of categories,it may make sense to group some together,Example:top 10 ranking,11 25,etc.,6,Interactions Among Dummies,Interacting dummy variables is like subdividing the group,Example:have dummies for male,as well as hsgrad and colgrad,Add male*hsgrad and male*colgrad,for a total of 5 dummy variables 6 categories,Base group is female HS dropouts,hsgrad is for female HS grads,colgrad is for female college grads,The interactions reflect male HS grads and male college grads,7,We can use dummy variables to control for something with multiple categories,Any categorical variable can be turned into a set of dummy variables,Dummy Variables,Note,we have k+1 restrictions(each of the slope coefficients and the intercept),Example:top 10 ranking,11 25,etc.,hsgrad is for female HS grads,colgrad is for female college grads,y=b0+b1x+u,We need to remember that usually individuals choose whether to participate in a program,which may lead to a self-selection problem,So,you can estimate the model with all the interactions and without and form an F statistic,but this could be unwieldy,Note,we have k+1 restrictions(each of the slope coefficients and the intercept),A dummy variable is a variable that takes on the value 1 or 0,We need to remember that usually individuals choose whether to participate in a program,which may lead to a self-selection problem,We can use dummy variables to control for something with multiple categories,Dummy variables are also called binary variables,for obvious reasons,Other Interactions with Dummies,More on Dummy Interactions,Formally,the model is,y,=,b,0,+,d,1,male+,d,2,hsgrad+,d,3,colgrad+,d,4,male*hsgrad+,d,5,male*colgrad+,b,1,x+u,then,for example:,If male=0 and hsgrad=0 and colgrad=0,y,=,b,0,+,b,1,x+u,If male=0 and hsgrad=1 and colgrad=0,y,=,b,0,+,d,2,hsgrad+,b,1,x+u,If male=1 and hsgrad=0 and colgrad=1,y,=,b,0,+,d,1,male+,d,3,colgrad+,d,5,male*colgrad+,b,1,x+u,8,Other Interactions with Dummies,Can also consider interacting a dummy variable,d,with a continuous variable,x,y,=,b,0,+,d,1,d+,b,1,x+,d,2,d*x+u,If,d,=0,then,y,=,b,0,+,b,1,x+u,If,d,=1,then,y,=,(,b,0,+,d,1,),+,(,b,1,+,d,2,),x+u,This is interpreted as a change in the slope,9,y,x,y=,b,0,+,b,1,x,y=,(,b,0,+,d,0,),+,(,b,1,+,d,1,),x,Example of,d,0,0 and,d,1,6 categories,Add male*hsgrad and male*colgrad,for a total of 5 dummy variables 6 categories,hsgrad is for female HS grads,colgrad is for female college grads,Caveats on Program Evaluation,A typical use of a dummy variable is when we are looking for a program effect,For example,we may have individuals that received job training,or welfare,etc,We need to remember that usually individuals choose whether to participate in a program,which may lead to a self-selection problem,16,Self-selection Problems,If we can control for everything that is correlated with both participation and the outcome of interest then its not a problem,Often,though,there are unobservables that are correlated with participation,In this case,the estimate of the program effect is biased,and we dont want to set policy based on it!,17,
展开阅读全文

开通  VIP、SVIP  下载更划算
下载10份以上建议开通 VIP 会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 教育专区 > 其他

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        关注我们

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服