Skew Normal Deviances
Arguments
- x
A numeric vector of values.
- location
A numeric vector of the location parameter.
- scale
A non-negative numeric vector of the scale parameter.
- shape
A non-negative numeric vector of shape.
- res
A flag specifying whether to return the deviance residual as opposed to the deviance.
- ...
Other arguments passed to methods.
- mean
A numeric vector of the means.
- sd
A non-negative numeric vector of the standard deviations.
Examples
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
