Gets one element of a matrix of estimates.
Syntax
result = object.GetEstimate (matrixID, rowVariableName, columnVariableName)
result = object.GetEstimate (matrixID, rowVariableName, columnVariableName, groupNumber)
result = object.GetEstimate (matrixID, row, column)
result = object.GetEstimate (matrixID, row, column, groupNumber)
The GetEstimates method syntax has the following parts:
Part |
Description |
result |
(Double) The scalar value in the specified row and column of the matrix. |
object |
An object of type AmosEngine. |
matrixID |
An integer that specifies a matrix of estimates, as described in Settings. |
rowVariableName |
The name of a variable that labels a row of the matrix. |
columnVariableName |
The name of a variable that labels a row of the matrix. |
row |
(Integer) A row number. The rows are numbered starting with 0. |
column |
(Integer) A column number. The columns are numbered starting with 0. |
groupNumber |
Optional integer specifying a group number. The first group is group number 1. If groupNumber is omitted, the first group is used. |
Placement: [3].
Settings
The settings for matrixID are:
Constant |
Value |
Description |
SampleCovariances |
13 |
Sample covariances. |
SampleCorrelations |
14 |
Sample correlations. |
SampleMeans |
15 |
Sample means. |
ImpliedCovariances |
10 |
The implied covariances among the observed variables in the model. |
ImpliedCorrelations |
11 |
The implied correlations among the observed variables in the model. |
ImpliedMeans |
12 |
The implied means of the observed variables in the model. |
AllImpliedCovariances |
7 |
The implied covariances among all variables in the model, with the exception of residual variables. |
AllImpliedCorrelations |
8 |
The implied correlations among all variables in the model, with the exception of residual variables. |
AllImpliedMeans |
9 |
The implied means of all variables in the model, with the exception of residual variables. |
DirectEffects |
19 |
Direct effects. |
IndirectEffects |
20 |
Indirect effects. |
TotalEffects |
5 |
Total effects. |
StandardizedDirectEffects |
22 |
Standardized direct effects. |
StandardizedIndirectEffects |
23 |
Standardized indirect effects. |
StandardizedTotalEffects |
21 |
Standardized total effects. |
FactorScoreWeights |
6 |
Factor score weights. |
Remarks
You have to use NeedEstimates to declare that estimates of a matrix will be needed before you can use GetEstimate to obtain the estimates. For example, you have to use
object.NeedEstimates (StandardizedTotalEffects)
before using
object.GetEstimate (StandardizedTotalEffects, …)
See Also