Git Product home page Git Product logo

nwxtregress's Issues

How to add multiple matrices in dvarlag()?

Dear Jan,

It seems that multiple matrices could not be added to dvarlag(), but only multiple matrices in ivarlag(). See if you could post the solution to it.
Thank you very much!

Best,
Wenna

an issue of estat imapct after nwxtregress estimation

Hello,
while trying to use estat imapct after successfully run nwxtregress, Stata gives the following error message, wondering if it is a bug.

. estat impact
----+--- 10 --+--- 20 --+--- 30 --+--- 40 --+--- 50 %
J(): 3900 unable to allocate real [2147379216,50]
SparseMultiply(): - function returned error
BarryPace(): - function returned error
calc_DIEffects(): - function returned error
: - function returned error
r(3900);

Stata 16.1

Error return with 3301

Dear Jan,

I came across the following errors. The error code is 3301.
I checked the id identifiers in the spatial network, which match across.
Wdistance is the spatial distance of cities.
Wdistancetry is the truncated version of Wdistance.
Screenshot 2023-01-01 at 11 03 46

The same code worked perfectly for another dataset.
Screenshot 2023-01-01 at 11 05 34

See if you have any solutions or insights for this issue.
Thank you very much!

Best,
Wenna

Error if non sparse weight matrix used

Dear Jan,
I run the demo code in your github , eg VA data set to estimate a SAR mode, the estimation process goes smoothly but while I try to get the imact, estat impact, it returns the following errors:
estat impact
----+--- 10 --+--- 20 --+--- 30 --+--- 40 --+--- 50 %
*: 3200 conformability error
SparseMultiply(): - function returned error
BarryPace(): - function returned error
calc_DIEffects(): - function returned error
: - function returned error

As you methioned in one of the discussion, I need to install the new version of moremata library in Stata. The problem is that even I install it, the errors are still there, I sincerely hope that you can help me.

the coding is just like this :

use IO
keep if Year == 1998
drop buyer_industry seller_industry
replace sam = 0 if sam < 0
replace sam = 0 if ID1==ID2
reshape wide sam, i(ID1) j(ID2)
spset ID1
spmatrix fromdata WSpmat = sam* , replace
clear
use VA
nwxtregress cap_cons compensation net_surplus , dvarlag(WSpmat) seed(1234)
estat impact

Thank you very much!

Originally posted by @zhangzhqnk in #5

r(199); reghdfe Mata library not found or error in reghdfe.

Dear Jan,
I run the demo code in your GitHub:

Partial out firm and year fixed effects (requires reghdfe):
nwxtregress cap_cons compensation net_surplus , dvarlag(Wt,mata timesparse) ivarlag(Wt: compensation,mata timesparse ) seed(1234) absorb(ID Year)

I encounter the following error message:
reghdfe Mata library not found or error in reghdfe.
r(199);

I use stata 17MP and update the reghdfe.
Thank you!
Peng

Bug report in running -nwxtregress-

Hi,
When I run nwxtregress cap_cons compensation net_surplus , dvarlag(WSpmat) seed(1234) following the codes in help page, the error information is as follows:
'''
Initialise Grid (200)
----+--- 10 --+--- 20 --+--- 30 --+--- 40 --+--- 50 %
.................................................. 50
.................................................. 100
Griddy Gibbs (2000)
----+--- 10 --+--- 20 --+--- 30 --+--- 40 --+--- 50 %
mm_colrunsum(): 3001 expected 1 arguments but received 3
GriddyGibbsi(): - function returned error
GriddyGibbs(): - function returned error
estimatesar(): - function returned error
: - function returned error
r(3001);
'''
My Stata is SE 17.0 for Windows.

Thanks and best wishes.

3301 error in the 0.13 version of nwxtregress

Hi, Jan.

Happy new year!
When running the code, the following errors return in the 0.13 version of nwxtregress.
Is it anything suspicious about the data that cause the issue?

Screenshot 2023-01-23 at 11 33 08

Thank you,
Wenna

Questions when run nwxtregress

nwxtregress cap_cons compensation net_surplus , dvarlag(WSpmat) seed(1234)
error:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'scipy'
(43 lines skipped)

when I run this code, I met this error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.