repsd_pval {repsd}R Documentation

Calculating p-values for repsd

Description

Calculating p-values for repsd

Usage

repsd_pval(
  alpha = 0.05,
  null_dist = null_repsd(),
  items_repsd = repsd()$repsd_each_item,
  responses = timmsData,
  focalColumn = 21,
  verbose = TRUE
)

Arguments

alpha

numeric. The alpha level to calculate significance.

null_dist

A data.frame-type object with the null distribution simulation for each item as columns.

items_repsd

A numeric vector of the repsd values for each item.

responses

The data.frame of item responses and the focal column.

focalColumn

The column number for the focal column. Removed from the final data.

verbose

Logical. Do you want to print the results to console (TRUE, default) or return the results invisibly (FALSE)?

Details

Calculates the p-values for repsd for the data set. It can be used as a wrapper function by providing the null_repsd() function and the repsd_each_item output of the repsd() function (each with proper arguments) as the arguments to null_dist and items_repsd, respectively.

Value

If the colorDF package is installed and accessible, a colorDF with the significant items highlighted. Otherwise, a data.frame. Both have columns with the items names, the repsd value, the p.value, and the sig (0 = false, 1 = true) for each item.


[Package repsd version 1.0.1 Index]