View source: R/module-composites.R
get_percentile | R Documentation |
Function to calculate percentile ranks for summarized data from ONE ACE metric.
get_percentile( df, module, id_var = "pid", var, reverse = FALSE, norm_dist = "self", norm_dist_grade = NULL )
module |
user-specified string to be appended in the output colname |
id_var |
name of subject identifier col in df Note that this function does NOT allow a grouping variable; please only feed data from ONE GROUP AT A TIME into this function. It's better for norming assumptions. |
var |
name of data col in df. specified as a string |
reverse |
should percentile scores be calculated in reverse order
(smaller number = better rank)? Defaults to |
norm_dist |
which data should the percentiles be normed to? one of the following
|
norm_dist_grade |
if specifying an ACE norming distribution, which grade's norms? Grades in T1: "third", "fifth", "seventh". Grades in T3: "fourth", "sixth", "eighth". Specify as ONE OF THESE STRINGS! Will throw error if grade not specified properly |
df containing id_var
, group_var
(if applicable), var
, and percentile rank
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.