## Data set: raycatch (for description, run ?raycatch)
hist(raycatch$cpue, xlab = "Catch per unit effort")
plot(cpue ~ tide_phase, raycatch, pch = 16,
xlab = "Tide phase", ylab = "Catch per unit effort")
plot(cpue ~ location, raycatch, pch = 16,
xlab = "Location", ylab = "Catch per unit effort")
plot(cpue ~ max_temp, raycatch, pch = 16,
xlab = "Maximum temperature", ylab = "Catch per unit effort")
## Fit a double Box-Cox normal regression model:
fit <- BCSreg(cpue ~ location + tide_phase |
location + tide_phase + max_temp, raycatch)
## Available plots:
### Residuals vs fitted values (fitted medians)
plot(fit, which = 1)
### Residuals vs observation indices
plot(fit, which = 2)
### Density plot
plot(fit, which = 3)
### Normal probability plot
plot(fit, which = 4)
### Local influence
plot(fit, which = 5)
### Fitted medians vs response
plot(fit, which = 6)
### v(z) function
plot(fit, which = 7)
Run the code above in your browser using DataLab