ItemGPCM.data: Creates data frame up-dating phi parameters of the gpcm.

Description Usage Arguments Value

View source: R/ItemGPCM_data.R

Description

This function creates a data frame, 'gpcm.item.data', to be used in the item regressions of LMA models where category scales values are fixed. Sets up data for up-dating alpha parameters of the LMA that corresponds to the GPCM. This function is internal to 'item.gpcm' and it is unlikely to be run outside of 'fit.gpcm' or 'ple.lma'.

Usage

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

Arguments

Master

Data frame of all data in long format

ItemID

Specifies the item for which a data frame is created to be input into an item regression

Phi.mat

Starting value of matrix of association parameters

TraitByTrait

Trait by trait adjacency matrix (same as inTraitAdj)

pq.mat

Array used to compute rest scores

starting.sv

Matrix of item category scores that are fixed

npersons

Number of persons

nitems

Number of items

ncat

Number of categories

nless

Number of unique lambdas (ncat-1)

ntraits

Number of latent traits

LambdaName

Names for lambda for item regression

Value

gpcm.item.data Data frame for item to be used up-dated in an item regression for specified item


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