View source: R/average_fre_p.R
average_fre_p | R Documentation |
The 'average_fre_p()' function uses 'average_fre()' to calculate the average frequency for a data set and 'shuffle()' to calculate average frequency for shuffles (permutations) of the same data set.
average_fre_p(data, variable, group = NULL, decimal_place = 1, reps = 1000)
data |
A data frame |
variable |
A numeric variable that includes the first decimal place. |
group |
A second variable used to group the primary variable such that average frequency Z-scores are calculated separately for each group. |
decimal_place |
The number of decimal places used for the calculation. The default is set to "1" meaning decimals in the second (hundreds place) and below are discarded. |
reps |
The number of shuffles (simulations) to perform. The default is set to 1,000. |
A tibble
average_fre_p(bodyweight, obs, group, reps = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.