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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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