Hello!
I am not sure if this is documented, but using {.} seems to work instead of using an end do statement, as in:
do i=1,3 {
dis "i = " i
}
Is this something we can rely upon?
thanks,
Randy
Search found 16 matches
- Tue Jun 09, 2026 2:08 pm
- Forum: Help With Programming
- Topic: do loop syntax updated??
- Replies: 1
- Views: 5026
- Thu Feb 05, 2026 10:14 am
- Forum: Help With Programming
- Topic: ewise for matrix and vector (and %cputime() request)
- Replies: 0
- Views: 23821
ewise for matrix and vector (and %cputime() request)
Hi all, I'm using some large matrices (42000 x 13), and trying to speed up my code using ewise rather than loops. (btw for optimization purposes, it would be helpful for %cputime() to output a real, rather than integer). Instead of a loop like do j = 1, 42000 * Shift lagged values first do lag = 13,...
- Tue Apr 12, 2022 8:50 am
- Forum: VARs (Vector Autoregression Models)
- Topic: computing error bands for impulse responses of AB-type SVAR
- Replies: 8
- Views: 82315
Re: computing error bands for impulse responses of AB-type S
I can't speak to the technical questions here. I just want to report that I have two "A" models (so I removed "B" references), and the code seems to run very well. Thanks for posting it.
- Tue Aug 25, 2020 11:45 am
- Forum: General Econometrics
- Topic: Nonlinear estimation: cross-section data
- Replies: 2
- Views: 58770
Re: Nonlinear estimation: cross-section data
For each i, there is a theta variable which refers to unobserved variance of the prior. For the system, the delta vector consists of: a) mean of signal b) upward bias of signal, for those who think it is upward biased c) variance of signal, for those who think it is upward biased d) downward bias of...
- Tue Aug 04, 2020 12:30 pm
- Forum: General Econometrics
- Topic: Nonlinear estimation: cross-section data
- Replies: 2
- Views: 58770
Nonlinear estimation: cross-section data
Hi all, I have a problem that involves nonlinear estimation, period-by-period. I have (say) 8 equations of the form f(delta,theta(i)) = epsilon(i) and (say) 28 equations of the form g(delta,theta(i)) = epsilon(i) - epsilon(j). I can successfully use FIND to estimate all the parameters (delta vector,...
- Fri Jun 19, 2020 1:05 pm
- Forum: State Space Models/DSGE
- Topic: bootstrapping DSGE model; how are residuals in DLM computed?
- Replies: 4
- Views: 27722
Re: bootstrapping DSGE model; how are residuals in DLM compu
This paper seems relevant: https://editorialexpress.com/cgi-bin/conference/download.cgi?db_name=IAAE2016&paper_id=555 I have not read it carefully, inasmuch as this type of thing is very tough slogging for my current skill set. I am not sure what to make of your reply, to be honest. Doesn't know...
- Wed Jun 17, 2020 3:02 pm
- Forum: State Space Models/DSGE
- Topic: bootstrapping DSGE model; how are residuals in DLM computed?
- Replies: 4
- Views: 27722
Re: bootstrapping DSGE model; how are residuals in DLM compu
Bummer. Well, I guess I have to code that up by hand, then. (I don't think that the indirect inference approach meshes at all with Gibbs sampling, but am prepared to be corrected.) There are some examples and matlab code (http://www.patrickminford.net/Indirect/) which I will attempt to follow. Evide...
- Tue Jun 16, 2020 1:42 pm
- Forum: State Space Models/DSGE
- Topic: bootstrapping DSGE model; how are residuals in DLM computed?
- Replies: 4
- Views: 27722
bootstrapping DSGE model; how are residuals in DLM computed?
Hi Tom (and everyone), As I understand it, DLM does simulations of DSGE models by drawing Normal shocks according to the solved variance-covariance matrix. However, if one wishes to estimate the model via indirect inference, one must simulate the DSGE via bootstrapping. DLM will provide the estimate...
- Mon Mar 06, 2017 7:37 pm
- Forum: Help With Programming
- Topic: Two regressor lists
- Replies: 4
- Views: 10638
Re: Two regressor lists
Aha, got it.
Thanks very much!
Thanks very much!
- Mon Mar 06, 2017 12:53 pm
- Forum: Help With Programming
- Topic: Two regressor lists
- Replies: 4
- Views: 10638
Re: Two regressor lists
Hi Tom, thanks for replying. I must be dense because I don't see how this gets information from the main program into the procedure. Ideally, I want a user to give two lists of variables, which are passed to a proc. How does " equation conteq * " accomplish that? Would I need to define *gl...
- Mon Mar 06, 2017 10:12 am
- Forum: Help With Programming
- Topic: Two regressor lists
- Replies: 4
- Views: 10638
Two regressor lists
Hi everyone, I am developing a proc that implements "unusual observation detection" in conjunction with a paper I am revising (joint work with Christian Garciga). Use of this procedure will help you detect weird observations (e.g., if you are cleaning data), to determine if your results ar...
- Fri Apr 08, 2016 2:37 pm
- Forum: VARs (Vector Autoregression Models)
- Topic: Kilian 1998 (RES)
- Replies: 2
- Views: 7258
Re: Kilian 1998 (RES)
Tom Doan has come to the rescue.
https://estima.com/forum/viewtopic.php?f=8&t=2264
https://estima.com/forum/viewtopic.php?f=8&t=2264
- Thu Jan 21, 2016 1:57 pm
- Forum: Other Time Series Analysis
- Topic: MCD and fast-MCD algorithm (or det-MCD or FCH)
- Replies: 0
- Views: 5878
MCD and fast-MCD algorithm (or det-MCD or FCH)
I'm wondering if anyone has worked on implementing the fast-MCD (or the newer det-MCD, in the 2010 working paper from Hubert, Rousseeuw, and Verdonck) algorithm for robust estimation of covariance matrices. (This would be an input, for example, into a solid multivariate outlier detection routine, or...
- Thu Jan 21, 2016 1:39 pm
- Forum: Other Time Series Analysis
- Topic: Recursive one-sided HP filtered trend
- Replies: 3
- Views: 7384
Re: Recursive one-sided HP filtered trend
You are probably aware of this, but in case you aren't ... all filters like this have serious problems near the edges of the data. The standard procedure to help minimize this is to augment the data with a forecast. (For example, see Ashley and Verbrugge, Econometric Reviews 2009). In quarterly data...
- Thu Apr 10, 2014 10:05 am
- Forum: Panel Data
- Topic: simulation: creating panels
- Replies: 2
- Views: 7317
Re: simulation: creating panels
Thanks very much!