lnorm.test: Test for the lognormal distribution

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Test for the lognormal distribution based on a data transformation to normal observations.

Usage

1

Arguments

x

a numeric data vector containing a random sample of positive observations.

Details

Shapiro-Wilk test is used for testing normality on the transformed observations.

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 lognormal distribution based on a transformation to normality".

data.name

a character string giving the name of the data set.

Author(s)

Elizabeth Gonzalez-Estrada, Jose A. Villasenor

See Also

Other tests for some alternative distributions to the lognormal model are impremented in functions ig_test, gamma_test and weibull_test.

Examples

1
2
3
4
5
# Testing the lognormal distribution hypothesis  on the compressive strength variable
# of the strength data set.
data("strength")
x  <- strength$cstrength   # compressive strength
lnorm_test(x)              # testing the lognormal distribution hypothesis 

Example output

Loading required package: fitdistrplus
Loading required package: MASS
Loading required package: survival
Loading required package: npsurv
Loading required package: lsei

	Test for the lognormal distribution based on a transformation to
	normality

data:  x
p-value = 0.3734

goft documentation built on July 1, 2020, 5:56 p.m.

Related to lnorm.test in goft...