Learn R Programming

goft (version 1.3.6)

weibull_test: Test for the Weibull distribution

Description

Test for the Weibull distribution based on a data transformation to observations with type I extreme value (Gumbel) distribution.

Usage

weibull_test(x, method = "transf", N = 1000)

Arguments

x

numeric data vector containing a random sample of positive observations.

method

test to be used. So far, "transf" is the only option and it comes by default.

N

number of Monte Carlo samples used to approximate the p-value of the test. Default is N = 1000.

Value

A list with class "htest" containing the following components.

statistic

the calculated value of the test statistic.

p.value

an approximated p-value of the test.

method

the character string "Test for the Weibull distribution".

data.name

a character string giving the name of the data set.

Details

The "ratio" test provided by function ev_test for the type I extreme value distribution is applied to the transformed observations.

See Also

Other tests for positive datasets are provided by functions ig_test, gamma_test and lnorm_test.

Examples

Run this code
# NOT RUN {
# Testing the Weibull distribution hypothesis on the maximum ozone levels given
# in the o3max data set.
data(o3max)
x <- o3max[ ,2]     # maximum ozone levels
weibull_test(x, N = 10000)     
# }

Run the code above in your browser using DataLab