Statistical programming, matrix languages, and more

Do have any idea of the following error:

Reply
Contributor
Posts: 38

Do have any idea of the following error:

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.

.

.

.

.

SAS Employee
Posts: 94

Re: Do have any idea of the following error:

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.

Contributor
Posts: 38

Re: Do have any idea of the following error:

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

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

Thank you

Frequent Contributor
Posts: 130

Re: Do have any idea of the following error:

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.

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