BookmarkSubscribeRSS Feed
smurray
Calcite | Level 5
I want to write a code to multiply vector 1 starting at the beginning by vector 2, only vector 2 will move down one at every iteration while vector one will always begin at the beginning. The example given is on a much smaller scale, use lags would become much too large (400 periods / 200 variables ). How do I do this calculation by group- if first start over?
3 REPLIES 3
PaigeMiller
Diamond | Level 26

So, the parts of your attachment highlighted in yellow make no sense to me, and explanation is not provided. Which means to me that before we could provide any real assistance, these issues would have to be cleared up and explained. 

 

I also think that PROC IML would be able to handle this type of calculation easily.

--
Paige Miller
FreelanceReinh
Jade | Level 19

Also, it should be mentioned that at least a partial solution to this problem has been provided in your previous thread.

Reeza
Super User
Have you tried to modify the solution you already had? If so, please post what you've tried so far.

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 893 views
  • 0 likes
  • 4 in conversation