Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
[SerializableAttribute] public class PartialCovariances |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class PartialCovariances |
Visual C++ |
---|
[SerializableAttribute] public ref class PartialCovariances |
Remarks
If the "independent" variables (the linear "effect" of the independent variables is removed in computing the partial covariances/correlations) are linearly related to one another, PartialCovariances detects the linearity and eliminates one or more of the independent variables from the list of independent variables. The number of variables eliminated, if any, can be determined from the property PartialDegreesOfFreedom.
Given a covariance or correlation matrix partitioned as
class PartialCovariances computes the partial covariances (of the standardized variables if is a correlation matrix) as A positive semidefinite solver is used to compute .If partial correlations are desired, these are computed as
where denotes the matrix containing the diagonal of its argument along its diagonal with zeros off the diagonal. If is singular, then as many variables as required are deleted from (and ) in order to eliminate the linear dependencies. The computations then proceed as above.The p-value for a partial covariance tests the null hypothesis , where is the (i, j) element in matrix . The p-value for a partial correlation tests the null hypothesis , where is the (i, j) element in matrix . The p-values are returned by GetPValues. If the degrees of freedom for sigma, df, is not known, the resulting p-values may be useful for comparison, but they should not by used as an approximation to the actual probabilities.