WeibullAnalysisResults Class: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) mNo edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<onlyinclude>Represents | <onlyinclude>Represents the correlation coefficient, likelihood ratio and PNZ values from the life data analysis of the associated [[WeibullDataSet Class|WeibullDataSet]] object.</onlyinclude> | ||
== Properties == | == Properties == | ||
{| {{APITable}} | {| {{APITable}} | ||
|- | |- | ||
| style="width: 180px;"|CorrelationCoefficient||Gets the correlation coefficient (rho value) | | style="width: 180px;"|CorrelationCoefficient||Gets the correlation coefficient (rho value), assuming the parameters of the distribution were estimated using rank regression. '''Double'''. | ||
|- | |- | ||
|LikelihoodValue||Gets the likelihood function value (LK value). '''Double'''. | |LikelihoodValue||Gets the likelihood function value (LK value). '''Double'''. | ||
|- | |- | ||
|PercentNonZero||Gets the percent non-zero (Pnz) value | |PercentNonZero||Gets the percent non-zero (Pnz) value of the data set. '''Double'''. A value of 1 indicates that there are no zero failure times in the data set; a decimal value indicates that the data set includes zero failure times. | ||
|} | |} | ||
== Example == | == Example == | ||
The following example demonstrates how to return the correlation coefficient of a particular WeibullDataSet object. | |||
'''VBA''' | '''VBA''' | ||
{{APIComment|'Declare a WeibullDataSet.}} | {{APIComment|'Declare a WeibullDataSet object.}} | ||
{{APIPrefix|Dim}} WDS {{APIPrefix|as New}} WeibullDataSet | {{APIPrefix|Dim}} WDS {{APIPrefix|as New}} WeibullDataSet | ||
Line 37: | Line 38: | ||
'''VB.NET''' | '''VB.NET''' | ||
{{APIComment|'Declare a WeibullDataSet.}} | {{APIComment|'Declare a WeibullDataSet object.}} | ||
{{APIPrefix|Dim}} WDS {{APIPrefix|as New}} WeibullDataSet | {{APIPrefix|Dim}} WDS {{APIPrefix|as New}} WeibullDataSet | ||
Latest revision as of 20:24, 24 June 2016
Member of: SynthesisAPI
Represents the correlation coefficient, likelihood ratio and PNZ values from the life data analysis of the associated WeibullDataSet object.
Properties
Name | Description |
---|---|
CorrelationCoefficient | Gets the correlation coefficient (rho value), assuming the parameters of the distribution were estimated using rank regression. Double. |
LikelihoodValue | Gets the likelihood function value (LK value). Double. |
PercentNonZero | Gets the percent non-zero (Pnz) value of the data set. Double. A value of 1 indicates that there are no zero failure times in the data set; a decimal value indicates that the data set includes zero failure times. |
Example
The following example demonstrates how to return the correlation coefficient of a particular WeibullDataSet object.
VBA 'Declare a WeibullDataSet object. Dim WDS as New WeibullDataSet 'Add the failure times 10, 20 and 30 to the data set. Call WDS.AddFailure(10, 1) Call WDS.AddFailure(20, 1) Call WDS.AddFailure(30, 1) 'Fit the data to a life distribution, using all default settings. WDS.Calculate 'Retrieve the value of the correlation coefficient. Dim CorrCoeff As Double CorrCoeff = WDS.AnalysisResults.CorrelationCoefficient Msgbox(CorrCoeff)
VB.NET 'Declare a WeibullDataSet object. Dim WDS as New WeibullDataSet 'Add the failure times 10, 20 and 30 to the data set. WDS.AddFailure(10, 1) WDS.AddFailure(20, 1) WDS.AddFailure(30, 1) 'Fit the data to a life distribution, using all default settings. WDS.Calculate 'Retrieve the value of the correlation coefficient. Dim CorrCoeff As Double CorrCoeff = WDS.AnalysisResults.CorrelationCoefficient Msgbox(CorrCoeff)