Statistical programming, matrix languages, and more

ERROR: (execution) Matrices do not conform to the operation

Reply
Occasional Contributor
Posts: 8

ERROR: (execution) Matrices do not conform to the operation

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

 

SAS Super FREQ
Posts: 3,406

Re: ERROR: (execution) Matrices do not conform to the operation

The error is on the statement

u1[i] = u1;

 

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

Occasional Contributor
Posts: 8

Re: ERROR: (execution) Matrices do not conform to the operation

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
SAS Super FREQ
Posts: 3,406

Re: ERROR: (execution) Matrices do not conform to the operation

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.

 

 

 

Ask a Question
Discussion stats
  • 3 replies
  • 209 views
  • 0 likes
  • 2 in conversation