ItemData: Prepares data for up-dating scale value parameters of nominal...

Description Usage Arguments Value

View source: R/item_data.R

Description

This function creates a data frame, 'item data', to be used in the item regressions for nominal models. It computes weighted rest scores and totals, including correlated traits. This function is internal to 'ItemLoop' and it is unlikely to be run outside of 'fit.nominal' or 'ple.lma'.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
ItemData(
  Master,
  ItemID,
  Phi.mat = Phi.mat,
  npersons,
  nitems,
  ntraits,
  ncat,
  nless,
  TraitByTrait,
  pq.mat,
  LambdaName,
  NuName
)

Arguments

Master

Master data frame

ItemID

The item for which scale values are being up-dated

Phi.mat

Current estimate conditional covariance matrix (i.e., association paramters)

npersons

Number of persons

nitems

Number of items

ntraits

Number of traits

ncat

Number of categories

nless

Number of unique lambdas and unique nus

TraitByTrait

Same as inTraitAdj

pq.mat

One dimemsinal array used to get rest and totals scores

LambdaName

Name of lambdas for in item regression

NuName

Name of nus in item regression

Value

ItemFit Data frame used to up-date scale values


pleLMA documentation built on Oct. 6, 2021, 1:08 a.m.