Gets a matrix of estimates.
Syntax
object.GetEstimatesEx (matrixID, theMatrix)
object.GetEstimatesEx (matrixID, theMatrix, groupNumber)
The GetEstimatesEx method syntax has the following parts:
Part |
Description |
object |
An object of type AmosEngine. |
matrixID |
An integer that specifies a matrix of estimates, as described in Settings. |
theMatrix |
An object of type AmosMatrix. On return from GetEstimatesEx theMatrix contains the estimate of the matrix specified by matrixID. |
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 GetEstimatesEx to obtain the estimates. For example, you have to use
object.NeedEstimates (StandardizedTotalEffects)
before using
object.GetEstimatesEx (StandardizedTotalEffects, …)
GetEstimatesEx differs from GetEstimates in the following way. GetEstimatesEx assigns values to the members of an AmosMatrix object, which contains the matrix of estimates as well as the variable names and variable numbers associated with the matrix's rows and columns. GetEstimates, by contrast, merely sets a double array equal to the matrix of estimates. Additional calls to RowNames, RowNumbers, ColumnNames and ColumnNumbers are necessary if there is a need for the variable names and variable numbers associated with the matrix's rows and columns.
GetEstimatesEx is often more convenient, but GetEstimates is faster.
See Also