wilks.test: Estimator test based on Wilks' theorem

Description Usage Arguments Details Value Examples

View source: R/WL.R

Description

This is a test based on Wilks' theorem, to determine which parameter space the estimated parameter is included in.

Usage

1
wilks.test(x, estimator, side = "two")

Arguments

x

a numeric vector or data frame.

estimator

a numeric vector with estimated lambda and phi.

side

a character string which selects the direction of wilks' theorem test ("two", "less" or "greater").

Details

By Wilks' theorem, we can test the k-dimensional parameter with chi-square distribution. The Wilks' theorem test can be performed by assuming the parameter space of null hypothesis and setting the part not included in it as the parameter space of the alternative hypothesis.

Value

wilks.test returns a list with these components:

side

a character string of one of "two", "less" or "greater".

stat

a numeric value the statistics from Wilks' theorem.

pvalue

a numeric value the p-value of the statistics.

Examples

1
2
3
4
5
data <- fail_fiber
mme <- MME_WL(data)
wilks.test(data, mme, side="two")
wilks.test(data, mme, side="less")
wilks.test(data, mme, side="greater")

WLinfer documentation built on Jan. 8, 2021, 2:40 a.m.

Related to wilks.test in WLinfer...