b_index: Calculate B-index

Description Usage Arguments Value Examples

Description

Calculate B-index

Usage

1
b_index(data, items, cut_score, scale = "raw")

Arguments

data

A data frame of dichotomously scored test times

items

Raw column indices representing the test items

cut_score

A raw or percentage cut-score

scale

A character vector indicating whether the cut-score is 'raw' (default) or 'percent'

Value

Bindex B-index values for items on the test

Examples

1
b_index(bh_depend, 2:31, 21, scale = 'raw')

Example output

# A tibble: 30 x 2
   items b_index
   <chr>   <dbl>
 1 L_1    0.167 
 2 L_2    0.0667
 3 L_3    0.333 
 4 L_4    0.433 
 5 L_5    0.533 
 6 L_6    0.767 
 7 L_7    0.533 
 8 L_8    0.433 
 9 L_9    0.267 
10 L_10   0.40  
# … with 20 more rows
Warning message:
`funs()` is deprecated as of dplyr 0.8.0.
Please use a list of either functions or lambdas: 

  # Simple named list: 
  list(mean = mean, median = median)

  # Auto named with `tibble::lst()`: 
  tibble::lst(mean, median)

  # Using lambdas
  list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated. 

rcrtan documentation built on May 2, 2019, 2:10 a.m.