Search found 135 matches
- Tue Jan 11, 2022 2:03 pm
- Forum: Programming
- Topic: Code to determine date of first Friday of the year
- Replies: 5
- Views: 9280
Re: Code to determine date of first Friday of the year
i actually didn't figure it out. but i think i'm close. that returns "1/7/1"
- Tue Jan 11, 2022 1:53 pm
- Forum: Programming
- Topic: Code to determine date of first Friday of the year
- Replies: 5
- Views: 9280
Re: Code to determine date of first Friday of the year
Got it figured out!
%mydate=@datestr(6 - @mod(@datepart(@datefloor(@dateval(@date), "y"), "w") + 1, 7),"mm/dd/yyyy")
Thanks!
%mydate=@datestr(6 - @mod(@datepart(@datefloor(@dateval(@date), "y"), "w") + 1, 7),"mm/dd/yyyy")
Thanks!
- Tue Jan 11, 2022 1:48 pm
- Forum: Programming
- Topic: Code to determine date of first Friday of the year
- Replies: 5
- Views: 9280
Re: Code to determine date of first Friday of the year
Hi Matt!
Thanks for your reply! I receive a "non-numeric argument" error when trying that code. I tried adding a @datestr() to the second half, but it didn't resolve the error. Any thoughts?
Thanks for your reply! I receive a "non-numeric argument" error when trying that code. I tried adding a @datestr() to the second half, but it didn't resolve the error. Any thoughts?
- Tue Jan 11, 2022 7:48 am
- Forum: Programming
- Topic: Code to determine date of first Friday of the year
- Replies: 5
- Views: 9280
Code to determine date of first Friday of the year
Good morning! Is there a way to combine the @datefloor, @datepart, @weekday, and @datestr (or some combination of functions) to return a string that is the first Friday of the current year? I'm thinking something like: %mydate=@datestr(@datepart(@datefloor(@date),"dd"),"mm/dd/yyyy&quo...
- Thu Dec 16, 2021 11:05 am
- Forum: Programming
- Topic: EIA API fetch failure
- Replies: 3
- Views: 9196
Re: EIA API fetch failure
hi there!
Thanks for the fast reply. I took a screen cap and attached it to this post. It seems to have resolved for at the moment.
Thanks for the fast reply. I took a screen cap and attached it to this post. It seems to have resolved for at the moment.
- Thu Dec 16, 2021 9:15 am
- Forum: Programming
- Topic: EIA API fetch failure
- Replies: 3
- Views: 9196
EIA API fetch failure
Good morning! I'm receiving the attached error when trying to fetch from EIA API. I've included the code: cd c:\warem32\ close @db close @wf %startrange = "1/1/2010" %endrange=@datestr(@dateadd(@dateval(@date),1,"m"),"mm/dd/yyyy") wfcreate(wf=winddata, page=hourly) h %s...
- Thu Nov 18, 2021 12:36 pm
- Forum: Estimation
- Topic: Constructing new distributions for unit root test of AR model
- Replies: 0
- Views: 21895
Constructing new distributions for unit root test of AR model
Hi all!
I'm attempting to evaluate whether the residuals of an AR model are stationary, using unit root, understanding that I need new distributions to account for the modeled residuals. Is there a way to do this in eviews, using the Augmented Dicky Fuller test?
Thanks!
Bob
I'm attempting to evaluate whether the residuals of an AR model are stationary, using unit root, understanding that I need new distributions to account for the modeled residuals. Is there a way to do this in eviews, using the Augmented Dicky Fuller test?
Thanks!
Bob
- Wed Nov 17, 2021 11:22 am
- Forum: Programming
- Topic: Check if NA exists within series
- Replies: 2
- Views: 8500
Re: Check if NA exists within series
Thank you!
- Wed Nov 17, 2021 9:20 am
- Forum: Programming
- Topic: Check if NA exists within series
- Replies: 2
- Views: 8500
Check if NA exists within series
Hi all!
Is there quick way to check if any value of a given series is an NA?
Thanks!
Bob
Is there quick way to check if any value of a given series is an NA?
Thanks!
Bob
- Tue Oct 19, 2021 1:24 pm
- Forum: Programming
- Topic: Spline regression
- Replies: 3
- Views: 12564
Re: Spline regression
Hi all,
Wondering if since this post, Eviews has incorporated cubic spline regression.
Thanks!
Bob
Wondering if since this post, Eviews has incorporated cubic spline regression.
Thanks!
Bob
- Wed Sep 01, 2021 9:38 am
- Forum: Programming
- Topic: rename with wildcard code
- Replies: 2
- Views: 8829
Re: rename with wildcard code
Thanks!
- Wed Sep 01, 2021 8:03 am
- Forum: Programming
- Topic: rename with wildcard code
- Replies: 2
- Views: 8829
rename with wildcard code
Good morning, I'm running a job I coded sometime ago, that I run on a monthly basis. This month it is crashing because something seems to have changed with the rename function using wildcards. I have set of series that starts with the letter "d". I'd like to rename each series so that they...
- Thu Jul 29, 2021 8:39 am
- Forum: Programming
- Topic: Logmode question
- Replies: 3
- Views: 9409
Re: Logmode question
Thanks! I have used the statusline option before, however it captures every update in the statusline. Would there be a way for me to capture just the statusline updates that are triggered from code in the .prg?
Thanks again,
Bob
Thanks again,
Bob
- Thu Jul 29, 2021 6:37 am
- Forum: Programming
- Topic: Logmode question
- Replies: 3
- Views: 9409
Logmode question
Hi all!
Is there a way to capture just the output from "statusline" commands in a log?
I regularly use the statusline command as checkpoints for events, or decisions in a program and it would be helpful to capture the statuline output in a log.
Thanks!
Bob
Is there a way to capture just the output from "statusline" commands in a log?
I regularly use the statusline command as checkpoints for events, or decisions in a program and it would be helpful to capture the statuline output in a log.
Thanks!
Bob
- Tue Jul 20, 2021 7:34 am
- Forum: Data Manipulation
- Topic: EIA query failing
- Replies: 2
- Views: 13165
Re: EIA query failing
Thank you very much!