Compute the corrected sum of squares

ds_css(x, data = NULL, na.rm = FALSE)

Arguments

x

a numeric vector.

data

a data.frame or tibble.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Examples

ds_css(mtcars$mpg)
#> [1] 1126.047
ds_css(mpg, mtcars)
#> [1] 1126.047