performanceBins: Performance Bins

Description Usage Arguments Value Examples

Description

Summarise a variables by groups and bin the observations

Usage

1
performanceBins(data, bin_by, cutpoints = c(0, 0.25, 0.5, 0.75, 1), ...)

Arguments

data

data frame to work with

bin_by

Character vector defining the variables to group the data by

cutpoints

numeric vector of value to bin the measured variable at. Values not within the range of this vector will be grouped into the NA category. By default, data is binned into quartiles.

...

Name-value pairs of summary functions like mean(), sd() etc.

Value

An ungrouped table df summmarising the observed count and frequency in each bin

Examples

1
2
3
4
filter(LB4L_allSs, list==1) %>%
performanceBins(bin_by = "subject",
                cutpoints=c(0,.25, .75,1),
                acc=mean(final_score))

wjhopper/FAM documentation built on May 4, 2019, 7:33 a.m.