变量主页被篡改怎么办

主页被篡改怎么办  时间:2021-04-05  阅读:()
155555667777771010101010101010101111111111111111111112121212121212131313131313131314目录目录HomeStata连享会-Wiki页面连享会计量方法专题系列目标基本主题(待补充)stata基础如何寻求-Stata-问题帮助stata小抄1.
Stata数据处理基础2.
Stata数据变换3.
数据的可视化分析4.
Stata绘图图中使用的dofileStata教科书范例链接(Jiarui-负责)1.
Stata入门经典入门参考:AGentleIntroductiontoStata回顾Stata历史:ThirtyYearswithStata:ARetrospective理解Stata的一些建议:OneHundredNineteenStataTips2.
Stata数据分析数据分析入门:DataAnalysisUsingStata数据分析策略:TheWorkflowofDataAnalysisUsingStata数据管理:DataManagementUsingStataMeta分析:Meta-AnalysisinStata:AnUpdatedCollectionfromtheStataJournal数据分析和可重复性:AnIntroductiontoStataforHealthResearchers3.
Stata绘图绘图入门指南:AVisualGuidetoStataGraphics绘图进阶:SpeakingStataGraphics4.
Stata程序Stata程序介绍:AnIntroductiontoStataProgramming5.
Stata复杂模型系类结构方程:DiscoveringStructuralEquationModelingUsingStata离散选择模型:RegressionModelsforCategoricalDependentVariablesUsingStata时间序列分析:IntroductiontoTimeSeriesUsingStata回归模型的解释和可视化:InterpretingandVisualizingRegressionModelsUsingStata生存分析:AnIntroductiontoSurvivalAnalysisUsingStata广义线性混合模型:MultilevelandLongitudinalModelingUsingStata生存分析进阶:FlexibleParametricSurvivalAnalysisUsingStata:BeyondtheCoxModel最大似然估计:MaximumLikelihoodEstimationwithStata贝叶斯分析:BayesianAnalysiswithStata广义线性模型:GeneralizedLinearModelsandExtensions6.
Stata与学科联系在计量经济学中应用:AnIntroductiontoModernEconometricsUsingStata在金融计量中应用(主要是时间序列):FinancialEconometricsUsingStata在行为科学中应用:StatafortheBehavioralSciences在微观计量经济学中应用:MicroeconometricsUsingStata在健康计量经济学中应用(如分析卫生保健数据):HealthEconometricsUsingStata6.
Stata法语系类统计、绘图、编程(较全):Stataparlapratique:statistiques,graphiquesetélémentsdeprogrammation目录1/631414151515151616161616161617212121222223232324242526262727272728282828282929303131313131313131313131Stata软件入门:ProbabilitéetStatistiquepourlesSciencesdelaSanté:ApprentissageauMoyenduLogicielStata在经济学和社会学的应用:AplicacionesenEconomíayCienciasSocialesconStataStata资料链接在线课程和资料论坛个人Blogs结果输出基本统计量组间均值差异检验相关系数矩阵回归结果输出边际效果一组直接输出Word表格的命令连玉君的profile.
do文件.
mdStata资源Excel-导入Stata-todolist导入典型数据库数据中国数据Stata习题Stata数据处理变量标签Stata数据分析概览数据的纵横变换LongWide数据库内搜索关键词数据文件格式转换不同数据文件之间的转换数据合并和追加标示变量横向合并(Merge)纵向追加(Append)离群值界定影响常用变量处理方法估计方法缺失值多重补漏分析数据和统计表格导出文本分析命令列表文件操作文件夹相关文件批量改名批量移动和删除文件文本导入文本替换变量操作变量字符替换字符和编码目录2/633132333333333333343434343535353636363636373737373738383838393940404143444444454647484950515252535353文本分析求和函数和命令Stata绘图stata绘图概览帮助文件图形设定特殊图形Stata程序暂元(macro,-local,-global)主要命令BlogsStata程序命令列表和资源链接参考资料程序概览标准误Stata命令Statablogs标准误计算稳健性标准误下的假设检验回归分析因子变量(Factor-Variables)BlogsSlidesLecturesStata-中因子变量变量表述因子变量1.
问题背景2.
因子变量的基本语法规则3.
回归中的基本引用方式4.
基准组的设定问题5.
因子变量的交乘项6.
输出回归结果时的问题7.
margins与marginsplot命令的使用边际效应-(margins)简介Statablogs滚动回归-(Rolling-window-regression)共线性-VIF等交乘项回归系数的图形呈现模型设定组间系数差异检验分组统计和回归时间序列时间序列基础面板面板相关检验面板相关检验目录3/63535353535454545556565656575758585859595959596060606060606061616262模型筛选Blogs序列相关检验面板单位根固定效应(二维和高维)TwoWayFiexedEffectsMultipleFixedEffects动态面板Logit-ProbitLogit-模型Logit基础边际效应面板LogitBiascorrectionsforprobitandlogitmodelswithtwo-wayfixedeffect内生性-处理效应内生性概览Blogs断点回归-RDD倾向得分-PSM倍分法-DIDDID---Stata-范例balancetest合成控制法-SCM事件研究法事件研究法及stata实现事件研究法原理事件研究法资源Stata范例Stata外部命令随机边界-SFA随机边界分析文件输出Stata2Word.
md目录4/63点我查看wikiStata连享会主页||视频||推文扫码查看连享会最新专题、公开课视频和100多个码云计量仓库链接.
NEW!
连享会·公众号推文专辑:Stata资源|数据处理|Stata绘图|Stata程序结果输出|回归分析|时间序列|面板数据|离散数据交乘调节|DID|RDD|因果推断|SFA-TFP-DEA文本分析+爬虫|空间计量|学术论文|软件工具想做一个Stata资料速查表,包括:FAQ,常用命令,Blogs.
目前只在wiki中搭建了简单的框架,还需更多的同仁们一起参与来完成这个项目.
合作方法:1.
注册一个码云账号,2.
发送邮件到StataChina@163.
com,告知您的姓名,所在学校,码云账号,以及你的研究专长.
数据处理绘图Stata程序面板数据模型(Paneldatamodels)IV-GMM估计倍分法(DID)倾向得分匹配分析(PSM)断点回归分析(RDD)合成控制法(SCM)HomeHomeStata连享会-Wiki页面Stata连享会-Wiki页面连享会计量方法专题系列连享会计量方法专题系列目标目标基本主题(待补充)基本主题(待补充)Home5/63英文:参见Statalist以及StatalistFAQ中文:参见人大论坛Stata专版的发帖建议stata基础stata基础如何寻求-Stata-问题帮助如何寻求-Stata-问题帮助stata基础6/63原文链接1|原文链接2完整PDF版本下载请点击github-StataChina下载.
stata小抄stata小抄1.
Stata数据处理基础1.
Stata数据处理基础2.
Stata数据变换2.
Stata数据变换3.
数据的可视化分析3.
数据的可视化分析4.
Stata绘图4.
Stata绘图图中使用的dofile图中使用的dofilestata基础7/63stata基础8/63往期回顾¤Stata兄弟:提问时能否有点诚意用dataex吧¤[转]Unicode和UTF-8有何区别¤一个博士生该掌握哪些基本工具(武器)stata基础9/63目前,学习Stata的资源已经非常丰富了.
在【Stata连享会:Stata帮助和网络资源汇总】文中,我们对Stata的网络资源进行了总体性的介绍.
本文重点介绍**StataPress**教辅网站上列出的书籍(书名中通常以xxxusingStata字样),其中,英文著作已经有29本,涵盖了社会科学、经济、金融、管理等学科中使用的主流方法.
为方便大家学习,现把官网该书籍整理出来,并附上目前从网络中可以搜索到的PDF链接,以方便各位的学习.
书籍介绍书籍介绍:AlanC.
Acock'sAGentleIntroductiontoStata,FifthEditionisaimedatnewStatauserswhowantto**becomeproficientinStata**.
Afterreadingthisintroductorytext,newuserswillbeablenotonlytouseStatawellbutalsotolearnnewaspectsofStata.
出版年份出版年份:2016版本信息版本信息:第五版PDF链接书籍介绍书籍介绍:ThisvolumeisasometimesseriousandsometimeswhimsicalretrospectiveofretrospectiveofStata,itsdevelopment,anditsuseoverthelast30Stata,itsdevelopment,anditsuseoverthelast30years.
years.
出版年份出版年份:2015版本信息版本信息:第一版书籍介绍书籍介绍:OneHundredNineteenStataTipsprovidesconciseandinsightfulnotesaboutcommands,features,andtricksthatwill**helpyouobtainadeeperunderstandingofStata**.
ThebookcomprisesthecontributionsoftheStatacommunitythathaveappearedintheStataJournalsince2003.
出版年份出版年份:2014版本信息版本信息:第三版PDF链接书籍介绍书籍介绍:*DataAnalysisUsingStata*,ThirdEditionhasbeencompletelyrevampedtoreflectthecapabilitiesofStata12.
ThisbookwillappealtothosejustlearningstatisticsandStata,aswellastothemanyuserswhoareswitchingtoswitchingtoStatafromotherpackagesStatafromotherpackages.
Throughoutthebook,KohlerandKreutershowexamplesusingdatafromtheGermanSocio-EconomicPanel,alargesurveyofhouseholdscontainingdemographic,income,employment,andotherkeyinformation.
出版年份出版年份:2012版本信息版本信息:第三版PDF链接书籍介绍书籍介绍:*TheWorkflowofDataAnalysisUsingStata*,byJ.
ScottLong,isanessentialproductivitytoolfordataanalystsanessentialproductivitytoolfordataanalysts.
Aimedatanyonewhoanalyzesdata,thisbookpresentsaneffectivestrategyfordesigninganddoingdata-analyticprojects.
出版年份出版年份:2009版本信息版本信息:第一版PDF链接书籍介绍书籍介绍:MichaelN.
Mitchell's*DataManagementUsingStata*comprehensivelycoversdata-managementtasksdata-managementtasks,fromthoseabeginningstatisticianwouldneedtothosehard-to-verbalizetasksthatcanconfoundanexperienceduser.
Mitchelldoesthisallinsimplelanguagewithillustrativeexamples.
出版年份出版年份:2010版本信息版本信息:第一版PDF链接Stata教科书范例链接(Jiarui-负责)Stata教科书范例链接(Jiarui-负责)1.
1.
Stata入门Stata入门经典入门参考:经典入门参考:AGentleIntroductiontoAGentleIntroductiontoStataStata回顾回顾Stata历史:Stata历史:ThirtyYearswithThirtyYearswithStata:ARetrospectiveStata:ARetrospective理解Stata的一些建议:理解Stata的一些建议:OneHundredNineteenOneHundredNineteenStataTipsStataTips2.
2.
Stata数据分析Stata数据分析数据分析入门:数据分析入门:DataAnalysisUsingDataAnalysisUsingStataStata数据分析策略:数据分析策略:TheWorkflowofDataAnalysisUsingTheWorkflowofDataAnalysisUsingStataStata数据管理:数据管理:DataManagementUsingDataManagementUsingStataStatastata基础10/63书籍介绍书籍介绍:Statahassomeofthebeststatisticaltoolsavailablefordoingmeta-analysisdoingmeta-analysis.
TheunusualthingaboutthesetoolsisthatnoneofthemarepartofofficialStata,soyouwillnotfindthemintheStatadocumentation.
TheyareallcontributedanddocumentedbyresearchersinthefieldwhoalsohappentobeproficientStatadevelopers.
出版年份出版年份:2016版本信息版本信息:第二版PDF链接书籍介绍书籍介绍:SvendJuulandMortenFrydenberg'sAnIntroductiontoStataforHealthResearchers,FourthEditionisdistinguishedinitscarefulattentiontodetail.
Thereaderwilllearnnotonlytheskillsforstatisticalanalysisbutalsotheskillstomaketheanalysisreproduciblelearnnotonlytheskillsforstatisticalanalysisbutalsotheskillstomaketheanalysisreproducible.
Theauthorsuseafriendly,down-to-earthtoneandincludetipsgainedfromalifetimeofcollaborationandconsulting.
出版年份出版年份:2014版本信息版本信息:第四版书籍介绍书籍介绍:Thebookretainsitsvisualstyle,presentingthereaderwithacolor-coded,visualtableofcontentspresentingthereaderwithacolor-coded,visualtableofcontentsthatrunsalongtherightedgeofeverypageandshowsreadersexactlywheretheyareinthebook.
Youcanseethecolor-codedchaptertabswithoutopeningthebook,providingquickvisualaccesstoeachchapter.
出版年份出版年份:2012版本信息版本信息:第三版PDF链接书籍介绍书籍介绍:SpeakingStataGraphicsisidealforresearcherswhowanttoproduceeffective,publication-qualitygraphsproduceeffective,publication-qualitygraphs.
Acompilationofarticlesfromthepopular"SpeakingStata"columnbyNicholasJ.
Cox,thisbookprovidesvaluableinsightsaboutStata'sbuilt-inanduser-writtenstatistical-graphicscommands.
出版年份出版年份:2014版本信息版本信息:第一版书籍介绍书籍介绍:ChristopherBaum'sAnIntroductiontoStataProgrammingisworthwhileforanyonewantingto**learnaboutprogramminginStata**.
Forthebeginner,BaumassumesonlythattheuserisfamiliarwithStata,andsohebuildsupaccordingly.
ForthemoreadvancedStataprogrammer,thebookintroducesStata'sMataprogramminglanguageandprovidesoptimizationtipsforday-to-daywork.
出版年份出版年份:2016版本信息版本信息:第二版PDF链接书籍介绍:书籍介绍:*DiscoveringStructuralEquationModelingUsingStata*,RevisedEdition,byAlanAcock,successfullyintroducesboththestatisticalprinciplesinvolvedinstructuralequationmodeling(SEMSEM)andtheuseofStatatofitthesemodels.
Thebookusesanapplication-basedapproachtoteachingSEMteachingSEM.
AcockdemonstrateshowtofitawidevarietyofmodelsthatfallwithintheSEMframeworkandprovidesdatasetsthatenablethereadertofollowalongwitheachexample.
Aseachtypeofmodelisdiscussed,conceptssuchasidentification,handlingofmissingdata,modelevaluation,andinterpretationarecoveredindetail.
出版年份出版年份:2013版本信息版本信息:修订版PDF链接书籍介绍书籍介绍:*RegressionModelsforCategoricalDependentVariablesUsingStata*,ThirdEdition,byJ.
ScottLongandJeremyFreese,isanessentialreferenceforthosewhouseStatatofitandinterpretregressionmodelsforcategoricaldataregressionmodelsforcategoricaldata.
Althoughregressionmodelsforcategoricaldependentvariablesarecommon,fewtextsexplainhowtointerpretsuchmodels;thistextdecisivelyfillsthevoid.
Meta分析:Meta分析:Meta-AnalysisinMeta-AnalysisinStata:AnUpdatedCollectionfromtheStata:AnUpdatedCollectionfromtheStataJournalStataJournal数据分析和可重复性:数据分析和可重复性:AnIntroductiontoAnIntroductiontoStataforHealthResearchersStataforHealthResearchers3.
3.
Stata绘图Stata绘图绘图入门指南:绘图入门指南:AVisualGuidetoAVisualGuidetoStataGraphicsStataGraphics绘图进阶:绘图进阶:SpeakingSpeakingStataGraphicsStataGraphics4.
4.
Stata程序Stata程序Stata程序介绍:Stata程序介绍:AnIntroductiontoAnIntroductiontoStataProgrammingStataProgramming5.
5.
Stata复杂模型系类Stata复杂模型系类结构方程:结构方程:DiscoveringStructuralEquationModelingUsingDiscoveringStructuralEquationModelingUsingStataStata离散选择模型:离散选择模型:RegressionModelsforCategoricalDependentVariablesUsingRegressionModelsforCategoricalDependentVariablesUsingStataStatastata基础11/63出版年份出版年份:2014版本信息版本信息:第三版PDF链接书籍介绍书籍介绍:*IntroductiontoTimeSeriesUsingStata*,bySeanBecketti,providesapracticalguidetoworkingwith**time-seriesdatausingStata**andwillappealtoabroadrangeofusers.
Themanyexamples,conciseexplanationsthatfocusonintuition,andusefultipsbasedontheauthor'sdecadesofexperienceusingtime-seriesmethodsmakethebookinsightfulnotjustforacademicusersbutalsoforpractitionersinindustryandgovernment.
出版年份出版年份:2013版本信息版本信息:第一版PDF链接书籍介绍书籍介绍:MichaelMitchell's*InterpretingandVisualizingRegressionModelsUsingStata*isacleartreatmentofhowtocarefullypresentacleartreatmentofhowtocarefullypresentresultsfrommodel-fittinginawidevarietyofsettingsresultsfrommodel-fittinginawidevarietyofsettings.
Itisaboontoanyonewhohastopresentthetangiblemeaningofacomplexmodelinaclearfashion,regardlessoftheaudience.
Asanexample,manyexperiencedresearchersstarttosquirmwhenaskedtogiveasimpleexplanationofthepracticalmeaningofinteractionsinnonlinearmodelssuchaslogisticregression.
ThetechniquespresentedinMitchell'sbookmakeansweringthosequestionseasy.
Theoverarchingthemeofthebookisthatgraphsmakeinterpretingeventhemostcomplicatedmodelscontaininginteractionterms,categoricalvariables,andotherintricaciesstraightforward.
出版年份出版年份:2012版本信息版本信息:第一版书籍介绍书籍介绍:*AnIntroductiontoSurvivalAnalysisUsingStata*,ThirdEditionistheidealtutorialforprofessionaldataanalystswhowanttolearnsurvivalanalysislearnsurvivalanalysisforthefirsttimeorwhoarewellversedinsurvivalanalysisbutarenotasdexterousinusingStatatoanalyzesurvivaldata.
ThistextalsoservesasavaluablereferencetothosereaderswhoalreadyhaveexperienceusingStata'ssurvivalanalysisroutines.
出版年份出版年份:2016版本信息版本信息:第三版PDF链接书籍介绍书籍介绍:MultilevelandLongitudinalModelingUsingStata,ThirdEdition,bySophiaRabe-HeskethandAndersSkrondal,looksspecificallyat**Stata'streatmentofgeneralizedlinearmixedmodels,alsoknownasmultilevelorhierarchicalmodels.
Thesemodelsare"mixed"becausetheyallowfixedandrandomeffectsallowfixedandrandomeffects,andtheyare"generalized"becausetheyareappropriateforcontinuousGaussianresponsesaswellasbinary,count,andothertypesoflimiteddependentvariables.
出版年份出版年份:2012版本信息版本信息:第三版PDF卷一链接PDF卷二链接书籍介绍书籍介绍:FlexibleParametricSurvivalAnalysisUsingStata:BeyondtheCoxModelisconcernedwithobtainingacompromisebetweenCoxobtainingacompromisebetweenCoxandparametricmodelsandparametricmodelsthatretainsthedesiredfeaturesofbothtypesofmodels.
ThebookisaimedatresearcherswhoarefamiliarwiththebasicconceptsofsurvivalanalysisandwiththestcoxandstregcommandsinStata.
Assuch,itisanexcellentcomplementtoAnIntroductiontoSurvivalAnalysisUsingStatabyCleves,Gould,Gutierrez,andMarchenko.
出版年份出版年份:2011版本信息版本信息:第一版PDF链接书籍介绍书籍介绍:*MaximumLikelihoodEstimationwithStata*,FourthEditionistheessentialreferenceandguideforresearchersinalldisciplineswhowishto**writemaximumlikelihood(ML)estimatorsinStata**.
BeyondprovidingcomprehensivecoverageofStata'smlcommandforwritingMLestimators,thebookpresentsanoverviewoftheunderpinningsofmaximumlikelihoodandhowtothinkaboutMLestimation.
出版年份出版年份:2010版本信息版本信息:第四版PDF链接时间序列分析:时间序列分析:IntroductiontoTimeSeriesUsingIntroductiontoTimeSeriesUsingStataStata回归模型的解释和可视化:回归模型的解释和可视化:InterpretingandVisualizingRegressionModelsUsingInterpretingandVisualizingRegressionModelsUsingStataStata生存分析:生存分析:AnIntroductiontoSurvivalAnalysisUsingAnIntroductiontoSurvivalAnalysisUsingStataStata广义线性混合模型:广义线性混合模型:MultilevelandLongitudinalModelingUsingMultilevelandLongitudinalModelingUsingStataStata生存分析进阶:生存分析进阶:FlexibleParametricSurvivalAnalysisUsingFlexibleParametricSurvivalAnalysisUsingStata:BeyondtheCoxModelStata:BeyondtheCoxModel最大似然估计:最大似然估计:MaximumLikelihoodEstimationwithMaximumLikelihoodEstimationwithStataStata贝叶斯分析:贝叶斯分析:BayesianAnalysiswithBayesianAnalysiswithStataStatastata基础12/63书籍介绍书籍介绍:*BayesianAnalysiswithStata*isacompleteguidetousingStataforBayesiananalysisBayesiananalysis.
ItcontainsjustenoughtheoreticalandfoundationalmaterialtobeusefultoalllevelsofusersinterestedinBayesianstatistics,fromneophytestoaficionados.
出版年份出版年份:2014版本信息版本信息:第一版书籍介绍书籍介绍:Generalizedlinearmodels(GLMs)Generalizedlinearmodels(GLMs)extendlinearregressiontomodelswithanon-Gaussian,orevendiscrete,response.
GLMtheoryispredicatedontheexponentialfamilyofdistributions—aclasssorichthatitincludesthecommonlyusedlogit,probit,andPoissonmodels.
AlthoughonecanfitthesemodelsinStatabyusingspecializedcommands(forexample,logitforlogitmodels),fittingthemasGLMswithStata'sglmcommandofferssomeadvantages.
Forexample,modeldiagnosticsmaybecalculatedandinterpretedsimilarlyregardlessoftheassumeddistribution.
出版年份出版年份:2012版本信息版本信息:第三版书籍介绍书籍介绍:*AnIntroductiontoModernEconometricsUsingStata*,byChristopherF.
Baum,**successfullybridgesthegapbetweenlearningeconometricsandlearninghowtouseStata**.
Thebookpresentsacontemporaryapproachtoeconometrics,emphasizingtheroleofmethod-of-momentsestimators,hypothesistesting,andspecificationanalysiswhileprovidingpracticalexamplesshowinghowthetheoryisappliedtorealdatasetsbyusingStata.
出版年份出版年份:2006版本信息版本信息:修订版PDF链接书籍介绍书籍介绍:*FinancialEconometricsUsingStata*bySimonaBoffelliandGiovanniUrgaprovidesanexcellentintroductiontotime-seriesanexcellentintroductiontotime-seriesanalysisanalysisandhowtodoitinhowtodoitinStataforfinancialeconomistsStataforfinancialeconomists.
Aimedatresearchers,graduatestudents,andindustrypractitioners,thisbookintroducesreaderstowidelyusedmethods,showsthemhowtoperformthesemethodsinStata,andillustrateshowtointerprettheresults.
出版年份出版年份:2016版本信息版本信息:第一版书籍介绍书籍介绍:*StatafortheBehavioralSciences*,byMichaelMitchell,istheidealreferenceforresearchersusingtheidealreferenceforresearchersusingStatatofitANOVAmodelsStatatofitANOVAmodelsandothermodelscommonlyappliedtobehavioralsciencedataandothermodelscommonlyappliedtobehavioralsciencedata.
Drawingonhiseducationinpsychologyandhisexperienceinconsulting,Mitchellusesterminologyandexamplesfamiliartothereaderashedemonstrateshowtofitavarietyofmodels,howtointerpretresults,howtounderstandsimpleandinteractioneffects,andhowtoexploreresultsgraphically.
出版年份出版年份:2015版本信息版本信息:第一版书籍介绍书籍介绍:*MicroeconometricsUsingStata*,RevisedEdition,byA.
ColinCameronandPravinK.
Trivedi,is**anoutstandingintroductiontomicroeconometricsandhowtodomicroeconometricresearchusingStata**.
Aimedatstudentsandresearchers,thisbookcoverstopicsleftoutofmicroeconometricstextbooksandomittedfrombasicintroductionstoStata.
CameronandTrivediprovidethemostcompleteandup-to-datesurveyofmicroeconometricmethodsavailableinStata.
出版年份出版年份:2010版本信息版本信息:第一版PDF链接书籍介绍书籍介绍:*HealthEconometricsUsingStata*byParthaDeb,EdwardC.
Norton,andWillardG.
Manningprovidesanexcellentoverviewoftheoverviewofthemethodsusedtoanalyzedataonhealthcareexpenditureandusemethodsusedtoanalyzedataonhealthcareexpenditureanduse.
Aimedatresearchers,graduatestudents,andpractitioners,thisbookintroducesreaderstowidelyusedmethods,showsthemhowtoperformthesemethodsinStata,andillustrateshowtointerprettheresults.
EachmethodisdiscussedinthecontextofanexampleusinganextractfromtheMedicalExpenditurePanelSurvey.
出版年份出版年份:2017版本信息版本信息:第一版广义线性模型:广义线性模型:GeneralizedLinearModelsandExtensionsGeneralizedLinearModelsandExtensions6.
6.
Stata与学科联系Stata与学科联系在计量经济学中应用:在计量经济学中应用:AnIntroductiontoModernEconometricsUsingAnIntroductiontoModernEconometricsUsingStataStata在金融计量中应用(主要是时间序列):在金融计量中应用(主要是时间序列):FinancialEconometricsUsingFinancialEconometricsUsingStataStata在行为科学中应用:在行为科学中应用:StatafortheBehavioralSciencesStatafortheBehavioralSciences在微观计量经济学中应用:在微观计量经济学中应用:MicroeconometricsUsingMicroeconometricsUsingStataStata在健康计量经济学中应用(如分析卫生保健数据):在健康计量经济学中应用(如分析卫生保健数据):HealthEconometricsUsingHealthEconometricsUsingStataStata6.
6.
Stata法语系类Stata法语系类stata基础13/63书籍介绍书籍介绍:*Stataparlapratique*parEricCahuzacetChristopheBontempsproposeuneintroductioncomplèteàl'usagedeproposeuneintroductioncomplèteàl'usagedeStataenStataenFranaisFranais.
S'appuyantsurdesexemplesclairsécritsdansunlangagesimple,cetouvrageguidel'utilisateurautraversdesdifférentesfonctionnalitésdeStata10.
L'ensembledesoutilsnécessairesàuntravailsurdonnéesestabordé:explorationdesdonnées,statistiquesdescriptives,modélisation,inférence,tests,graphiques,ainsiquelessortiespourpublication.
Enoutre,l'ouvrageinclutégalementuneintroductionàlaprogrammationetproposedesextraitsdecodeutilespourrésoudrelesproblèmesfréquemmentrencontrésparlesutilisateurs.
Ilcontientlematérielessentielpourtransformerledébutantenexpert,laclartédel'ouvragerendantceprocessusparticulièrementrapide.
出版年份出版年份:2008版本信息版本信息:修订版书籍介绍书籍介绍:*ProbabilitéetStatistiquepourlesSciencesdelaSanté:ApprentissageauMoyenduLogicielStata*,parPatrickTaffé,seveutunlivredifférentdenombreuxouvragesthéoriquestraitantdesprobabilitésetdelastatistique.
livredifférentdenombreuxouvragesthéoriquestraitantdesprobabilitésetdelastatistique.
Cetouvrage(enfranais)nonseulementprésente,defaonrigoureuse,lesconceptsetméthodesstatistiques,maisaussiutilisedesexemplesconcretspourillustrerchaqueconceptthéoriquenouvellementintroduit.
LelecteurvaapprendreàréaliserdesanalysesaumoyendeStata,basésurdesvraiesdonnées.
Denombreusesillustrationsetnombreuxexemplesd'applicationssontdonnéspourapprendreaulecteuràmettreenpratiquelestechniquesd'analyse.
Enfin,desexercicesàréaliseravecStataetimpliquantleplussouventunpetitjeudedonnées,sontproposésàlafindechaquesectionafindemettreenoeuvrelesconnaissancesnouvellementacquises.
出版年份出版年份:2014版本信息版本信息:第一版书籍介绍书籍介绍:*AplicacionesenEconomíayCienciasSocialesconStata*eslaprimerapublicaciónenespaoldeeslaprimerapublicaciónenespaoldeStataPressStataPress.
ElcontenidohasidoelresultadodeuntrabajoquereúneadiversosautoresendiferentesáreasdeconocimientoyquemuestranelusodeunavariedaddeherramientasdeanálisisdisponiblesenStata.
Cadaunodeloscapítulospresentaeldesarrollodeunainvestigaciónparticulardondeseanalizauntópicoespecíficoyseempleantécnicasestadísticasyeconométricasparasustentarlasconclusionesconresultadosempíricosquepuedenserensumayoríareproducidoscondatosydo-filesdisponiblesenlapáginawebdellibro.
Seintentadeestamaneraqueellectortengaaccesodirectoalametodologíaempleadaporcadaunodelosautores.
出版年份出版年份:2013版本信息版本信息:第一版统计、绘图、编程(较全):统计、绘图、编程(较全):Stataparlapratique:statistiques,graphiquesetélémentsdeprogrammationStataparlapratique:statistiques,graphiquesetélémentsdeprogrammationStata软件入门:Stata软件入门:ProbabilitéetStatistiquepourlesSciencesdelaSanté:ApprentissageauMoyenduLogicielProbabilitéetStatistiquepourlesSciencesdelaSanté:ApprentissageauMoyenduLogicielStataStata在经济学和社会学的应用:在经济学和社会学的应用:AplicacionesenEconomíayCienciasSocialesconAplicacionesenEconomíayCienciasSocialesconStataStatastata基础14/63DATAANALYSISNOTES:LINKSANDGENERALGUIDELINESSSCC在线课程GitHub提供了大量用Stata完成的项目的完整数据和dofile等.
可以在github中搜索stata.
如果自己有账号,可以直接点击fork按钮,把这个项目完整地克隆到你的账号中,你可以做进一步修改.
如果你还有码云账户(我的码云),则可以直接把github中的项目直接clone到你的码云账户中.
人大论坛StataVIP专区StataListStackoverflowStackExchangeStackExchangeSuperuser高级用户经常出没的地方EconomicsJobmarketRumors很多博士生出没EconometricsBySimulationStataJulia博客,写的比较粗糙,但内容广泛Stata资料链接Stata资料链接在线课程和资料在线课程和资料论坛论坛个人Blogs个人Blogsstata基础15/63使用如下命令将基本统计量、相关系数矩阵和回归结果输出到Word或Excelhelptabstat//Stata官方命令helpfsum//可以很好地呈现类别变量的统计量helpttest//t检验,官方命令helpttable2//helpestout//参见[]helppwcorr//Stata官方命令helppwcorr_a//连玉君更新命令,可以呈现显著水平,加星号helpesttab各种范例各种范例,输出VIF输出VIFhelpoutreg2//PrincetonPDF范例PrincetonPDF范例,helpfrmttable//写程序专用,将矩阵结果输出为word或Tex文档使用estout输出mlogit的边际效应helpsum2docx//输出基本统计量到Wordhelpt2docx//输出均值差异检验结果表格到Wordhelpcorr2docx//输出Pearson&Spearman相关系数矩阵到Wordhelpreg2docx//输出回归结果到Word结果输出结果输出基本统计量基本统计量组间均值差异检验组间均值差异检验相关系数矩阵相关系数矩阵回归结果回归结果输出边际效果输出边际效果一组直接输出Word表格的命令一组直接输出Word表格的命令stata基础16/63*连玉君的profile.
do文档*-说明:*此文件设定了每次启动stata时需要做的一些基本设定*你可以在此文件中添加你希望在stata启动时立刻执行的命令*-不要自动更新setupdate_queryoff/*dis_n(30)if"`c(sysdir_stata)'"=="D:\stata15/"|"`c(sysdir_stata)'"=="d:\stata15/"{localD"D"}else{disinw"请在command窗口中输入stata所在的盘符,按回车键:______"disinw"(e.
g.
若stata15放置于F盘根目录下,即F:\stata15,则输入f或F即可)"disinw"Hereismystata:"_request(isD)localD"$isD"}*/settypedouble//设定generate命令产生的新变量为双精度类型setmatsize800//设定矩阵的维度为2000x2000setscrollbufsize2000000//结果窗口中显示的行数上限setmoreoff,perma//关闭分页提示符setcformat%4.
3f//回归结果中系数的显示格式setpformat%4.
3f//回归结果中p值的显示格式setsformat%4.
2f//回归结果中se值的显示格式*-有关这一部分的完整设定命令,请输入helpset命令进行查看sysdirsetPLUS"`c(sysdir_stata)'ado\plus"//外部命令的存放位置sysdirsetPERSONAL"`c(sysdir_stata)'ado\personal"//个人文件夹位置*sysdirsetOLDPLACE"D:\Peixun"*采用相似的方式,可添加其它允许stata搜索的目录adopath+"`c(sysdir_stata)'\ado\personal\_myado"*adopath+"路径2"*log文件:自动以当前日期为名存放于stata13\do文件夹下*若stata13\下没有do文件夹,则本程序会自动建立一个capcd`c(sysdir_stata)'doif_rc{mkdir`c(sysdir_stata)'do//检测后发现无do文件夹,则自行建立一个}*-这个盗版的stata15使用了一个插件篡改电脑时间,导致如下命令无法运行,*也就使得我们无法以电脑时间为基础来新建log文件.
localfn=subinstr("`c(current_time)2)localfn1=subinstr("`c(current_date)3)logusing`c(sysdir_stata)'do\log-`fn1'-`fn'.
log,textreplacecmdlogusing`c(sysdir_stata)'do\cmd-`fn1'-`fn'.
log,replace*-解决方法:*每次开机时,从http://time.
tianqi.
com/读取网络北京时间,*然后以改时间为基础新建log文件.
连玉君的profile.
do文件.
md连玉君的profile.
do文件.
mdstata基础17/63/*tempfilebjtimecopyhttp://time.
tianqi.
com/`bjtime'.
txt,replaceinfixstrLv1-1000using"`bjtime'.
txt",clearkeepifstrmatch(v,"*[搜索],然后输入[Phrases.
ini]*进而从地址栏中复制地址*-方法2:用everything软件查询,然后右击文件名,选择[复制完整路径和文件名(F)]localp"sougou"capprogramdrop`p'programdefine`p'*shelloutC:\DocumentsandSettings\Administrator\ApplicationData\SogouPY.
users\00000001\Phrases.
ini*shelloutC:\Users\Administrator\AppData\LocalLow\SogouPY.
users\00000001\phrases.
inishelloutC:\Users\Administrator\AppData\LocalLow\SogouPY.
users\00000002\PhraseEdit.
txtend*-----Stata15转码方法(一次性处理.
dta转码问题)----*-一次性转换当前工作路径下的所有文件capprogramdropuniallprogramdefineuniall*-说明:dofile或数据文件中包含中文字符时,需要转码才能正常显示*-Step1:分析当前工作路径下的编码情况*unicodeanalyze**-Step2:设定转码类型ua:unicodeencodingsetgb18030//中文编码*-Step3:转换文件ua:unicodetranslate*endjslist/*cls//清屏*/stata基础20/63helpcsvconvert//将文件夹下的多个.
csv文件一次性合并为一个Stata.
dta数据文件SJ14(3):662--669helpprecombine//Examinen>=2Statadatasetsbeforecombining,SJ15-3SJ-8-3dm0038.
.
kountry:Mergingcross-countrydatafrommultiplesourcesR.
Raciborski(kountry,kountryadd,kountrybackup,kountrynames,kountryregionsifinstalled)Q3/08SJ8(3):390--400translatesonecountry-codingschemeintoanother,recodescountrynamesintoastandardizedform,andgeneratesgeographic-regionvariablesStata资源Stata资源Excel-导入Stata-Excel-导入Stata-todolisttodolistStata资源21/63在Statacommand窗口中输入finditimportdata进行查询helpbcuse//helpwbopendata//accessWorldBankdatabaseshelpfreduse//ImportFRED(FederalReserveEconomicDatabase)datahelpgetdata//importsdatafromseveralSDMXDataproviders(OECD,/EUROSTAT,ECB,IMF,ILO,.
.
.
)helpiati//importInternationalAidTransparencyInitiativedatahelpinsheetjson//importingtabulardatafromJSONsourcesontheinternethelpjsonio//moduleforI/OoperationsonJSONdatahelpirscharities//importandformatIRSExemptOrganizationBusinessMasterFileDatahelpfacebook2stata//importFacebookdataintoStatahelptwitter2stata//importTwitterdataintoStatahelperate//importup-to-dateexchangeratesforanycurrencypairshelpeurostatuse//importdatafromEurostatrepositoryintoStatahelpeurouse//toimportdatafromEurostathelpcntrade//中国上司公司股票交易数据,SJ14(2):381--388help//导入典型数据库数据导入典型数据库数据中国数据中国数据Stata资源22/63helplabone//moduletolabelvariablesafterimportexcelStata习题Stata习题Stata数据处理Stata数据处理变量标签变量标签Stata习题23/63脑洞大开的数据可视化软件一览|SocialMedia:DataVisualization|QUT-VisualisationToolsStata数据可视化MergeandAppendreshapehelpreshaple//Stata官方命令helpsreshape//外部命令,速度更快,SJ16-3Stata数据分析概览Stata数据分析概览数据的纵横变换LongWide数据的纵横变换LongWideStata习题24/63helplookfor//在已经调入内存的数据中,搜索包含特定关键词的变量helpgrep//在当前文件夹下搜索包含特定关键词的所有Stata数据集数据库内搜索关键词数据库内搜索关键词Stata习题25/63helpstcmd//RunningtheStat/TransfercommandfrominsideStatahelpftrans//BatchFileFormatConverter,借助Stat/Transfer,在多种统计软件之间转换数据存储格式数据文件格式转换数据文件格式转换不同数据文件之间的转换不同数据文件之间的转换Stata习题26/63helpisid//判断某个变量是否能唯一标示每一行观察值helpkeyby//根据多个变量产生数据库标示变量helpkeybygen//产生唯一标示每一行观察值的变量helpfuncdep//Testwhetherasetofvariablesisfunctionallydependentonaspecifiedsetofbasisvariableshelpassertky//Sortthedataandassertthatthegivenvarlistisakeyforthedatasethelpfgen//该命令提供了一个group()函数,比Stata官方提供的egen命令中的group()函数速度要快helpcollapseunique//reducesdatatouniquevaluesbasedonaspecified/setofkeyvariables.
helpaddinby//isa"cleaner"alternativeversionofmergem:1helpdsconcat//批量append,ConcatenatealistofStatadatafilesintothememoryhelpisidhelpaddinby//toaddindatafromadiskdatasetusingaforeignkeyhelpcollapseunique//reducesdatatouniquevaluesbasedonaspecified/setofkeyvariables.
数据合并和追加数据合并和追加标示变量标示变量横向合并(Merge)横向合并(Merge)纵向追加(Append)纵向追加(Append)Stata习题27/63对数变换genlnx=ln(x)缩尾处理helpwinsor|helpwinsor2截尾处理helpwinsor2helprreg离群值离群值界定界定影响影响常用变量处理方法常用变量处理方法估计方法估计方法Stata习题28/63BillRising,2010,MultipleImputation缺失值缺失值多重补漏分析多重补漏分析Stata习题29/63helptabex//把某个变量或变量的子样本导出到各种文件中(word,excel等)helptabone//Exportssingleormultipleone-waytabulationsintovariousformatshelptabsheet//Rapidlyoutputscross-tabularstatisticstoatab-delimitedfile,whichcanbeopenedinaspreadsheeteditorsuchasExcel.
helptw3xls//exportpublication-readythree-wayandfour-waytablesintoxlsorxlsx数据和统计表格导出数据和统计表格导出Stata习题30/63helpdir//列示当前工作路径下的所有文件helpmkdir//新建文件夹helpftree//把当前路径下的文件信息(树状)存入一个文本文件helplall//列示工作路径下的所有文件helpldta//列示.
dta数据文件helplado//列示.
ado文件helpcdout//打开当前工作路径所在的文件夹helpfpref//addprefixorsuffixtofilenameshelpfren//批量修改具有特定后缀的文件的文件名helprenfiles//批量修改文件名helpmvfiles//movingsetofmatchedfileshelprmfiles//removingsetofmatchedfileshelpintext//readtextfilesintostringvariableshelpfilefilter//Converttextorbinarypatternsinafilehelpfreplace//在filefilter基础上增加了replace选项,替换文件中的特定字符helpsubinfile//以文件为对象的文本替换(Stata14以上)helpfdta//Changecontentsofstringvariables.
sysuseauto,clear.
fdtamake,from(Buick)to(BMW)helpasciiplot//GenerateASCIIcharactermaphelptxttool//sj14-4,输入findittxttool可以下载作者提供的Stata范例数据Statatip129:EfficientlyprocessingtextualdatawithStata'snewUnicodefeatures,StataJournal,2018,18-1:287–289Contentanalysis:Frequencydistributionofwords,SJ18-2,pp.
379–386文本分析文本分析命令列表命令列表文件操作文件操作文件夹相关文件夹相关文件批量改名文件批量改名批量移动和删除文件批量移动和删除文件文本导入文本导入文本替换文本替换变量操作变量操作变量字符替换变量字符替换字符和编码字符和编码文本分析文本分析Stata习题31/63helpsum//stata官方命令helpegen//stata官方命令中的sum()函数helpfsum//更为快捷的外部命令:fastsumhelpgsum//根据分位数分组统计,适用范围有限求和函数和命令求和函数和命令Stata习题32/63Stata绘图小抄Stata绘图小抄1Stata绘图小抄2helpgraphhelptwowayhelpoptaspect//设定图形的最优横纵比例Optimalaspectratio,SJ17-2用stata制作教学演示用的动态图GIFStata绘图Stata绘图stata绘图stata绘图概览概览帮助文件帮助文件图形设定图形设定特殊图形特殊图形Stata绘图33/63helpmacro//暂元简介helplocal//暂元helpglobal//全局暂元Drukker,D.
M.
2015.
[ProgramminganestimationcommandinStata:Globalmacrosversuslocalmacros](http://blog.
stata.
com/2015/11/03/programming-an-estimation-command-in-stata-global-macros-versus-local-macros/)Stata程序Stata程序暂元(macro,-local,-global)暂元(macro,-local,-global)主要命令主要命令BlogsBlogsStata程序34/63最好的stata程序参考资料是Stata手册[U],18ProgrammingStata[U],18ProgrammingStata,通读后可以了解Stata程序的基本架构和基本要素.
Baum,C.
F.
2016.
AnIntroductiontoStataProgramming.
2nded.
CollegeStation,TX:StataPress.
Princeton网络教程-程序helpprogram//程序定义概览Stata程序命令列表和资源链接Stata程序命令列表和资源链接参考资料参考资料程序概览程序概览Stata程序35/63newey22SLSestimationwithNewey-WeststandarderrorsclustseSEforclustereddatafesecalculateS.
E.
forfixedeffectsavarestimatetheHAC-robustS.
E.
ofolsregressions.
tuplescomputeS.
E.
withmulti-wayclustering(twoormoreclusteringvariables).
Robustorcluster-robuststandarderrorsinpoissonusingMataHowdoIobtainbootstrappedstandarderrorswithpaneldataComparisonofstderrorsforrobust,cluster,andstdestimatorsChi-squaredtestformodelsestimatedwithrobuststandarderrorsLikelihood-ratiotestaftersurvey/robustMLestimation标准误标准误Stata命令Stata命令StatablogsStatablogs标准误计算标准误计算稳健性标准误下的假设检验稳健性标准误下的假设检验Stata程序36/63helpfvvarlistpwcompare对比和假设检验Effectsofnonlinearmodelswithinteractionsofdiscreteandcontinuousvariables:Estimating,graphing,andinterpreting这篇写的很清楚,杨杨柳柳可以参考Multipleequationmodels:EstimationandmarginaleffectsusingmlexpMultipleequationmodels:EstimationandmarginaleffectsusinggsemANoteonInterpretingMultinomialLogitCoefficientsLogit模型中的边际效应MarginalEffectsforContinuousVariablesUnderstanding&InterpretingtheEffectsofContinuousVariables:TheMCP(MarginsContPlot)CommandNOTEONINTERACTIONEFFECTSUNDERPROBITANDOPROBIT回归分析回归分析因子变量(Factor-Variables)因子变量(Factor-Variables)BlogsBlogsSlidesSlidesLecturesLectures回归分析37/63[toc].
regpriceweilen,noheaderprice|Coef.
Std.
Err.
tP>|t|[95%Conf.
Interval]weight|4.
701.
124.
190.
0002.
466.
94length|-97.
9639.
17-2.
500.
015-176.
07-19.
85_cons|10386.
544308.
162.
410.
0191796.
3218976.
76本文介绍stata中的因子变量(Factorvariable)的语法要点,并将其用于包含交乘项的线性回归模型之中.
可同时参考stata中的帮助文件(helpfvvarlist)学习.
以研究妇女工资的决定因素为例.
范例数据中有一个名为race的变量,取值情况如下:.
sysusenlsw88,clear.
des2race//查看race的Valuelabel名称variablenametypeformatvaluelabelvariablelabelracebyte%8.
0gracelblrace.
labellistracelbl//数字-文字对应表racelbl:1white2black3other.
tabrace//频数分布race|Freq.
PercentCum.
white|1,63772.
8972.
89black|58325.
9698.
84other|261.
16100.
00Total|2,246100.
00若想在模型中加入虚拟变量$W\\!
hite$(对于白人妇女[race=1],$W\\!
hite$取值为1,否则取值为0.
)则需要预先生成这个虚拟变量,继而进行回归,过程如下所示:sysusenlsw88,cleargenwhite=(race==1)regwagewhitetenureagecollgrad若使用因子变量,则上述命令会变得非常简洁:sysusenlsw88,clearregwage1.
racetenureagecollgrad这里,1.
race表示一个虚拟变量,当race变量取第一个值时(本例中取值为1),这个虚拟变量取值为1,否则为0.
Stata-中因子变量Stata-中因子变量变量表述变量表述因子变量因子变量1.
问题背景1.
问题背景回归分析38/63因子变量是对现有变量的延伸.
当stata命令中可以使用因子变量时,除了可以在命令中包括数据中的原始变量,还可以包括因子变量,诸如下述因子变量:i.
varnamei.
varname##i.
varname因子变量是从类别变量中生成的指示变量、类别变量的交乘项、类别变量与连续型变量的交乘项、连续变量的交乘项(或多项式).
在stata中,大多数估计命令和回归后的估计命令都可以使用这些因子变量.
因子变量的五种运算符:运算符描述i.
确定指示变量(变量为类别变量)的一元运算符c.
确定指示变量(变量为连续型变量)的一元运算符o.
省略一个变量或一个指示变量的一元运算符#确定交乘项的二元运算符##确定因子变量的交乘项的二元运算符注:(a)由因子变量运算符生成的指示变量和交乘项是实际存在的变量,它们与变量列表中的变量是一样的,但是在数据表中不显示出来;(b)类别变量的值必须是非负整数,范围介于0至32,也包括740;(c)因子变量有时可以与时间序列的运算符L.
和F.
组合在一起.
在第一部分问题背景中的例子中,我们注意到race变量有三类取值(1,2,3),分别对应白人、黑人和其他人种.
在问题背景的例子中,我们加入了白人(取值为1)的虚拟变量,不仅如此,我们还可以在模型中一次性加入两个虚拟变量(为了防止完全共线性,加入两个虚拟变量),以便对比三个种族之间的妇女工资的差异,回归命令如下所示:regwagei.
racetenureagecollgrad这里,我们采用了i.
varname的格式.
前缀i.
的作用在于基于varname的类别来产生对应的虚拟变量.
实现过程如下所示(若使用-tabrace,nolabel-命令则显示race变量的三个类别对应的数字):.
tabracerace|Freq.
PercentCum.
white|1,63772.
8972.
89black|58325.
9698.
84other|261.
16100.
00Total|2,246100.
00.
tabrace,nolabelrace|Freq.
PercentCum.
1|1,63772.
8972.
892|58325.
9698.
843|261.
16100.
00Total|2,246100.
00.
regwagei.
racetenureagecollgrad,noheaderwage|Coef.
Std.
Err.
tP>|t|[95%Conf.
Interval]2.
因子变量的基本语法规则2.
因子变量的基本语法规则3.
回归中的基本引用方式3.
回归中的基本引用方式回归分析39/63race|black|-1.
126186.
2665184-4.
230.
000-1.
648837-.
6035352other|.
30375291.
0798670.
280.
779-1.
81392.
421406|tenure|.
1729271.
0211778.
170.
000.
1313984.
2144559age|-.
0995955.
0379753-2.
620.
009-.
1740661-.
0251248collgrad|3.
313985.
273906612.
100.
0002.
7768463.
851124_cons|10.
158981.
4951996.
790.
0007.
22685113.
09111从上述回归结果中可以看到,race中仅有black和other两个虚拟变量.
这是由于stata默认将race中的第一个类别white作为基准组,目的在于防止完全共线性.
若varname有N个类别,则i.
varname会自动产生N-1个虚拟变量,以varname的第一类作为基准组.
在回归中常常会引入交乘项.
因子变量的交乘项的运算符用##或#表示.
注:(a).
(a).
#运算符表示在回归中仅包括交乘项;(b).
(b).
##运算符表示在回归中既包括交乘项也包括生成交乘项的原始变量;(c).
(c).
一般的,在回归模型中若加入交乘项,则需要包括生成交乘项的原始变量.
因此,在回归中用##引入交乘项是非常便捷的.
当类别变量的因子变量与类别变量的因子变量相互交乘时,在两个类别变量前加i.
,两个变量之间用##连接表示相互交乘.
我们仍以研究妇女工资的决定因素为例来说明如何在回归模型中检验种族和婚姻状况相互交乘后对妇女工资的影响作用,stata命令和结果如下所示:.
des2racevariablenametypeformatvaluelabelvariablelabelracebyte%8.
0gracelblrace.
labellistracelblracelbl:1white2black3other.
des2marriedvariablenametypeformatvaluelabelvariablelabelmarriedbyte%8.
0gmarlblmarried.
labellistmarlblmarlbl:0single1married.
regwagei.
race##i.
marriedtenureagecollgrad,noheaderwage|Coef.
Std.
Err.
tP>|t|[95%Conf.
Interval]race|black|-1.
902081.
3991943-4.
760.
000-2.
684914-1.
119249other|-.
56040181.
943318-0.
290.
773-4.
3713123.
250508|married|married|-1.
049296.
2957198-3.
550.
000-1.
629212-.
46938|race#married|black#married|1.
132414.
54215012.
090.
037.
06924052.
1955884.
基准组的设定问题4.
基准组的设定问题5.
因子变量的交乘项5.
因子变量的交乘项回归分析40/63other#married|1.
2317582.
3349120.
530.
598-3.
3470795.
810596|tenure|.
1696809.
02115578.
020.
000.
128194.
2111679age|-.
1024382.
0379187-2.
700.
007-.
176798-.
0280783collgrad|3.
298743.
273358512.
070.
0002.
7626783.
834808_cons|11.
02991.
5127817.
290.
0008.
06328413.
99651注:(a).
(a).
在上述回归结果中,race#married中的black#married和other#married的系数和显著性表示了种族和婚姻状况交乘项对妇女工资的影响作用.
(b).
(b).
在回归中,以race变量的值和married变量的值相互交乘后的非零值的第一个类别,即种族为白人且已婚(race=white且married=married)作为基准组;(c).
(c).
black#married的系数值表示当种族为黑人且已婚的妇女的工资比种族为白人且已婚的妇女的工资高1.
132个单位,且在5%的水平上显著.
当类别变量的因子变量与连续型变量相互交乘时,在类别变量前加i.
,在连续型变量前加c.
,两个变量之间用##连接表示相互交乘.
我们仍以研究妇女工资的决定因素为例来说明如何在回归模型中检验婚姻状况和工作时间相互交乘后对妇女工资的影响作用,stata命令和结果如下所示:.
regwagei.
married##c.
tenureraceagecollgrad,noheaderwage|Coef.
Std.
Err.
tP>|t|[95%Conf.
Interval]married|married|-.
453572.
3605811-1.
260.
209-1.
160683.
2535389tenure|.
1881884.
03372465.
580.
000.
1220534.
2543233|married#c.
tenure|married|-.
031185.
0430814-0.
720.
469-.
1156689.
053299|race|-1.
012671.
2490452-4.
070.
000-1.
501057-.
5242857age|-.
098817.
0379548-2.
600.
009-.
1732475-.
0243864collgrad|3.
342734.
273378212.
230.
0002.
8066313.
878837_cons|11.
448551.
5727467.
280.
0008.
36434314.
53275注:在上述回归结果中,married#c.
tenure中的married的系数和显著性表示了婚姻状况和工作时间交乘项对妇女工资的影响作用.
其含义是当妇女为已婚状况时,工作时间每增加1年,妇女的工资减少0.
03个单位,但是这个影响作用在统计上是不显著的.
我们仍以研究妇女工资的决定因素为例.
在回归模型中加入种族和婚姻状况的交乘项,并将结果输出到excel中.
stata命令和结果如下所示:.
regwagei.
race##i.
marriedtenureagecollgrad,noheaderwage|Coef.
Std.
Err.
tP>|t|[95%Conf.
Interval]race|black|-1.
902081.
3991943-4.
760.
000-2.
684914-1.
119249other|-.
56040181.
943318-0.
290.
773-4.
3713123.
250508|married|married|-1.
049296.
2957198-3.
550.
000-1.
629212-.
46938|race#married|black#married|1.
132414.
54215012.
090.
037.
06924052.
195588other#married|1.
2317582.
3349120.
530.
598-3.
3470795.
810596|tenure|.
1696809.
02115578.
020.
000.
128194.
2111679age|-.
1024382.
0379187-2.
700.
007-.
176798-.
0280783collgrad|3.
298743.
273358512.
070.
0002.
7626783.
834808_cons|11.
02991.
5127817.
290.
0008.
06328413.
996516.
输出回归结果时的问题6.
输出回归结果时的问题回归分析41/63.
eststorer1.
esttabr1usingD:/Table_1.
csv,nogap打开D:/Table_1之后,我们发现有很多变量的系数值为0,如下表所示.
wagewage1.
race0(.
)2.
race-1.
902***(-4.
76)3.
race-0.
56(-0.
29)0.
married0(.
)1.
married-1.
049***(-3.
55)1.
race#0.
married0(.
)1.
race#1.
married0(.
)2.
race#0.
married0(.
)2.
race#1.
married1.
132*-2.
093.
race#0.
married0(.
)3.
race#1.
married1.
232-0.
53tenure0.
170***-8.
02age-0.
102**(-2.
70)collgrad3.
299***-12.
07_cons11.
03***-7.
29N2231造成某些系数值为0的原因有以下:一方面是由于有些变量是虚拟变量作为了基准组,例如:1.
race,0.
married与1.
race#1.
married,stata默认将它们作为基准组;另一方面是由于有些交乘项的值为0,所以其估计系数值和标准误就会缺失,例如:1.
race#0.
married,2.
race#0.
married与3.
race#0.
married,由于0.
married对应的值为0,所以race变量与其相乘时全部为0,所以这些交乘项的估计系数值和标准误就会缺失.
回归分析42/63==-此时,可以使用esttab命令的drop()选项,屏蔽这些系数的显示,stata命令和结果如下所示:==.
esttabr1usingD:/Table_2.
csv,nogapdrop()7.
margins与marginsplot命令的使用7.
margins与marginsplot命令的使用回归分析43/63Computestandarderrorswithmargins边际效应-(margins)边际效应-(margins)简介简介StatablogsStatablogs回归分析44/63asregRollingwindowregressionandbygroupregression滚动回归-(Rolling-window-regression)滚动回归-(Rolling-window-regression)回归分析45/63ivvifVarianceInflationFactorsafter2SLSestimationhaifHomoskedasticAdjustmentVIFformodelselection共线性-VIF等共线性-VIF等回归分析46/63helpinteractplot//generateplotsforinteractiontermsofmultiplicativeregressions图示交乘项效果交乘项交乘项回归分析47/63helpceofplot//plottingregressioncoefficientsandotherestimateshelparrowplot//Combinedplotforgraphinginter-groupandintra-grouptrends回归系数的图形呈现回归系数的图形呈现回归分析48/63helpcurvefit//producescurveestimationregressionstatisticsandrelatedplotsbetweentwovariablesfor35differentcurveestimationregressionmodels.
模型设定模型设定回归分析49/63Testingtheequalityofcoefficients–SameIndependent,DifferentDependentvariables组间系数差异检验组间系数差异检验回归分析50/63byvarmoduletorepeatacommandbyvariable分组统计和回归分组统计和回归回归分析51/63日期处理和基本模型时间序列时间序列时间序列基础时间序列基础时间序列52/63Fixedeffectsorrandomeffects:TheMundlakapproachhelpxtistest//SJ18-1helpxtqptest//SJ18-1helpxthrtest//SJ18-1helpxtpurt//SJ18-1,Panelunit-roottestsforheteroskedasticpanels面板面板面板相关检验面板相关检验面板相关检验面板相关检验模型筛选模型筛选BlogsBlogs序列相关检验序列相关检验面板单位根面板单位根面板53/63a2reg//estimatemodelswithtwofixedeffectsgpreg//regressionswithtwodimensionalfixedeffectshelptwfe//regressionswithtwo-wayfixedeffectsormatcheffectsforlargedatasetsreg2hdfe//RegressionwithtwoHighHighDimensionalFixedEffects.
helpregxfe//linearhigh-orderfixed-effectsmodelreghdfe//LinearRegressionsWithMultipleFixedEffectsGithubparallel//runningreghdfewithmultipleprocessors.
helpregintfe//linearregressionmodelwithoneinteractedhighdimensionalfixedeffect固定效应(二维和高维)固定效应(二维和高维)TwoWayFiexedEffectsTwoWayFiexedEffectsMultipleFixedEffectsMultipleFixedEffects面板54/63动态面板简介xtabond动态面板动态面板面板55/63to-do-List补充Logit模型的在线课程链接;补充Stata官方的基本命令补充Long2001等经典教科书的网络连接和在线资源链接图示Logit模型中的边际效应https://github.
com/arlionn/binary_graphLogit模型的边际效应:分析范例Logit和Probit模型的边际效应无差异:模拟分析ILogit和Probit模型的边际效应无差异:模拟分析II包含离散变量与连续变量交乘项的Logit模型:估计、图示和解释(英文标题:Effectsofnonlinearmodelswithinteractionsofdiscreteandcontinuousvariables:Estimating,graphing,andinterpreting)Logit-ProbitLogit-ProbitLogit-模型Logit-模型Logit基础Logit基础边际效应边际效应Logit-Probit56/63helplogitfe//SJ17-3,有完整数据和dofilehelpprobitfe//同上面板Logit面板LogitBiascorrectionsforprobitandlogitmodelswithtwo-wayfixedeffectBiascorrectionsforprobitandlogitmodelswithtwo-wayfixedeffectLogit-Probit57/63StataBlogs-内生性内生性-处理效应内生性-处理效应内生性概览内生性概览BlogsBlogs内生性-处理效应58/63极简DID范例helpbalancetable//Buildabalancetable(showingmeansanddifferenceinmeans)andprintitinaLaTeXfileoranExcelfile断点回归-RDD断点回归-RDD倾向得分-PSM倾向得分-PSM倍分法-DID倍分法-DIDDID---Stata-范例DID---Stata-范例balancetestbalancetest内生性-处理效应59/63事件研究法(EventStudy)事件研究法(EventStudy)由Ball&Brown(1968)以及Famaetal.
(1969)开创.
其原理是根据研究目的选择某一特定事件,研究事件发生前后样本股票收益率的变化,进而解释特定事件对样本股票价格变化与收益率的影响,主要被用于检验事件发生前后价格变化或价格对披露信息的反应程度.
事件研究法以有效市场假说为基础,即股票价格反映所有已知的公共信息,由于投资者是理性的,投资者对新信息的反应也是理性的.
因此,在样本股票实际收益中剔除假定某个事件没有发生而估计出来的正常收益(normalreturn)就可以得到异常收益(abnormalreturn),异常收益可以衡量股价对事件发生或信息披露异常反应的程度.
事件研究法概览-eventstudymetrics.
comEventus-Guide-8-Public.
pdfEventus软件的说明书,附录部分可参考EventStudies:AssessingtheMarketImpactofCorporatePolicy(PDF)LectureNotesonEventStudyAnalysisJin-LungLin(PDF)经典论文-MacKinlay(1997),EventStudiesinEconomicsandFinance.
pdf一网打尽事件研究法【EventStudyTools】参数和非参数检验,正常回报的估计等eventstudymetrics.
comMITEventStudyWebpage提供了大量有关EventStudy的参考文献和数据来源说明PrincetonStata范例解读了EventStudy中最关键的编程问题StackOverFlowatuo.
dta模拟Stata范例StackOverFlowEventStudy问题汇总GitHub-StataEventStudy提供了一些自己编写的命令(Fama-Macbech1973,Rollingbeta等)使用这些命令,可以一次性完成基本的EventStudy估计和检验工作,非常便捷.
需要事先用sscinstallcmdname,replace下载最新版.
helpeventstudy//基本命令helpeventstudy2//更为丰富的选项和检验统计量,PDF说明文档helpestudy//StataJournal18-2,eventstudy2的正式版合成控制法-SCM合成控制法-SCM事件研究法事件研究法事件研究法及stata实现事件研究法及stata实现事件研究法原理事件研究法原理事件研究法资源事件研究法资源Stata范例Stata范例Stata外部命令Stata外部命令事件研究法60/63连玉君.
随机边界模型:进展及Stata应用[J].
郑州航空工业管理学院学报,2018(1):97-112.
PDF-百度学术,PDF2helpsftfe//sftfe-PPT随机边界-SFA随机边界-SFA随机边界分析随机边界分析随机边界-SFA61/63SomecommandstohelpproduceRichTextFilesfromStata//SJ18-1文件输出文件输出Stata2Word.
mdStata2Word.
md文件输出62/63文件输出63/63

新注册NameCheap账户几天后无法登录原因及解决办法

中午的时候有网友联系提到自己前几天看到Namecheap商家开学季促销活动期间有域名促销活动的,于是就信注册NC账户注册域名的。但是今天登录居然无法登录,这个问题比较困恼是不是商家跑路等问题。Namecheap商家跑路的可能性不大,前几天我还在他们家转移域名的。这里简单的记录我帮助他解决如何重新登录Namecheap商家的问题。1、检查邮件让他检查邮件是不是有官方的邮件提示。比如我们新注册账户是需...

819云(240元)香港CN2 日本CN2 物理机 E5 16G 1T 20M 3IP

819云是我们的老熟人了,服务器一直都是稳定为主,老板人也很好,这次给大家带来了新活动,十分给力 香港CN2 日本CN2 物理机 E5 16G 1T 20M 3IP 240元0官方网站:https://www.819yun.com/ 特惠专员Q:442379204套餐介绍套餐CPU内存硬盘带宽IP价格香港CN2 (特价)E5 随机分配16G1T 机械20M3IP240元/月日本CN2 (...

青云互联:洛杉矶CN2弹性云限时七折,Cera机房三网CN2gia回程,13.3元/月起

青云互联怎么样?青云互联是一家成立于2020年6月份的主机服务商,致力于为用户提供高性价比稳定快速的主机托管服务,目前提供有美国免费主机、香港主机、香港服务器、美国云服务器,让您的网站高速、稳定运行。目前,美国洛杉矶cn2弹性云限时七折,美国cera机房三网CN2gia回程 13.3元/月起,可选Windows/可自定义配置。点击进入:青云互联官网青云互联优惠码:七折优惠码:dVRKp2tP (续...

主页被篡改怎么办为你推荐
特朗普取消访问丹麦特朗普专机抵达日本安保警力情形如何?留学生认证留学生前阶段双认证认证什么内容?www.haole012.comhttp://fj.qq.com/news/wm/wm012.htm 这个链接的视频的 第3分20秒开始的 背景音乐 是什么?www.e12.com.cn上海高中除了四大名校,接下来哪所高中最好?顺便讲下它的各方面情况porntimesexy time 本兮 MP3地址www.zhiboba.com上什么网看哪个电视台直播NBA888300.com请问GXG客服电话号码是多少?惠丰吧毕节医药高等专科可以专升本吗苗惟妮大好时光演员表珊珊查看源代码怎么查看一个程序的源代码?
北京网站空间 cn域名备案 国外永久服务器 日本软银 hostmaster linode日本 kvmla 网络星期一 万网优惠券 轻量 申请个人网页 河南m值兑换 免费吧 网络空间租赁 linux服务器维护 百度云1t 河南移动m值兑换 服务器监测 万网空间管理 数据库空间 更多