Comments (11)
I face the same issue. Pls let me know if you find a solution. Thanks!
from ivreghdfe.
I have solved the problem by re-installing the packages. I tried to install based on the commands in the readme.
- Install ftools (remove program if it existed previously)
cap ado uninstall ftools
net install ftools, from("https://raw.githubusercontent.com/sergiocorreia/ftools/master/src/")
But the URL is invalid. So I tried to manually install by downloading the packages and installing from local files.
Instructions can be found here:
http://scorreia.com/software/reghdfe/install.html
After the installation, the error is gone.
from ivreghdfe.
I am flagging that I am still having this issue with Stata18 even after uninstalling and then installing from local files, as Wenjie suggested.
from ivreghdfe.
Could you list the versions of ivreghdfe and its dependencies installed? (ivreg2 ftools reghdfe)?
Thanks!
from ivreghdfe.
I solve it using the original installation code:
-
Install ftools (remove program if it existed previously)
cap ado uninstall ftools
net install ftools, from("https://raw.githubusercontent.com/sergiocorreia/ftools/master/src/") replace -
Install reghdfe
cap ado uninstall reghdfe
net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/master/src/") replace -
Install ivreg2, the core package
cap ado uninstall ivreg2
ssc install ivreg2, replace -
Finally, install this package
cap ado uninstall ivreghdfe
net install ivreghdfe, from("https://raw.githubusercontent.com/sergiocorreia/ivreghdfe/master/src/") replace
from ivreghdfe.
I downloaded the zip files listed here and installed using net install [PACKAGE], from([SRC-FOLDER-OF-UNZIPPED-FOLDER])
.
For ivreg2 I installed using ssc install ivreg2
.
I did both of these today on Stata version 18.0 after uninstalling every package.
I'm not quite sure how to tell the version of each package, but here are the distribution dates from the ado describe
command:
For ivreghdfe
the distribution date was 20211214.
For ftools
the distribution date was 20230820.
For reghdfe
the distribution date 20230912.
For ivreg2
, the distribution date was 20230730.
Thanks!
from ivreghdfe.
It's a bit hard for me to debug the issue with the current information. Some things that could help are:
- Run this:
which ftools
which reghdfe
which ivreghdfe
which ivreg2
(The distribution dates listed in ado describe are often not updated)
-
Note also that you can install directly without downloading the zip file locally. Is there a reason why you did so?
-
The error
option requirements not allowed
is the only hint I have. This option existed internally in reghdfe5, so if you are running reghdfe6 then it will not pop up. Maybe to double check what's going on you could useset trace
?
sysuse auto
set trace on
set tracedepth 2
<toy ivreghdfe command using the auto dataset>
from ivreghdfe.
Versions:
Ftools: ! version 2.49.1 08aug2023
reghdfe: *! version 6.12.4 12sep2023
ivreghdfe and ivreg2/l
*! ivreghdfe 1.0.0 07jul2018
*! this just adds absorb() to this code:
*! ivreg2 4.1.10 9Feb2016
*! authors cfb & mes
*! see end of file for version comments
I installed directly without downloading the zip at first, and then based on Wenjie's suggestion above I tried using the zip. I've now tried both ways and get the same error code.
The log file from the example with the auto dataset is a bit long so I will include it as the next comment.
Edit: copying and pasting the full log file after doing set trace on
is a bit clunky so I have just copy and pasted the section that seems to be giving the error below. Please let me know if you would like to see another part of the log file. Thanks!
from ivreghdfe.
= ivreg211 headroom mpg (weight = length), absorb(rep78)
-------------------------------------------------------------------------------------------------------- begin ivreghdfe.ivreg211 ---
- version 11.2
- local ranktestversion 01.3.02
- local ivreg2cmd "ivreg211"
- local ivreg2name "ivreg2"
- local ranktestcmd "ranktest"
- if replay() {
syntax [, FIRST FFIRST RF SFIRST dropfirst droprf dropsfirst Level(integer $S_level) NOHEader NOFOoter EForm(string) PLUS NOOMITTED
> vsquish noemptycells baselevels allbaselevels VERsion ]
if "`version'" != "" & "`first'`ffirst'`rf'`noheader'`nofooter'`dropfirst'`droprf'`eform'`plus'" != "" {
di as err "option version not allowed"
error 198
}
if "`version'" != "" {
di in gr "`lversion'"
ereturn clear
ereturn local version `lversion'
exit
}
if `"`e(cmd)'"' != "ivreghdfe" {
error 301
}
local dispopt eform(`eform') `noomitted' `vsquish' `noemptycells' `baselevels' `allbaselevels'
if "`e(firsteqs)'" != "" & "`dropfirst'" == "" {
local savefirst "savefirst"
}
if "`e(rfeq)'" != "" & "`droprf'" == "" {
local saverf "saverf"
}
if "`e(sfirsteq)'" != "" & "`dropsfirst'" == "" {
local savesfirst "savesfirst"
}
DispCollinDups
}
- else {
- local cmdline `ivreg2name' `0'
= local cmdline ivreg2 headroom mpg (weight = length), absorb(rep78)
- checkversion_ranktest `ranktestcmd' `ranktestversion'
= checkversion_ranktest ranktest 01.3.02
- syntax [anything(name=0)] [if] [in] [aw fw pw iw/] [, NOID NOCOLLIN FIRST FFIRST SAVEFIRST SAVEFPrefix(name) RF SAVERF SAVERFPrefix
> (name) SFIRST SAVESFIRST SAVESFPrefix(name) SMall NOConstant Robust CLuster(varlist) kiefer dkraay(integer 0) BW(string) kernel(string)
> center GMM GMM2s CUE LIML COVIV FULLER(real 0) Kclass(real 0) ORTHOG(string) ENDOGtest(string) REDundant(string) PARTIAL(string) FWL(s
> tring) Absorb(string) Level(integer $S_level) NOHEader NOFOoter NOOUTput bvclean NOOMITTED omitted vsquish noemptycells baselevels allb
> aselevels title(string) subtitle(string) DEPname(string) EForm(string) PLUS Tvar(varname) Ivar(varname) B0(string) SMATRIX(string) WMAT
> RIX(string) sw psd0 psda useqr dofminus(integer 0) sdofminus(integer 0) NOPARTIALSMALL fvall fvsep ]
= syntax [anything(name=0)] [if] [in] [aw fw pw iw/] [, NOID NOCOLLIN FIRST FFIRST SAVEFIRST SAVEFPrefix(name) RF SAVERF SAVERFPrefix
> (name) SFIRST SAVESFIRST SAVESFPrefix(name) SMall NOConstant Robust CLuster(varlist) kiefer dkraay(integer 0) BW(string) kernel(string)
> center GMM GMM2s CUE LIML COVIV FULLER(real 0) Kclass(real 0) ORTHOG(string) ENDOGtest(string) REDundant(string) PARTIAL(string) FWL(s
> tring) Absorb(string) Level(integer 95) NOHEader NOFOoter NOOUTput bvclean NOOMITTED omitted vsquish noemptycells baselevels allbaselev
> els title(string) subtitle(string) DEPname(string) EForm(string) PLUS Tvar(varname) Ivar(varname) B0(string) SMATRIX(string) WMATRIX(st
> ring) sw psd0 psda useqr dofminus(integer 0) sdofminus(integer 0) NOPARTIALSMALL fvall fvsep ]
- if (`"`absorb'"' != "") {
= if (`"rep78"' != "") {
- capture which reghdfe
- if c(rc) {
di as err "Error: must have reghdfe installed"
di as err "To install, from within Stata type " _c
loc url "https://github.com/sergiocorreia/reghdfe/raw/version-4/src/"
di in smcl `"{stata `"net install reghdfe, from(`url')"':net install reghdfe, from(`url')}"'
exit 601
}
- cap reghdfe, requirements
- if (c(rc)) reghdfe, requirements
option requirements not allowed
reghdfe, check
local small small
local noconstant noconstant
local nopartialsmall
}
from ivreghdfe.
ftools
and reghdfe
are up to date, but ivreghdfe
is version 1.0 (2018) and the latest available version is 1.1.3 (2023). SImilarly, ivreg2 is from 2016 but the latest release is from 2019.
Please check again if problem persists with latest versions, and if so feel free to reopen!
from ivreghdfe.
@sergiocorreia thanks -- that worked.
Specifically, for anyone who is reading this later with the same issue: I had to go into the folders which have the .ado files and manually delete everything associated with ivreghdfe or ivreg2. These were in two different folders and I used which ivreghdfe
and which ivreg2
to figure out where they were. Then after deleting them, I replaced the ivreghdfe
files with the files from what Sergio linked above, and reinstalled ivreg2 using ssc install ivreg2
.
It's still not clear to me what happened. But for context I got a new computer (Mac Studio 2023, running Ventura) and installed Stata 18.0. I initially tried to install the packages using ssc install
for ivreg2
and the instructions here for ftools
, reghdfe
, and ivreghdfe
. But it seems like this was somehow pulling old versions of these packages.
from ivreghdfe.
Related Issues (20)
- issues with clustering - insufficient observations HOT 6
- Standard errors different for ivreghdfe and ivreg2 (even more so when using "small" option for ivreg2) HOT 3
- Incorrect coefficient with weights HOT 5
- Fixed effects by combination of variables and absorbed degrees of freedom HOT 1
- issues with clustering - transmorphic found where struct expected HOT 1
- Use ivreghdfe followed by predictnl
- ivreghdfe throws off ivreg2 instrument collinearity detection?
- vce(cluster var) accepted, but ignored.
- Cannot access r(table) HOT 3
- small correction for e(cmdline)
- "Warning: *variance matrix is nonsymmetric or highly singular" with reghdfe HOT 1
- Coefficients differ when using absorb with analytic weights HOT 3
- struct ms_vcvorthog undefined HOT 5
- [BUG] Incorrect fixed effects with `cluster()` HOT 3
- -
- Question with the ivreghdfe command HOT 2
- last estimates not found r(301) when adding absorb() HOT 4
- 3499 fixed_effects() not found HOT 1
- r(198) option requirements not allowed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ivreghdfe.