| apply_normalisation | R Documentation |
Normalise data based on pool mean
apply_normalisation( raw_data = NULL, pool_var = NULL, dv = NULL, verbose = FALSE )
raw_data |
|
pool_var |
string specifying the pool variable name (e.g. 'country') |
dv |
string specifying the dependent variable name |
verbose |
A boolean to specify whether to print warnings |
Normalise data by dividing all values in each pool by that pool's mean
list containing a tibble of normalised data and a tibble of pool means
pooled_data = read_xcsv( verbose = FALSE, file = "https://raw.githubusercontent.com/paladinic/data/main/pooled%20data.csv") norm_data = apply_normalisation( raw_data = pooled_data, pool_var = 'country', dv = 'amazon')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.