BookmarkSubscribeRSS Feed
Cnord
Calcite | Level 5

I am having a problem in this coding. I cannot figure out what is the problem with the operands "[". Can anyone helping me out ?first part.JPGsecond part.JPGthird part.JPG

 

3 REPLIES 3
Rick_SAS
SAS Super FREQ

The error is on the statement

u1[i] = u1;

 

The left hand side is a scalar. The right hand side is a vector.

Cnord
Calcite | Level 5
however when i remove the statement :
u1[i]=u1
another error occurs.
Error: matrix is not defined
the error occur at the statement
u1=u[p+1:t,]
where the error occurs at the operand '[' also
Rick_SAS
SAS Super FREQ

If you would like help, please

1. Present your program as text (click the "running man" icon), not as a screen capture

2. State what you are trying to accomplish

3. For best results, include sample data so that others can run your program.

 

 

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 3 replies
  • 967 views
  • 0 likes
  • 2 in conversation