View source: R/08_constant_dispersion.R
disp_test | R Documentation |
Hypothesis test on constant dispersion in the modified skew discrete Laplace regression.
disp_test(object)
object |
an object of class |
the function disp_test
returns the values and corresponding asymptotic
p-values of the score, Wald, likelihood ratio, and gradient test statistics
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.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.