bs.test | R Documentation |
Performs goodness-of-fit test for the Birnbaum-Saunders distribution
bs.test(x, a)
bs.test.pvalue(r, n)
bs.test.critical(alpha, n)
x |
a numeric vector of data values. Missing values are allowed, but the number of non-missing values must be between 3 and 1000. |
a |
the offset fraction to be used; typically in (0,1). See |
r |
the sample correlation coefficient from the Birnbaum-Saunders probability plot; r is in (0,1). |
n |
the sample size. |
alpha |
the significance level. |
Using the sample correlation coefficeint from the Birnbaum-Saunders probability plot, it performs the goodness fit test for the Birnbaum-Saunders distribution.
A list with class "htest" containing the following components:
statistic |
the value of the test statistic (sample correlation from the Birnbaum-Saunders probability plot) |
p.value |
the p-value for the test. |
sample.size |
sample size (missing observations are deleted). |
method |
a character string indicating the goodness fit test for the Birnbaum-Saunders distribution. |
data.name |
a character string giving the name(s) of the data. |
Chanseok Park
Park, C. and M. Wang (2023).
A goodness-of-fit test for the Birnbaum-Saunders distribution based on the probability plot.
ArXiv e-prints, 2308.10150.
\Sexpr[results=rd]{tools:::Rd_expr_doi("10.48550/arXiv.2308.10150")}
ks.test
for performing a one- or two-sample Kolmogorov-Smirnov test.
shapiro.test
for performing the Shapiro-Wilk test of normality.
wp.test
{weibullness} for performing the Weibullness test.
# For the goodness of fit test
x = c(1.2, 2.0, 3.3)
bs.test(x)
# p.value with r (sample correlation from the probability plot) and n (sample size) are given
bs.test.pvalue(r=0.6, n=10)
# Critical value with alpha (significane level) and n (sample size).
bs.test.critical(alpha=0.01, n=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.