kipp_quartile | R Documentation |
kipp_quartile
returns an integer or factor vector quartiles.
kipp_quartile(x, return_factor = TRUE, proper_quartile = FALSE)
x |
vector of percentiles to be converted to quartiels |
return_factor |
default is |
proper_quartile |
defaul is |
This function calculates the KIPP Foundation's (kinda fucked up) quartile (i.e., the foundation
breaks with stanard mathematical pracitce and puts the 50th percenile
in the 3rd rather than the 2nd quartile). It takes a vector of percentiles and translates
those into quartiles, where the 25th, 50th, and 75th percentils are shifted up
into the 2nd, 3rd, and 4th quartiles, respectively. You can revert to a traditional
quartile calculation by setting the proper.quartile
argument to TRUE
.
a vector of length(x)
.
x <- sample(x=1:99, 100,replace = TRUE)
kipp_quartile(x)
kipp_quartile(x, proper_quartile=TRUE)
kipp_quartile(x, proper_quartile=TRUE, return_factor=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.