版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
案例分析--多元线形模型农户收入影响的实证分析来自云南红河农户数据一、研究的问题描述农户收入的影响因素:物质资本?人力资本?二、模型设计Y F(K1,K2,Z,U)在线性假定下,Y A BK1 CK2 Z U变量说明:1)研究变量:农户收入,用农户人均纯收入来测度,农户纯收入、生产性固定资产取对数2)物质资本:耕地、生产性固定资产3)人力资本:劳动者经验、受教育程度,劳动者经验=农户劳动力平均年龄-平均受教育程度-64)家庭因素(控制变量):劳动力人数、总人口2三、样本数据说明income labor landasetMin. : 8.48 Min. :1.000Min. :0.000 Min. : 01st Qu.:1761.21 1st Qu.:2.000 1st Qu.:2.600 1stQu.:2538Median:2857.14Median :3.000 Median :4.900 Median:6000Mean:3753.47 Mean :2.964 Mean :6.702Mean :107293rdQu.:4632.94 3rd Qu.:4.000 3rd Qu.:8.000 3rdQu.:12700Max. :54524.62 Max. :8.000Max. :51.000 Max. :500000age edupopuMin. :18.00 Min. :1.00 Min. :1.0001st Qu.:33.00 1st Qu.:6.00 1st Qu.:3.000Median:36.33 Median :7.50 Median :34.000Mean:37.02Mean:7.15Mean:4.3193rdQu.:40.503rdQu.:9.003rdQu.:5.000Max.:52.00Max.:15.00Max.:13.000dim(s)[1]2888 7R程序:s=read.csv("sam.csv",header=TRUE)summary(s)exper=s$age-s$edu-645R程序:attach(s)hist(income,freq=FALSE)lines(density(income),col=4)hist(log(income),freq=FALSE)lines(density(log(income)),col=4)四、模型估计与检验1.模型估计R程序:s_lm=lm(log(income)~exper+edu+land+log(1+aset)+I(popu/labor),data=s)summary(s_lm)6Call:lm(formula=log(income)~exper+edu+land+log(1+aset)+popu+labor,data=s)Residuals:Min 1QMedian 3Q Max-6.1992-0.33920.03600.42172.6728Coefficients:EstimateStd.ErrortvaluePr(>|t|)(Intercept)7.1117150.13352653.261<2e-16***exper0.0125450.0025134.9916.35e-07***edu0.0636140.0068869.239<2e-16***land0.0130310.0020386.3951.86e-10***log(1+aset)0.0653780.0102056.4061.73e-10***popu-0.1538120.012342-12.463<2e-16***labor0.0348050.0152072.2890.0222*---Signif.codes:0‘***’0.001‘**’0.01‘*’0.05‘.’0.1‘’1Residualstandarderror:0.7185on2881degreesoffreedomMultipleR-squared:0.1544, AdjustedR-squared:0.1526F-statistic:87.64on6and2881DF,p-value:<2.2e-162.异方差诊断对于截面数据,主要是异常值和异方差检验。7(1)图图1考察:E(X)0,显示模型是不完美的。图2考察:残差的正态性,显然不具有正态性。结论:直观的来看,模型具有异方差性。82)hat矩阵如果Var( X) 2I,方差协方差矩阵为:Var(?X) 2(I H),H X(XTX)1XT----hat 矩阵。异方差的诊断主要看H中的主对角线上的元素 hii。Var(?iX) 2(1 hii)R程序:library(sandwich)s_hat=hatvalues(s_lm)plot(s_hat)abline(h=c(1,3)*mean(ps_hat),col=2)abline(h=c(1,3,5)*mean(ps_hat),col=2)910which(s_hat>3*mean(s_hat))3852207290296310389478507816817818823825106210631064106510661067106810751078123412541256125812691271127212731274127512761277127812891290129112921294129512961297129817181856201121452147215021522418244624492464247011248525553.异方差检验1)BP检验studentizedBreusch-Pagantestdata:s_lmBP=46.5316,df=6,p-value=2.32e-08模型存在异方差。2)WHITE检验bptest(s_lm,~exper+edu+land+log(1+aset)+popu+labor+I(exper*edu)+I(exper*land)+I(exper*log(1+aset))+I(exper*popu)+I(exper*labor)+I(edu*land)+I(edu*log(1+aset))+I(edu*popu)+I(edu*labor)+I(land*log(1+aset))+I(land*popu)+I(land*labor)+I(log(1+aset)*popu)+I(log(1+aset)*labor)+I(labor*popu)+I(exper^2)+I(edu^2)+I(land^2)+I((log(1+aset))^2)+I(popu^2)+I(labor^2),data=s)12data:s_lmBP=119.6131,df=27,p-value=1.265e-134.模型设定的检验( Testingthefunctionalform )ThisiswhatRamsey’sRESET(regresspecificationerrortest;Ramsey1969)does:ittakespowersofthefittedvalues?yandtestswhethertheyhaveasignificantinfluencewhenaddedtotheregressionmodel.Alternatively,powersoftheoriginalregressorsorofthefirstprincipalcomponentofXcanbeused.RESETtestdata:s_lmRESET=8.1263, df1=2,df2=2879,p-value =0.0003025重新设定模型:Call:lm(formula=log(income)~exper+edu+land+log(1+aset)+popu+labor+I(land*log(1+aset))+I(land*popu)+I((log(1+aset))^2)+I(popu^2),data=s)Residuals:Min 1QMedian 3Q Max-6.3187-0.33740.02970.41712.5489Coefficients:EstimateStd.ErrortvaluePr(>|t|)(Intercept)8.3466950.25193933.130<2e-16***exper0.0100110.0025693.8979.95e-05***edu0.0579360.0069258.366<2e-16***land-0.0226970.016925-1.3410.18002log(1+aset)-0.1064120.049878-2.1330.03297*popu-0.3463730.044671-7.7541.23e-14***labor0.0346530.0151042.2940.02185*13I(land*log(1+aset))0.0048050.0017432.7570.00587**I(land*popu)-0.0023280.001271-1.8320.06703.I((log(1+aset))^2)0.0099900.0033303.0000.00272**I(popu^2)0.0214020.0045984.6553.39e-06***---Signif.codes:0‘***’0.001‘**’0.01‘*’0.05‘.’0.1‘’1Residualstandarderror:0.7133on2877degreesoffreedomMultipleR-squared:0.1677, AdjustedR-squared:0.1648F-statistic:57.95on10and2877DF,p-value:<2.2e-16RESETtestdata:s_lm11RESET=0.7335,df1=2,df2=2875,p-value=0.480314152)HC估计vcov(s_lm)vcovHC(s_lm)coeftest(s_lm,vcov=vcovHC)16ttestofcoefficients:EstimateStd.ErrortvaluePr(>|t|)(Intercept)7.11171490.132304353.7527<2.2e-16***exper0.01254490.00271554.61984.010e-06***edu0.06361420.00716818.8746<2.2e-16***land0.01303130.00211926.14928.863e-10***log(1+aset)0.06537830.01180265.53933.310e-08***popu-0.15381200.0123739-12.4304<2.2e-16***labor0.03480520.01479772.35210.01874*---Signif.codes:0‘***’0.001‘**’0.01‘*’0.05‘.’0.1‘175.模型的合理估计1)FGLSE(i2xi) 2xi2 exp(1 2logxi)R程序:auxreg11=lm(log(residuals(s_lm)^2)~exper+edu+land+log(1+aset)+popu+labor++I(land*log(1+aset))+I(land*popu)+I((log(1+aset))^2)+I(popu^2),data=s)s_fgls11=lm(log(income)~exper+edu+land+log(1+aset)+popu+labor++I(land*log(1+aset))+I(land*popu)+I((log(1+aset))^2)+I(popu^2),weights=1/exp(fitted(auxreg11)),data=s)>summary(s_fgls11)Call:lm(formula=log(income)~exper+edu+land+log(1+aset)+popu+labor+I(land*log(1+aset))+I(land*popu)+I((log(1+aset))^2)+I(popu^2),data=s,weights=1/exp(fitted(auxreg11)))Residuals:Min 1Q Median 3Q Max-18.8653-1.0939 0.1058 1.3067 7.0914Coefficients:EstimateStd.ErrortvaluePr(>|t|)(Intercept)8.7623490.30413428.811<2e-16***exper0.0095540.0024353.9248.90e-05***edu0.0559500.0064108.728<2e-16***land-0.0032200.014662-0.2200.826174log(1+aset)-0.2470010.068866-3.5870.000340***popu-0.3231270.048913-6.6064.68e-11***labor0.0322020.0137272.3460.019050*I(land*log(1+aset))0.002964 0.001488 1.9920.046511*18I(land*popu) -0.003249 0.001349-2.4090.016060*I((log(1+aset))^2) 0.020142 0.004598 4.3801.23e-05***I(popu^2) 0.019792 0.004796 4.1273.78e-05***---Signif.codes:0 ‘***’0.001 ‘**’0.01 ‘*’0.05 ‘.’0.1 ‘’1Residualstandarderror:2.155on2877degreesoffreedomMultipleR-squared:0.19, AdjustedR-squared:0.1872F-statistic:67.5on10and2877DF,p-value:<2.2e-162)ResistantRegressionlibrary("MASS")s_lts11=lqs(log(income)~exper+edu+land+log(1+aset)+popu+labor+I(land*log(1+aset))+I(land*popu)+I((log(1+aset))^2)+I(popu^2),data=s)summary(s_lts11)smallresid=which(abs(residuals(s_lts11)/s_lts11$scale[2])<=2.5)X=model.matrix(s_lm11)[,-1]Xcv=cov.rob(X)nohighlel=which(sqrt(mahalanobis(X,Xcv$center,Xcv$cov))<=2.5)goodobs=unique(c(smallresid,nohighlel))rownames(s)[-goodobs]19s_rob11=update(s_lm11,subset=goodobs)summary(s_rob11)Call:lm(formula=log(income)~exper+edu+land+log(1+aset)+popu+labor+I(land*log(1+aset))+I(land*popu)+I((log(1+aset))^2)+I(popu^2),data=s,subset=goodobs)Residuals:Min 1QMedian 3Q Max-3.5597-0.34110.00480.36261.9217Coefficients:EstimateStd.ErrortvaluePr(>|t|)(Intercept)9.01236800.275032732.768<2e-16***exper0.01148380.00214485.3549.30e-08***edu0.06672640.005812311.480<2e-16***land-0.00802810.0150048-0.5350.59267log(1+aset)-0.32739310.0604857-5.4136.74e-08***popu-0.35915350.0407376-8.816<2e-16***labor0.03710870.01253402.9610.00310**I(land*log(1+aset))0.00179440.00151031.188
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- NBT47018.5堆焊材料研究
- 2026年消费电子市场洞察
- 十五五:智能全光谱植物灯在拉美咖啡种植园的应用实践
- 十五五出海机遇:智能垃圾分类与收运系统在东南亚落地实践
- 十五五双碳目标:智能恒温花洒能效标准升级与绿色认证体系
- 关于广东省新能源二手车交易项目内部创业孵化投资回报测算
- 2026年半导体行业市场分析报告及未来五年展望
- 2026年医药电商行业市场现状与未来趋势报告
- 2026年破壁机市场消费者需求与产品创新趋势研究报告001
- 2026年知识产权保护政策与行业报告
- 2026年工艺员考试模拟试卷带答案
- 内科学第8版急性胰腺炎课件
- 《护理管理培训》课件
- 2026年四川省拟任县处级领导干部任职资格试题及参考答案
- 《纪检监察机关派驻机构工作规则》 测试竞赛考试练习题库(附答案)
- 2026秋新北师大版数学六年级上册教学课件:数学好玩 五子棋
- TCNAS 59-2026 《患者自控镇痛护理》全面解读
- 记账实操-3D打印服务行业会计分录
- 华电E学考试答案2026
- 江苏国信集团招聘笔试题目
- 统编版高中历史必修中外历史纲要(上)必背知识点复习提纲(填空版+答案版)
评论
0/150
提交评论