goft (version 1.3.1)

lnorm.test: Test for the lognormal distribution

Description

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

Usage

lnorm.test(x)

Arguments

x
a numeric data vector containing a random sample of positive 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.

Details

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

See Also

Other tests for some alternative distributions to the lognormal model are impremented in functions ig.test, gamma_test and weibull.test.

Examples

Run this code
# 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 

Run the code above in your browser using DataLab