Skip to contents

Skew Normal Residuals

Usage

res_skewnorm(
  x,
  location = 0,
  scale = 1,
  shape = 0,
  type = "dev",
  simulate = FALSE,
  ...,
  mean,
  sd
)

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 numeric vector of shape. Negative values result in leftward skew, while positive values result in rightward skew.

type

A string of the residual type. 'raw' for raw residuals 'dev' for deviance residuals and 'data' for the data.

simulate

A flag specifying whether to simulate residuals.

...

Unused.

mean

[Deprecated] A numeric vector of the location parameter. Described as "a numeric vector of the means" prior to to v. 0.10.1. Will be removed in a future version.

sd

[Deprecated] A non-negative numeric vector of the scale parameter. Described as "a non-negative numeric vector of the standard deviations" prior to v. 0.10.1. Will be removed in a future version.

Value

An numeric vector of the corresponding residuals.

Examples

res_skewnorm(c(-2:2))
#> [1] -2 -1  0  1  2