BookmarkSubscribeRSS Feed
goliPSU
Calcite | Level 5

NOTE: Writing HTML Body file: sashtml1.htm

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

operation : * at line 6872 column 1

operands  : _TEM1001, Z_wst

_TEM1001    175 rows    175 cols    (numeric)

Z_WST    176 rows    179 cols    (numeric)

statement : ASSIGN at line 6872 column 1

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

operation : * at line 6872 column 1

operands  : _TEM1001, Z_rtt

_TEM1001    175 rows    175 cols    (numeric)

Z_RTT    176 rows    179 cols    (numeric)

statement : ASSIGN at line 6872 column 1

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

operation : * at line 6872 column 1

operands  : _TEM1001, Z_wst

_TEM1001    175 rows    175 cols    (numeric)

Z_WST    176 rows    179 cols    (numeric)

statement : ASSIGN at line 6872 column 1

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

operation : * at line 6872 column 1

operands  : _TEM1001, Z_rtt

_TEM1001    175 rows    175 cols    (numeric)

Z_RTT    176 rows    179 cols    (numeric)

statement : ASSIGN at line 6872 column 1

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

operation : `* at line 6872 column 1

operands  : wseshr, fdwst

wseshr    175 rows      1 col     (numeric)

fdwst    176 rows      1 col     (numeric)

statement : ASSIGN at line 6872 column 1

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

operation : `* at line 6872 column 1

operands  : rteshr, fdrtt

rteshr    175 rows      1 col     (numeric)

fdrtt    176 rows      1 col     (numeric)

statement : ASSIGN at line 6872 column 1

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

operation : `* at line 6872 column 1

operands  : wsgshr, fdwst

wsgshr    175 rows      1 col     (numeric)

fdwst    176 rows      1 col     (numeric)

statement : ASSIGN at line 6872 column 1

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

operation : `* at line 6872 column 1

operands  : rtgshr, fdrtt

rtgshr    175 rows      1 col     (numeric)

fdrtt    176 rows      1 col     (numeric)

statement : ASSIGN at line 6872 column 1

ERROR: (execution) Matrix has not been set to a value.

operation : [ at line 6872 column 1

operands  : ZuerowW, $SUB0001

ZuerowW      0 row       0 col     (type ?, size 0)

statement : ASSIGN at line 6872 column 1

ERROR: (execution) Matrix has not been set to a value.

operation : [ at line 6872 column 1

operands  : ZuerowR, $SUB0001

ZuerowR      0 row       0 col     (type ?, size 0)

statement : ASSIGN at line 6872 column 1

ERROR: (execution) Matrix has not been set to a value.

operation : * at line 6872 column 1

operands  : ueratioW, zuerowW

ueratioW      0 row       0 col     (type ?, size 0)

ZuerowW      0 row       0 col     (type ?, size 0)

statement : ASSIGN at line 6872 column 1

ERROR: (execution) Matrix has not been set to a value.

operation : [ at line 6872 column 1

operands  : ZugrowW, $SUB0001

ZugrowW      0 row       0 col     (type ?, size 0)

statement : ASSIGN at line 6872 column 1

ERROR: (execution) Matrix has not been set to a value.

operation : [ at line 6872 column 1

operands  : ZugrowR, $SUB0001

ZugrowR      0 row       0 col     (type ?, size 0)

statement : ASSIGN at line 6872 column 1

ERROR: (execution) Matrix has not been set to a value.

.

.

.

.

3 REPLIES 3
Hutch_sas
SAS Employee

The matrix multiplication operation you are trying to do is not defined for the dimensions of the matrices, i. e. you can't multiply a 175 x 175 matrix and a 176 x179 matrix.

goliPSU
Calcite | Level 5

Thank you, Do you know what "[,+]"  operation does on Y matrix:

Y = Y[,2:ncol(Y)][,+];

Thank you

IanWakeling
Barite | Level 11

There are two parts to the statement, firstly it makes a copy of columns 2 to the last column of Y, then the [,+] operation is applied to this intermediate matrix which has the effect of adding up the rows.  So Y is replaced by a column vector of its row sums where the first column is excluded from the summation.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 954 views
  • 0 likes
  • 3 in conversation