Git Product home page Git Product logo

xtdcce2's Introduction

Welcome

I am an Assistant Professor (RTD-A) at the Free University of Bozen-Bolzano, Bolzano, Italy.

My research interests are in the field of Applied Econometrics with a focus on Panel-Time Series and Spatial Econometrics and Growth Empirics. I have also an interest in Growth Theory, Simulation Studies and the implementation of econometric methods into statistical software.

See also my Personal webpage.

Stata packages - Econometric Methods

Package Version Updated Description Article/Slides
xtdcce2 version release Estimation of Common Correlated Effects (CCE) Estimator. Includes xtcd2 and xtcse2 to test for and estimate exponent of cross-section dependence Stata Journal 18:3, Stata Journal 21:3, Slides.
xtbreak version release Estimating and testing for many known and unknown structural breaks in time series and panel data. Work with Yiannis Karavias and Joakim Westerlund. arXiv 2110.14550, arXiv 2211.06707 (Main paper), Slides.
nwxtregress version release Network Regressions in Stata with unbalanced panel data and time varying network structures or spatial weight matrices. Work with William Grieser and Morad Zekhnini. Slides
xthst version release Testing for slope homogeneity in Stata. Work with Tore Bersvendsen. Stata Journal 21:1
xtgrangert version release Improved tests for Granger noncausality in panel data. Work with Jiaqi Xiao, Yiannis Karavias, Artūras Juodis and Vasilis Sarafidis. Stata Journal 23:1, Slides
xtnumfac version release A battery of estimators for the number of common factors in time series and panel-data models. Work with Simon Reese. Stata Journal 23:2.

Stata packages - Data Processing

Package Version Updated Description
simulate2 version release Enhanced and parallised simulations in Stata.
mmat2tex version release Export Mata Matrix to LaTeX Tables.
htmltab2stata version release Converting html tables into a Stata dataset.
stataid version release Obtaining and displaying information about running Stata instances and closing Stata instances in Microsoft Windows.
multishell version release Parallise loops in Stata (discontinued, no further bug fixing/development).

Overview of Downloads from SSC

pic

xtdcce2's People

Contributors

janditzen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xtdcce2's Issues

Problem in xtset2, check 3)

Hi Jan,

I noticed a small bug in xtset2.ado, line 90: svmat creates the variable but appends an extra 1 at the end, i.e. Tmat1 instead of Tmat. This makes xtset2 fail when using set varabbrev off. This behavior also occurs in line 107 with sum.

Best,

Chris

speed xtcd2

Instead of loop in loop, multiply e (residuals, NxT) with ej where ej is e with jth element to front, i.e. ej = (ej, ej+1,...,eN,e1,...,ej-1). loop over ej and multiply with e. gives N cross correlations, i.e. one row for rho matrix.

advantage: only one loop necessary. faster?
disadvantage: if large T and large N, speed might be slower.
solutions: do test runs and assign threshold when multiplication gets slower.

error with xtcse2

I keep on getting an error message when I try to run the codes in the help file in Stata. Can you kindly check if there are any bugs (with stata 17)?

image

Output when using ARDL

  • gap after "Short Run Est."
  • Headline misses Mean Group Estimator, says only CS-ARDL in brackets.

xtcse2

only last CD value is saved in r(CD)

RSS MSS

First thank you for the codes. I checked and compared the outputs of RSS (residual sum of squares), MSS (model sum of squares) and R-squared. There may be something wrong. The formula seems to be R-sq = rss / (rss+mss) . I think either the R-sq formula is wrong, or the names assigned to rss and mss have been mixed up. Thank you very much!

selectindex and version 13

check which selectindex to use. if version < 14 { selectindex() } to auxilary script and replace xtdcce2_selectindex ... with selectindex

Partialling Out Constant

Problem with partialling out a constant, try to use svsolve in mata instead of qr solve or force solver to be always the same.

Underlying problem is that Stata matrix inverter might produce different results.

R2_MG in ARDL

always close to zero because lower part (Yi - Ybar) always small

MG estimates with omitted vars

Coefficients for omitted variables are included in mean group regression. User needs to be warned and options should be given to exclude those zeros.

Work required in mean group program.

mm_which2

mata st_local("omitted_var",`mata_varlist'[mm_which2(`mata_varlist'[.,2],tokens("`omitted_var'")'),1])

Shouldn't this be xtdcce2_mm_which2 ? mm_which2 is undefined in my version of moremata.

Jackknife

If option jackknife is used, then the cross sectional averages need to be partial out over the first and the second half of the dataset, rather than over the entire.

See attached code:

clear

set obs 100

gen t = _n

gen x = rnormal()
gen cons = 1
gen y = 2cons + 0.5x + rnormal()

reg y cons , noconst
predict ytilde , res

reg x cons, noconst
predict xtilde, res

reg y x
scalar b1mg = _b[x]
reg ytilde xtilde, noconst
scalar b1mgtilde = _b[xtilde]

** Jackknife

reg y x if t < 50
scalar b1 = _b[x]

reg y x if t >= 50
scalar b2 = _b[x]

reg ytilde xtilde if t < 50, noconst
scalar b1tilde = _b[xtilde]

reg ytilde xtilde if t >= 50, noconst
scalar b2tilde = _b[xtilde]

** Correct partial out
reg y cons if t < 50, noconst
predict y1tilde, res
reg y cons if t >= 50, noconst
predict y2tilde, res

reg x cons if t < 50, noconst
predict x1tilde, res
reg x cons if t >= 50, noconst
predict x2tilde, res

reg y1tilde x1tilde if t < 50, noconst
scalar b12tilde = _b[x1tilde]
reg y2tilde x2tilde if t >= 50, noconst
scalar b22tilde = _b[x2tilde]

display "normal regression"
display 2b1mg - 0.5 * (b1 + b2 )
display "wrong model"
display 2
b1mgtilde - 0.5 * (b1tilde + b2tilde)
display "correct model with partial out for each half"
display 2*b1mgtilde - 0.5 * (b12tilde + b22tilde)

estat bar|box|recap and LR coefficient

estat quits with error message.
Problem is that local with variables for graph is empty because variables are missing in lists to create graphs.
Need fix in xtdcce2 main program and returned variables.

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.