AbPval | R Documentation |
The percentile of r and r-squared (prr) generated by pivotal Monte Carlo analysis has been promoted as a goodness of fit measure by Robert B. Abernethy.
AbPval(F,R2,model="weibull")
F |
The quantity of complete failure data points under consideration. |
R2 |
The square of the correlation coefficient derived from residuals of the linear model. |
model |
A string defining the distribution under consideration. Only entry of "lnorm", or "lognormal" will alter the default of "weibull". |
The value returned is derived from a correlation developed from previously run pivotal analysis with 10^8 random samples. Only the prr derived from 2 parameter models is judged to have usefullness in comparitive analysis. For validity of a 3rd parameter optimization on a given model over its 2 parameter fit, only the Likelihood Ratio Test should be considered.
Returns a vector containing the P-value and the square of CCC (for comparison with R squared).
Robert B. Abernethy, (2008) "The New Weibull Handbook, Fifth Edition"
Wes Fulton, (2005) "Improved Goodness of Fit: P-value of the Correlation Coefficient"
Chi-Chao Lui, (1997) "A Comparison Between The Weibull And Lognormal Models Used To Analyse Reliability Data" (dissertation from University of Nottingham)
AbernethyPvalue<-AbPval(50, 0.996, "lnorm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.