2 weeks ago
Golf
Pyrite | Level 9
Member since
02-25-2020
- 94 Posts
- 31 Likes Given
- 3 Solutions
- 0 Likes Received
-
Latest posts by Golf
Subject Views Posted 1375 01-11-2024 09:13 AM 1729 01-11-2024 04:29 AM 1786 01-10-2024 08:40 PM 1794 01-10-2024 08:33 PM 1799 01-10-2024 08:24 PM 1804 01-10-2024 08:19 PM 1874 01-10-2024 09:41 AM 1476 01-10-2024 08:00 AM 1517 01-10-2024 04:58 AM 1567 01-10-2024 03:12 AM -
Activity Feed for Golf
- Liked Re: Generate lead variables in the same data set. for Ksharp. 01-16-2024 10:17 PM
- Posted Re: Generate a new variable that reverses the order of an existing variable. on SAS Procedures. 01-11-2024 09:13 AM
- Posted Re: Generate lead variables in the same data set. on SAS Procedures. 01-11-2024 04:29 AM
- Posted Re: Generate lead variables in the same data set. on SAS Procedures. 01-10-2024 08:40 PM
- Posted Re: Generate lead variables in the same data set. on SAS Procedures. 01-10-2024 08:33 PM
- Posted Re: Generate lead variables in the same data set. on SAS Procedures. 01-10-2024 08:24 PM
- Posted Re: Generate lead variables in the same data set. on SAS Procedures. 01-10-2024 08:19 PM
- Posted Generate lead variables in the same data set. on SAS Procedures. 01-10-2024 09:41 AM
- Posted Re: Generate a new variable that reverses the order of an existing variable. on SAS Procedures. 01-10-2024 08:00 AM
- Posted Re: Generate a new variable that reverses the order of an existing variable. on SAS Procedures. 01-10-2024 04:58 AM
- Posted Generate a new variable that reverses the order of an existing variable. on SAS Procedures. 01-10-2024 03:12 AM
- Posted proc arima on New SAS User. 01-08-2024 08:45 PM
- Liked Re: proc ARIMA for sbxkoenk. 11-09-2023 05:07 AM
- Posted Re: proc ARIMA on SAS Forecasting and Econometrics. 11-04-2023 09:20 AM
- Posted Re: proc ARIMA on SAS Forecasting and Econometrics. 11-04-2023 02:53 AM
- Posted proc ARIMA on SAS Forecasting and Econometrics. 11-02-2023 08:20 AM
- Posted Re: Different output in proc reg on SAS Procedures. 11-02-2023 05:46 AM
- Posted Re: Different output in proc reg on SAS Procedures. 11-02-2023 05:46 AM
- Posted Different output in proc reg on SAS Procedures. 11-02-2023 04:47 AM
- Posted Re: proc IML on SAS/IML Software and Matrix Computations. 10-30-2023 08:45 AM
-
Posts I Liked
Subject Likes Author Latest Post 3 1 1 1 1
01-10-2024
08:40 PM
I was able to achieve my goal by reversing the data by time variable once again. Thanks a lot.
... View more
01-10-2024
08:33 PM
However, when I applied your code as follow: data reverse; input time x y z; cards; 1 10 11 21 2 2 12 22 3 40 13 23 4 4 14 24 5 80 15 25 ; run; proc sort data=reverse; by descending time; run; data want; set reverse ; x_lead1 = lag1(x); x_lead2 = lag2(x); x_lead3 = lag3(x); run; proc print data = want; var time x y z x_lead1 x_lead2 x_lead3; The result is not what I want.
... View more
01-10-2024
08:19 PM
"Thank you for your help. Just to clarify, if I change "obs" to "time", would it still make sense? Also, when I say "I want to create one until three period", I actually mean "I want to create data for one to three periods ahead." Lastly, the periods (".") shown in the "want" data indicate that the data is not available." Thank You.
... View more
01-10-2024
09:41 AM
Hello all, @Kurt_Bremser
Suppose I have 3 variables (X, Y, and Z)
obs X Y Z
1 10 11 21
2 2 12 22
3 40 13 23
4 4 14 24
5 80 15 25
Now I want to create one until three periods lead variable of X called X_lead1 X_lead2 X_lead3, while keeping the existing variables as follow.
obs X Y Z X_lead1 X_lead2 X_lead3
1 10 11 21 2 40 4
2 2 12 22 40 4 80
3 40 13 23 4 80 .
4 4 14 24 80 . .
5 80 15 25 . . .
Thank You
Could you provide guidance on how to write SAS code to generate the second data set?
... View more
01-10-2024
04:58 AM
Thank You so much.
... View more
01-10-2024
03:12 AM
Suppose I have 3 variables (X, Y, and Z)
obs X Y Z
1 10 11 21
2 2 12 22
3 40 13 23
4 4 14 24
5 80 15 25
I want to create a new variable called XX that reverses the order of variable X while preserving the order of the other variables.
obs X Y Z XX
1 10 11 21 80
2 2 12 22 4
3 40 13 23 40
4 4 14 24 2
5 80 15 25 10
Could you provide guidance on how to write SAS code to generate the second data set?
Thanks
... View more
01-08-2024
08:45 PM
Hi, I noticed that there are 3 options (ML, CLS, ULS) for estimation methods in proc arima. Is it possible to use OLS method? Thanks
... View more
11-02-2023
08:20 AM
Hi everyone,
I'm looking for help with the correct code to run the following model using "proc ARIMA":
dy = a0 + a1*trend + a2*coint(-1) + b1*dy(-1) + b2*dy(-2) +....+b5*dy(-5) + c1*dx(-1) + c2*dx(-2) + .... +c5*dx(-5) +error
In this model, dy is the first difference of y, dy(-1) represents the 1 period lag of dy, and dy(-5) represents the 5 period lag of dy. I generated the dy and dx variables from dif(y) and dif(x), respectively.
Additionally, I'm wondering if the backward selection can be applied to the lag of dy(-1) through dy(-5), dx(-1) through dx(-5).
Thank you for your help.
... View more