Learn R Programming

sdlrm (version 0.1.2)

disp_test: 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)

Value

the function disp_test returns the values and corresponding asymptotic

p-values of the score, Wald, likelihood ratio, and gradient test statistics

Arguments

object

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

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

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

Run the code above in your browser using DataLab