实验五七虚拟变量回归分析

上传人:re****.1 文档编号:563592561 上传时间:2024-01-06 格式:DOCX 页数:9 大小:45.38KB
返回 下载 相关 举报
实验五七虚拟变量回归分析_第1页
第1页 / 共9页
实验五七虚拟变量回归分析_第2页
第2页 / 共9页
实验五七虚拟变量回归分析_第3页
第3页 / 共9页
实验五七虚拟变量回归分析_第4页
第4页 / 共9页
实验五七虚拟变量回归分析_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《实验五七虚拟变量回归分析》由会员分享,可在线阅读,更多相关《实验五七虚拟变量回归分析(9页珍藏版)》请在金锄头文库上搜索。

1、第七章 虚拟变量回归分析姓名:耿肃竹 学号:20136878 班级:经济1302【实验目的】目的在于学习基本的经济计量方法并利用Stata对经济中典型的数 据,掌握虚拟变量的分析思路,掌握虚拟变量回归的基本操作方法,掌握虚拟变 量回归的结果分析。【实验软件】Stata是一套提供其使用者数据分析、数据管理以及绘制专业图表 的完整及整合性统计软件。该软件提供的功能包含线性混合模型、均衡重复反复 及多项式普罗比模式。作为流行的计量经济学软件,Stata的功能十分地全面和 强大。可以毫不夸张地说,凡是成熟的计量经济学方法,在Stata中都可以找到 相应的命令,而这些命令都有许多选项以适应不同的环境或满

2、足不同的需要。【实验要求】利用stata软件学习多元回归分析的应用问题,并在回归结果中学 会以下命令的使用对类型变量B生成虚拟变量Atabulate B, gen(A);对包含虚 拟变量的情况进行回归regress y x1 x2.A2 A3.等命令。学会虚拟变量在回归 分析中的应用进行有效分析,学以致用。【实验内容】教材P213C2题目【1】C2(I) 输入命令“regress Iwage educ exper tenure married black south urban”:. r&g-r-eaa Lra.g& edus 巳陛亡監 fcen.urie iuarri-&d hlasl au

3、th urlanSourceSSdfMSNmnti-eE ctf obs =935r IfmItModel叫83776197 5_97682312Fr nt) a F=a -onaakesidual123S185219-2 7.1335五于叮五訂R-squared=a .2526Alj R-squared.U - -40 JIctal165.五5五2為訂9-3 4.177362188Rcct MSE.36547IwagsCfl-ef.Std. Err-tpl 1195t CnnfInt SEV31educ-0654207.00625041047a _05216420776973._Q14042

4、.003185244La .007792.020294tenure-117472.0024534 79a .OQGS333Q1E13married.1994171.039050251La .1227S01.270E4black-.1662495-5oaa .oaa-2227171144281south.-.a&as-as.0262485-3_46a .not-142417D3939D3urban.LS39121-026S583a -口1310056-236S1S5czcms旨.395497.1132254765a -口丐.173 2 95.617704解:log(wage) = 5.39549

5、7+0.0654307educ+0.014043exper+0.0117473tenure(0.113225) (0.0062504)(0.0031852)(0.002453)+0.1994171married-0.1883499black-0.0909036south+0.1839121urban(0.0390502)(0.0376666)(0.0262485)(0.0269583)n=935R2=0.2526保持其他因素不变 農人和非黑人之间的月薪差异近似(约等于)为0.1883499, 因为P=0,所以这个差异是统计显著的。(口 )输入命令”generate expersq二exper*

6、exper”“generatetenuresq二tenure*tenure”“regress Iwage educ expertenure married blackurbane x p e r a qgaiierste expe rsq=exii-e=rqan rste tsiiu resg=t&nu re tenur-aF&g-essedue g卫h& temir-ebl act suth uurbantetiuT&sgSOLIECZE5SdfMSHuinber of a-bs =525it roon - hQF 1 7m .丄*Model42-235325794 .S&2S13S7?Hb

7、 F=o.aoooEte s id.ua 1123.420558525.12342Safi2Etscjuared=0.2550 HA rr比dlKE d.U - Z f fTotallfi5fi5283934.1773C21=_352Co-ei.日匸l ZXEtFl t 195% Conf.IntsEvsleducD642761a063115ia.18a _aoa.0518896D766625eitperDL72146-12613B1.36a .17300754030419695tenu匚e-243-291_noa12373.D7a .002.0089743408838married.1585

8、47a391103a _aoa.12179172753023black-.19a 6:63 6a377011-占石a _aoa-.246533-.116674south-.9121530262356宕.屯Ea _aoi-.1427035-.397271urban.1854241as 69585.88a _aoa.1325L71-2381311B-Kpetaq-.anasaaa53is-.-.21a 83i-.0011576.aasst eTLuregg-aaa794.000471-1.69a _asi-.0017208aaai2?s_eans5.258C7G_ 12591-4342 .呂石a

9、_aoa5 1115G55.605787输入命令 “tese experaq”:teat ejcp&rsg tsjiiiT&sg(1) ezjcpersg = 0( 2) t-enureaq = F( 2_925) =1 43Prob F =0 _2260解:因为P=0.2260 ,不拒绝原假设,所以即使在20%的显著性水平上,它们也 是联合不显著的。(皿)输入命令“ generate black_educ二black*educ”“regress Iwage educ exper tenure married black south urban black_educ”:. g&n.&r&te

10、bL a.d_&duc=b-lQlSi. r&g-r-eaa 丄耐ng旨 i&duQ ap咎r tenure mariri&cl blacl auth urbanSourcessd=MSNuzibe 匚 口三 ctbs =9-35ELQ rn 匚0、口工.口 EModel42. 0055 4 6885 .25069335Fno-b F=0.0000kssldual123.石5口73926:.133532113R-squaxed=0-2536Adj R-squared=0-2471Ictal165.石5丘334.177362186Ract USE=.3fi542luageCoe=.Std. Zi

11、r-tpl 119齐 Conf.Intecvaladue.GILLS 2.006427710.440 . 000.O54SOO0.797298-血 3O2E9.00319DC4.320 . 000.0075642.2D0S76.11787.00245294.610 . 000.005732.OdLGGD D9ztazr ied.19e&077.029-04745.050 . 000.1222761.2755292black.94308625529S40.370 . 711-.4a42D2.5960275south.-.0694495.02275-2.40o. oai-.14101E7-.021

12、8802uzban.1S3&E23.02G9E47C .B20 . 000.130953.22石bla.ck educ-,a22S22fi.0201627-1.120 .263-.063232fi,aiS&S54consE.274S17.11470274嵩.DC0 . ooc5 .149715.55&25解:因为P=0.263,不拒绝原假设,所以扩展原模型,使受教育汇报取决于种 族,然而受教育的回报不取决于种族(IV)输入命令“ tabulate married,generate(married) ”“ reg Iwage educ exper tenure aouth urban marri

13、ed*black1”:tabul 邑t;色 b 1 ack y-esn-erate (bl acU=1 iz blackFr aq .PercentCum.081587.1787.17112012. 83laa.aaTotal935ioa_aatabulate marriedg-eneats(marri&d)=1 Lf fflSEEl&dFt旳.PercentCum.0ioaia.7a10-70182E89_aaT 口七 ml92Eioa_aareg J珏rag* -educ exper term ire: south ur-baiL ma-Firi edl *blad 1generate bl ack L_nariried2=bl ack 1 *ma.rrie

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号