## 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 with a model only for the mean (mode = 1)
fit <- sdlrm(difference ~ group, data = pss, xi = 1)
## Available plots (using the randomized quantile residuals):
# Residuals versus fitted values
plot(fit, which = 1)
# Residuals versus observation indices
plot(fit, which = 2)
# Normal Q-Q plot
plot(fit, which = 3)
# Observed versus fitted frequencies
plot(fit, which = 4)
# Sample autocorelation function of residuals
plot(fit, which = 5)
# Sample partial autocorelation of residuals
plot(fit, which = 6)
Run the code above in your browser using DataLab