Description Usage Arguments Value Examples
The function used the definition: gvar = tvar - wgvar
1 | variability_components(vec, grp, fun)
|
vec |
[1,M] numeric, Data vector |
grp |
[1,M] integer/character vector, Some grouping of vec |
fun |
function, Function to use when quantifying the variability |
A list with elements:
tvar: |
Total variability |
bgvar: |
Between groups variability, tvar - sum(wgvar_*) |
wgvar_<groupname>: |
Within group variability for each group |
wg_rel: |
sum(wgvar)/tvar |
bg_rel: |
bgvar/tvar |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.