setNAEPScoreCard: set NAEP Score Card

View source: R/mml.scoreNAEP.R

setNAEPScoreCardR Documentation

set NAEP Score Card

Description

add item response theory data necessary to use mml.sdf on NAEP data

Usage

setNAEPScoreCard(data, dctPath = NULL)

Arguments

data

a NAEP edsurvey.data.frame

dctPath

a file location that points to the location of a NAEP .dct file (usually in the AM folder). A .dct file can be used to input custom item response theory (IRT) parameters and subscale/subtest weights for NAEP assessments compared with those provided in the NAEPirtparams package.

Value

a NAEP edsurvey.data.frame with updated attributes

Examples

## Not run: 
datFP <- "~/NAEP_Folder/Data/M50NT3AT.dat"
sdf <- readNAEP(path=datFP)

#how to set NAEP mml attributes
#if readNAEP does not detect them automatically
dctFP <- "~/NAEP_Folder/AM/M50NT3AT.dct"
sdf <- setNAEPScoreCard(data=sdf, dctPath=dctFP)

## End(Not run)

EdSurvey documentation built on June 27, 2024, 5:10 p.m.