View source: R/predrisk_grp_prcnt.R
predrisk_grp_prcnt | R Documentation |
predrisk_grp_prcnt()
is a simple wrapper for cut
that is meant to be used
to create an input value for scalib_gnd_manual()
(specifically, the
group
input argument).
predrisk_grp_prcnt(x, g, na.rm = FALSE, type = 7)
x |
(numeric vector) a numeric vector which will be converted to a vector of integers by cutting. |
g |
(numeric value) the desired number of percentile groups. For
example, |
na.rm |
(logical value) if |
type |
(integer value between 1 and 9) see quantile for details. |
a numeric vector with integer values.
set.seed(32987) predrisk_grp_prcnt(sort(runif(100)), g = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.