resubstitution: Resubstitution

Description Usage Arguments Value Examples

View source: R/resubstitution_method.R

Description

Resubstitution

Usage

1
2
resubstitution(responseData, modelTypes, indicator = TRUE, ...,
  type = "person")

Arguments

responseData

The initial, full sample data as a matrix of item responses.

modelTypes

A character vector specifying the model types to be compared. Uses the 'TAM' package format, so must be one of the following: "1PL", "2PL", "PCM", "PCM2", "RSM", "GPCM", and "2PL.groups".

indicator

A logical value that controls the progress printing.

...

Further arguments to be passed to the 'tam' function.

type

A character vector specifying whether the validation treats the "person" or the "item" as the unit of observation. Default is "person".

Value

An object of class "cvIRT" with the following values:

data

The data used in the function.

testLik

A matrix of the loglikelihood values estimated on the responseData for each model.

nModelParams

A matrix of the number model parameters estimated on the data.

AIC

A matrix of the AIC value for each of the modelTypes.

AICc

A matrix of the AICc value for each of the modelTypes.

BIC

A matrix of the BIC value for each of the modelTypes.

-2 log-Likelihood Ratio Test

A list of the log-likelihood ratio test statistics, degrees of freedom, and p-values for each model comparison. If only one model is used, returns 'NULL'.

warnings

A character vector of any warnings incurred while the method runs.

time

A vector of the start and end times of the function.

Examples

1
#None.

AnthonyRaborn/cvIRT documentation built on Jan. 9, 2020, 3:26 a.m.