Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cutBySD

Returns center values of x, the mean, mean-std.dev, mean+std.dev


Description

If the numeric variable has fewer than 6 unique observed values, this will send the data to cutByTable.

Usage

cutBySD(x, n = 3)

Arguments

x

A numeric variable

n

Should be an odd number 1, 3, 5, or 7. If 2 < n < 5, values that divide the data at c(m-sd, m, m+sd) are returned. If n > 4, the returned values are c(m-2sd, m-sd, m, m+sd, m+2sd).

Value

A named vector

Author(s)

Paul E. Johnson <pauljohn@ku.edu>

Examples

x <- rnorm(100, m = 100, s = 20)
cutBySD (x, n = 3)
cutBySD (x, n = 5)

rockchalk

Regression Estimation and Presentation

v1.8.144
GPL (>= 3.0)
Authors
Paul E. Johnson [aut, cre], Gabor Grothendieck [ctb]
Initial release
2019-03-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.