Skew Normal Deviances
dev_skewnorm(x, mean = 0, sd = 1, shape = 0, res = FALSE)
A numeric vector of values.
A numeric vector of the means.
A non-negative numeric vector of the standard deviations.
A numeric vector of shape.
A flag specifying whether to return the deviance residual as opposed to the deviance.
An numeric vector of the corresponding deviances or deviance residuals.
Other dev_dist:
dev_bern()
,
dev_beta_binom()
,
dev_binom()
,
dev_gamma_pois()
,
dev_gamma()
,
dev_lnorm()
,
dev_neg_binom()
,
dev_norm()
,
dev_pois_zi()
,
dev_pois()
,
dev_student()
dev_skewnorm(c(-2:2))
#> [1] 4 1 0 1 4
dev_skewnorm(-2:2, 0, 1, 5)
#> [1] 110.2602054 30.9276319 1.1839294 0.7976357 3.7976351
dev_skewnorm(-2:2, 0, 1, 5, res = TRUE)
#> [1] -10.5004860 -5.5612617 -1.0880852 0.8931045 1.9487522