group_adj: Group Level Adjustment That Accounts for Propensity to Guess

Description Usage Arguments Value Examples

View source: R/group_adj.R

Description

Adjusts observed 1s based on propensity to guess (based on observed 0s) and item level γ. You can also put in your best estimate of hidden knowledge behind don't know responses.

Usage

1
group_adj(pre = NULL, pst = NULL, gamma = NULL, dk = 0.03)

Arguments

pre

pre data frame. Required. Each vector within the data frame should only take values 0, 1, and 'd'.

pst

pst data frame. Required. Each vector within the data frame should only take values 0, 1, and 'd'.

gamma

probability of getting the right answer without knowledge

dk

Numeric. Between 0 and 1. Hidden knowledge behind don't know responses. Default is .03.

Value

nested list of pre and post adjusted responses, and adjusted learning estimates

Examples

1
2
3
4
pre_test_var <- data.frame(pre = c(1,0,0,1,"d","d",0,1,NA))
pst_test_var <- data.frame(pst = c(1,NA,1,"d",1,0,1,1,"d"))
gamma <- c(.25)
group_adj(pre_test_var, pst_test_var, gamma)

soodoku/guess documentation built on Dec. 31, 2021, 5:19 p.m.