disp_test: Test for Constant Dispersion in the Modified Skew Discrete...

View source: R/08_constant_dispersion.R

disp_testR Documentation

Test for Constant Dispersion in the Modified Skew Discrete Laplace Regression

Description

Hypothesis test on constant dispersion in the modified skew discrete Laplace regression.

Usage

disp_test(object)

Arguments

object

an object of class "sdlrm", a result of a call to sdlrm.

Value

the function disp_test returns the values and corresponding asymptotic p-values of the score, Wald, likelihood ratio, and gradient test statistics

References

Medeiros, R. M. R., and Bourguignon, M. (2025). Modified skew discrete Laplace regression models for integer valued data with applications to paired samples. Manuscript submitted for publication.

Examples

## Data set: pss (for description run ?pss)
barplot(table(pss$difference), xlab = "PSS index difference", ylab = "Frequency")
boxplot(pss$difference ~ pss$group, xlab = "Group", ylab = "PSS index difference")

## Fit a double model (mode = 1)
fit0 <- sdlrm(difference ~ group | group, data = pss, xi = 1)

## Constant dispersion test
disp_test(fit0)


sdlrm documentation built on April 12, 2025, 1:15 a.m.