gicc | R Documentation |
gicc
facilitates the identification
of between-subject variables
versus balanced within-subject variables with
hierarchical data. Methods
handle factors, character variables and
numerical variables. For categorical
variables, Goodman-Kruskal's tau is returned and
for numerical variables,
the simple ICC with (variance between) / (variance between + variance
within) applied to the rank (by default) of the variable. In either case, a
value of 1 signifies a variable that is constant within clusters and a value
of 0, a variable that is perfectly balanced within clusters, in the sense
that within-cluster means are identical.
gicc(x, by, method, ...)
x |
a data frame, factor, character variable or a numerical variable. |
by |
if |
method |
a character string indicating whether to work with the rank of
the raw variable, |
... |
– not used |
a measure of relative variability within clusters so that 1 represents no variability and 0 perfect balance.
see p. 25 of Agresti (1990) Categorical Data Analysis, Wiley.
gicc( hs, ~ school)
gicc( hs, ~ school, method = 'raw')
gicc( hs, ~ school/sex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.