In a procedure, I'm defining a LOCAL series of k differences. When I call the procedure with 1 lag, say, the first entry is NA, and the rest of the series is the 1 period difference. When I call the procedure a second time (in a do loop) with 2 lags and print the series again, the first entry is NA, the second entry is identical to the first call, and subsequent entries are correct. I thought that defining the series as LOCAL would give me a blank slate on each call, and thus, the first two entries would be NA on the second call. Is there something else I should be doing?
Thank you.
Problem with LOCAL series
Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.
Return to “Help With Programming”
Jump to
- News and Announcements
- ↳ Forum Announcements
- ↳ RATS Product Announcements
- ↳ Newsletters
- Courses and Seminars
- ↳ Course Announcements
- ↳ ARCH GARCH and Volatility
- ↳ RATS Programming Manual
- Procedures, Examples, and Sample Code
- ↳ RATS Procedures
- ↳ Examples and Sample Code
- ↳ Looking for Code?
- General RATS Discussions
- ↳ Data: Reading, Writing, Transforming
- ↳ Graphics, Reports, and Other Output
- ↳ Help With Programming
- ↳ Other RATS Usage Questions
- ↳ RATS for Teachers & Students
- ↳ Tips and Tricks
- ↳ Suggestion Box
- Econometrics Issues
- ↳ VARs (Vector Autoregression Models)
- ↳ ARCH and GARCH Models
- ↳ State Space Models/DSGE
- ↳ Structural Breaks and Switching Models
- ↳ Panel Data
- ↳ Other Time Series Analysis
- ↳ General Econometrics
- CATS (Cointegration Analysis)
- ↳ CATS News and Announcements
- ↳ CATS Questions