FakePCMData: Fake Data

Description Usage Format Source References Examples

Description

Simulated scored data for 10 items and 1200 participants, where items where presented in random order to each participant. Contains responses for dichotomous (X), and polychotomous (K) data. Item delivery order is stored in the Index column Data were simulated according to suggestions in Linacre (2007). Data are stored in long format.

Usage

1
data("FakePCMData")

Format

An object of class "cross"; see read.cross.

Source

Rasch Measurement Transactions

References

Linacre. (2013) Rasch Measurement Transactions 21:3 p. 1125 (Rasch Measurement Transactions)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Show fake data
data("FakePCMData")

library(tidyverse)
# Count of item responses by item and polychotomous category
count_item_by_reponse_K <- FakePCMData %>% 
                             pivot_longer(cols = -ID, 
                                          names_to = "Item",
                                          values_to = "Response") %>% 
                             group_by(Item, Response) %>% 
                             summarise(Count = n())

SBGalvin/psketti documentation built on March 13, 2021, 1:47 p.m.