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.
.
.
.
.
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.
Thank you, Do you know what "[,+]" operation does on Y matrix:
Y = Y[,2:ncol(Y)][,+];
Thank you
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 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.