compareSurveysLRT {fitPS} | R Documentation |
Compare two or more surveys on the basis of their shape parameters using a Likelihood Ratio Test
Description
Compare two or more surveys on the basis of their shape parameters using a Likelihood Ratio Test
Usage
compareSurveysLRT(...)
Arguments
... |
two or more objects of class |
Details
This function **only** works for the zeta distribution. The function carries out a likelihood ratio test (LRT) to test the null hypothesis
versus the alternative
where is the shape parameter for the zeta distribution of the
survey.
Value
The function returns a list
of class "htest"
with the following elements:
statistic
– the test statistic.
parameter
– the degrees of freedom for the test
p.value
– the P-value associated with the estimate.
method
– a character string describing the method hypothesis.
data.name
– the names of the data sets used in the test
Examples
data(Psurveys)
lau = Psurveys$lau
jackson = Psurveys$jackson
compareSurveysLRT(lau, jackson)
## Example with three surveys
roux = Psurveys$roux
compareSurveysLRT(lau, jackson, roux)
[Package fitPS version 1.0.1 Index]