item: Distractor analysis

View source: R/item.h.R

itemR Documentation

Distractor analysis

Description

Distractor analysis

Usage

item(
  data,
  vars,
  key = "D,C,A,D,D,A,D,B,D,A,A,D,C,C,B,C,D,A,A,B",
  num = 1,
  num1 = 1,
  group = 3,
  group1 = 3,
  count = TRUE,
  prop = FALSE,
  sum = FALSE,
  disc = FALSE,
  sum1 = FALSE,
  plot = FALSE,
  angle = 90,
  plot1 = FALSE,
  disi,
  plot2 = FALSE,
  plot3 = FALSE,
  width2 = 500,
  height2 = 500,
  width = 500,
  height = 500,
  width1 = 500,
  height1 = 500,
  width3 = 500,
  height3 = 500
)

Arguments

data

The data as a data frame.

vars

.

key

.

num

.

num1

.

group

.

group1

.

count

.

prop

.

sum

.

disc

.

sum1

.

plot

.

angle

.

plot1

.

disi

.

plot2

.

plot3

.

width2

.

height2

.

width

.

height

.

width1

.

height1

.

width3

.

height3

.

Value

A results object containing:

results$instructions a html
results$text a preformatted
results$count an array of tables
results$prop an array of tables
results$sum an array of tables
results$disc a table
results$sum1 an array of tables
results$plot2 an image
results$plot an image
results$plot1 an image
results$total an output
results$scoring an output
results$plot3 an image

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$disc$asDF

as.data.frame(results$disc)


hyunsooseol/snowIRT documentation built on March 20, 2024, 8 p.m.