prepwide: Prepares data in a wide format for [mcem].

View source: R/Utility.R

prepwideR Documentation

Prepares data in a wide format for [mcem].

Description

This function will return a list with 5 elements: Y: a matrix of words read correctly, where rows represent cases (student and occasion) and columns represent passages logt10: a [tibble::tibble()] of words read correctly N: the number of cases per passage I: the number of passages

Usage

prepwide(data, studentid, passageid, numwords.p, wrc, time)

Arguments

data

A data frame.

studentid

The column name in the data that represents the unique student identifier.

passageid

The column name in the data that represents the unique passage identifier.

numwords.p

The column name in the data that represents the number of words in a passage.

wrc

The column name in the data that represents the words read correctly for each case.

time

The column name in the data that represents the time, in seconds, for each case.

Examples

data("passage")

prepwide(passage,
 studentid = "id.student",
 passageid = "id.passage",
 numwords.p = "numwords.pass",
 wrc = "wrc",
 time = "sec")


kamataak/orfr documentation built on Nov. 19, 2022, 9:03 p.m.