Stable version
To install reghdfe, open Stata and run:
ssc install reghdfe
Note that reghdfe requires at least Stata 11.2 and has been tested up to Stata 14.1
Development version
Development versions include recent improvements and bug fixes, but are intrinsically less stable. To install the latest development version, run:
cap ado uninstall moresyntax
net install moresyntax, from("https://github.com/sergiocorreia/moresyntax/raw/master/src/")
cap ado uninstall ftools
net install ftools, from("https://github.com/sergiocorreia/ftools/raw/master/src/")
cap ado uninstall reghdfe
net install reghdfe, from("https://github.com/sergiocorreia/reghdfe/raw/master/src/")
if (c(version)<13) cap ado uninstall boottest
if (c(version)<13) ssc install boottest
Manual Installation
To install reghdfe manually (for instance, in a server without internet connection):
Download the Github zipfile
Extract it into a folder on your computer (e.g. C:\somefolder)
Run the following, changing somefolder with whatever you picked:
cap ado uninstall reghdfe
net install reghdfe, from("C:\SOMEFOLDER")
What is the currently installed version?
The command reghdfe, version displays the installed version of reghdfe. It also shows the list of dependencies and whether they are installed or not. You can install them with ssc install <name> where <name> is either ivreg2, avar or tuples.
.
. net install ftools, from("https://github.com/sergiocorreia/ftools/raw/master/src/")
remote connection failed -- see help r(677) for troubleshooting
https://github.com/sergiocorreia/ftools/raw/master/src/ either
1) is not a valid URL, or
2) could not be contacted, or
3) is not a Stata download site (has no stata.toc file).
r(677);
这是怎么回事
19. 固定的个体很多的时候,要用reghdfe
cap ado uninstall moresyntax
cap ado uninstall ftools
net install ftools,from("https://raw.githubusercontent.com/sergiocorreia/ftools/master/src/")
cap ado unistall reghdfe
net install reghdfe,from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/master/src/")
安装好了之后就可以回归了
reghdfe y x1 ,absorb(FE1=stock FE2=year)
安装不上,如果是手动安装就显示. net install ivreghdfe, from(D:\reg\reghdfe-master)
file D:\reg\reghdfe-master\stata.toc not found
D:\reg\reghdfe-master\ either
1) does not exist or
2) is not a Stata download directory (has no stata.toc file).
如果是直接运行就显示:host not found
https://github.com/sergiocorreia/reghdfe/raw/master/src/ either
1) is not a valid URL, or
2) could not be contacted, or
3) is not a Stata download site (has no stata.toc file).
r(631);