| as_measure | R Documentation |
Metrics are functions that tell how much information would be
lost for a given reduction in the data. reduce. as_measure() is a
helper function to create new metrics to be used in partitioners.
partitioners can be created with as_partitioner().
as_measure(.f, ...)
.f |
a function that returns either a numeric vector or a |
... |
Extra arguments passed to |
a function to use in as_partitioner()
Other metrics:
measure_icc(),
measure_min_icc(),
measure_min_r2(),
measure_std_mutualinfo(),
measure_variance_explained()
Other metrics:
measure_icc(),
measure_min_icc(),
measure_min_r2(),
measure_std_mutualinfo(),
measure_variance_explained()
inter_item_reliability <- function(mat) {
corrs <- corr(mat)
corrs[lower.tri(corrs, diag = TRUE)] <- NA
corrs %>%
colMeans(na.rm = TRUE) %>%
mean(na.rm = TRUE)
}
measure_iir <- as_measure(inter_item_reliability)
measure_iir
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.