fscores {spfa}R Documentation

Computing EAP scores

Description

Computing EAP scores

Usage

fscores(
  data,
  fit,
  dimension = rep(0, ncol(data)),
  discrete = rep(FALSE, ncol(data)),
  normal = TRUE,
  control = list()
)

Arguments

data

data to be scored

fit

the function return from fitting a spfa model.

dimension

a vector of integers containing indicators of the latent factor. The default is rep(0, ncol(data)) indicating all item loads on the same latent factor.

discrete

a vector of TRUE or FALSE indicating whether the item is discrete with TRUE indicating the item is a discrete variable. The length of the vector should be the same as the number of columns of the input data.

normal

a logical value TRUE or FALSE indicating which density is used to rescale y.

control

a list of technical control variables. See spfa.

Value

EAP scores for the fitted spfa model and reliability

Examples

RT <- spfa::simdata[,1:8]
myeaps <- fscores(data = RT, fit = spfa::spfa_example, 
dimension = rep( 0, ncol(RT)), discrete = rep(FALSE, ncol(RT) ))

[Package spfa version 1.0 Index]