# StataProfile **Repository Path**: cx96/StataProfile ## Basic Information - **Project Name**: StataProfile - **Description**: 连玉君的 profile.do 文件。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 115 - **Created**: 2022-05-03 - **Last Updated**: 2022-05-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README > 👉 点击右上角的【**Fork**】按钮,可以把这个项目完整复制到你的码云账号下,随时查看。 > 🍎 Profile.do 下载方法: [-**点击下载**-](https://file.lianxh.cn/Template/profile.do) 或 [-点击此处-](https://gitee.com/arlionn/StataProfile/blob/master/profile.do)。 --- > 🍎 **最新专题:** --- ### 项目介绍:连玉君的 **profile.do** 文件 #### 使用方法 - 下载 **profile.do** 文件: [-**点击下载**-](https://file.lianxh.cn/Template/profile.do)。 - 亦可在 Stata 命令窗口依次输入:`cnssc install lxhget`, `lxhget profile.do`,以便把该文件 copy 到你的当前工作路径下。进入输入 `cd` 即可显示当前工作路径。 - 如果在你的 Stata 安装目录下没有 **profile.do** 文档,可以直接将我的 **profile.do** 文件放到你的 Stata 安装目录下 (我的 Stata 安装目录是:**D:\stata15**),但需要酌情修改你里面的内容,尤其是有关文件路径方面的设定。 - 如果在你的 Stata 安装目录下已经建立了 **profile.do** 文档,但需要更新一些设定,可以打开我的 **profile.do** 文档,截取所需放入你自己的 **profile.do** 文档中。Note: 有关文件路径方面的信息,可能需要酌情修改。 #### 相关推文 - 专题:[Stata入门](https://www.lianxh.cn/blogs/16.html) - [聊聊Stata中的profile文件-第二季](https://www.lianxh.cn/news/f1fe693db363c.html) - [聊聊Stata中的profile文件](https://www.lianxh.cn/news/ad2b49ad17a3f.html) #### FAQ - **Q1:如何打开 profile.do 文档?** - **A1:** profile.do 就是一个普通的 **dofile**,因此,你平时怎么打开 dofile 就怎么打开 profile.do。问题的关键是,很多人不知道自己的 **profile.do** 存放在何处。答案是:它存放在 Stata 安装目录下。因此,你可以使用 Stata 的 dofile 编辑器打开 profile.do 文档,命令为: `doedit D:\stata15\profile.do` 或 **doedit `c(sysdir_stata)'/profile.do**。详情参见 [聊聊Stata中的profile文件](https://www.lianxh.cn/news/ad2b49ad17a3f.html)。 - **Q2:我的 Stata 安装路径如何查看?** - **A2:** 在 Stata 命令窗口中输入 `sysdir` 命令,第一行显示的就是你的 Stata 安装路径。 ```stata . sysdir STATA: D:\stata15\ BASE: D:\stata15\ado\base\ SITE: D:\stata15\ado\site\ PLUS: D:\stata15/ado\plus\ PERSONAL: D:\stata15/ado\personal\ OLDPLACE: c:\ado\ ``` #### 何谓 profile.do ? 每次启动 Stata 时,Stata 会自行到安装目录下找到 **profile.do** 文档,并执行里面的所有命令。显然,这些命令通常都是一些使用 Stata 时的基本设定,如文件路径、自动开启日志文件 (log file)、显示格式等。详情参见 [聊聊Stata中的profile文件](https://www.lianxh.cn/news/ad2b49ad17a3f.html)。 如下是 `help profilew` 提供的说明: #### Description Stata first looks for the file sysprofile.do when it is invoked. After that, Stata looks for the file profile.do. If either of these files are found, Stata executes the commands they contain. Stata looks **(1)** in the directory where Stata was installed, **(2)** in the current directory, **(3)** along your PATH, **(4)** in your home directory as defined by Windows's USERPROFILE environment variable, and finally **(5)** along the adopath (see adopath).   ----   ![](https://fig-lianxh.oss-cn-shenzhen.aliyuncs.com/Lianxh_装饰黄线.png) > Stata连享会   [主页](https://www.lianxh.cn/news/46917f1076104.html) || [视频](http://lianxh.duanshu.com) || [推文](https://www.lianxh.cn/news/d4d5cd7220bc7.html) || [知乎](https://www.zhihu.com/people/arlionn/) ![](https://fig-lianxh.oss-cn-shenzhen.aliyuncs.com/连享会-草料主页-一码平川600.png)   ## 1. 连享会课程 > **免费公开课:** > - [直击面板数据模型](https://lianxh.duanshu.com/#/brief/course/7d1d3266e07d424dbeb3926170835b38) - 连玉君,时长:1小时40分钟,[课程主页](https://gitee.com/arlionn/PanelData) > - [Stata 33 讲](https://lianxh.duanshu.com/#/brief/course/b22b17ee02c24015ae759478697df2a0) - 连玉君, 每讲 15 分钟. [课程主页](https://gitee.com/lianxh/Stata33) > - [Stata 小白的取经之路](https://lianxh.duanshu.com/#/brief/course/137d1b7c7c0045e682d3cf0cb2711530) - 龙志能,时长:2 小时,[课程主页](https://gitee.com/arlionn/StataBin) > - 部分直播课 [课程资料下载](https://gitee.com/arlionn/Live) (PPT,dofiles等)   > ### ⛳ [课程主页](https://www.lianxh.cn/news/46917f1076104.html) ![](https://fig-lianxh.oss-cn-shenzhen.aliyuncs.com/lianxhbottom01.png) ![](https://fig-lianxh.oss-cn-shenzhen.aliyuncs.com/lianxhbottom02.png) ![](https://fig-lianxh.oss-cn-shenzhen.aliyuncs.com/lianxhbottom03.png) > ### ⛳ [课程主页](https://www.lianxh.cn/news/46917f1076104.html) ![](https://fig-lianxh.oss-cn-shenzhen.aliyuncs.com/Lianxh_装饰黄线.png)   ## 2. 资源分享 ### 视频公开课 - [连享会码云:100多个精选计量项目](https://www.lianxh.cn/news/944a69d75cec9.html) | [新浪视频](https://weibo.com/tv/show/1034:4479228373303338) - [五分钟 Markdown](https://gitee.com/arlionn/md) | [新浪视频](https://weibo.com/tv/show/1034:4484204327796746) - [连老师给你的-听课建议](https://www.lianxh.cn/news/69706e871c9ad.html) - [连享会 · Stata 33 讲 - 免费听](http://lianxh-pc.duanshu.com/course/detail/b22b17ee02c24015ae759478697df2a0) - 连玉君, 每讲 15 分钟. [课件](https://gitee.com/arlionn/stata101) - [直击面板数据模型](http://lianxh-pc.duanshu.com/course/detail/7d1d3266e07d424dbeb3926170835b38) - 连玉君,时长:1小时40分钟 - [Stata 33 讲](http://lianxh-pc.duanshu.com/course/detail/b22b17ee02c24015ae759478697df2a0) - 连玉君, 每讲 15 分钟. [课程主页](https://gitee.com/arlionn/stata101) - [Stata小白的取经之路](https://gitee.com/arlionn/StataBin),龙志能,上海财经大学,[去听课](https://lianxh.duanshu.com/#/brief/course/137d1b7c7c0045e682d3cf0cb2711530) ### Stata - [连享会推文](https://www.lianxh.cn) | [直播视频](http://lianxh.duanshu.com) - **计量专题课程**: [Stata暑期班/寒假班](https://gitee.com/lianxh/text) | [专题课程](https://gitee.com/arlionn/Course) - Stata专栏:[最新推文](https://www.lianxh.cn) | [知乎](https://www.zhihu.com/people/arlionn/) | [CSDN](https://blog.csdn.net/arlionn) - Books and Journal: [计量Books](https://quqi.gblhgk.com/s/880197/hmpmu2ylAcvHnXwY) | [SJ-PDF](https://quqi.gblhgk.com/s/880197/eipgoUi6Gd1FDZRu) | [Stata Journal-在线浏览](https://www.lianxh.cn/news/12ffe67d8d8fb.html) - Stata Guys:[Ben Jann](http://www.soz.unibe.ch/about_us/personen/prof_dr_jann_ben/index_eng.html) ### Data - [CSMAR-国泰安](http://www.gtarsc.com/#/datacenter/singletable) | [Wind-万德](https://www.wind.com.cn/Default.html) | [Resset-锐思](http://www.resset.cn/databases) - [常用数据库](https://www.lianxh.cn/news/0b65fd5165c2c.html) - [人文社科开放数据库](https://www.lianxh.cn/news/6f06c914acde8.html) - [徐现祥教授-IRE-官员交流、方言等](https://www.lianxh.cn/news/8c9f81a5f19ee.html) - [知乎-Data](https://www.zhihu.com/question/20179699/answer/681756635) ### Papers - 学术论文复现 - [论文重现网站](https://www.lianxh.cn/news/e87e5976686d5.html) - [Google学术](https://ac.scmor.com/) | [统一入口:虫部落学术搜索](http://scholar.chongbuluo.com/) | [微软学术](https://academic.microsoft.com/home) - [iData - 期刊论文下载](https://www.cn-ki.net/) - [ CNKI ](http://scholar.cnki.net/) | [百度学术](http://xueshu.baidu.com/) | [Google学术](https://scholar.glgoo.org/) | [Sci-hub ](http://www.sci-hub.cc/), [2](http://sci-hub.ac/), [3](http://sci-hub.bz/), [4](http://sci-hub.ac/) - Stata论文重现: [Harvard dataverse][harvd] | [JFE][jfe] | [github][git1] | [Yahoo-github][yahoogit] - 学者主页(提供了诸多论文的原始数据和 dofiles):[Angrist][Ang1] || [Daron Acemoglu][acem] || [Ross Levine][ross] || [Esther Duflo][Duflo] || [Imbens](https://scholar.harvard.edu/imbens/software) || [Raj Chetty](http://www.rajchetty.com/) [harvd]:https://dataverse.harvard.edu/dataverse [jfe]:http://jfe.rochester.edu/data.htm [Ang1]:http://economics.mit.edu/faculty/angrist/data1/data [acem]:http://economics.mit.edu/faculty/acemoglu/data [ross]:http://faculty.haas.berkeley.edu/ross_levine/papers.htm [duflo]:http://economics.mit.edu/faculty/eduflo/papers [git1]:https://github.com/search?utf8=%E2%9C%93&q=stata&type= [yahoogit]:https://search.yahoo.com/search;_ylt=AwrBT8di2LBZqyEAuG9XNyoA;_ylc=X1MDMjc2NjY3OQRfcgMyBGZyA3lmcC10LTQ3MwRncHJpZAMEbl9yc2x0AzAEbl9zdWdnAzAEb3JpZ2luA3NlYXJjaC55YWhvby5jb20EcG9zAzAEcHFzdHIDBHBxc3RybAMwBHFzdHJsAzE0BHF1ZXJ5A3N0YXRhJTIwZ2l0aHViBHRfc3RtcAMxNTA0NzYxODcz?p=stata+github&fr2=sb-top&fr=yfp-t-473&fp=1   --- >#### 关于我们 - **Stata连享会** 由中山大学连玉君老师团队创办,定期分享实证分析经验。[直播间](http://lianxh.duanshu.com) 有很多视频课程,可以随时观看。 - [连享会-主页](https://www.lianxh.cn) 和 [知乎专栏](https://www.zhihu.com/people/arlionn/),300+ 推文,实证分析不再抓狂。   > ⛳ **`lianxh` 命令发布了:** > 随时搜索连享会推文、Stata 资源,安装命令如下: >   `. ssc install lianxh` > 使用详情参见帮助文件 (有惊喜): >   `. help lianxh`   ![](https://fig-lianxh.oss-cn-shenzhen.aliyuncs.com/横条-远山03-窄版.jpg)