nobs: S3 Methods: nobs

nobsR Documentation

S3 Methods: nobs

Description

Extracts the number of observations (persons) from a fitted ForceChoice model object. Returns the number of rows in the response matrix used for model fitting.

Usage

## S3 method for class 'MIRT'
nobs(object, ...)

## S3 method for class 'MGPCM'
nobs(object, ...)

## S3 method for class 'MGGUM'
nobs(object, ...)

## S3 method for class 'FCMIRT'
nobs(object, ...)

## S3 method for class 'FCDCM'
nobs(object, ...)

## S3 method for class 'FCGDINA'
nobs(object, ...)

## S3 method for class 'FCGGUM'
nobs(object, ...)

## S3 method for class 'TIRT'
nobs(object, ...)

Arguments

object

A fitted model object.

...

Additional arguments (currently ignored).

Value

An integer: the sample size N.

Methods (by class)

  • nobs(MIRT): Number of observations (persons) for MIRT objects.

  • nobs(MGPCM): Number of observations for MGPCM objects.

  • nobs(MGGUM): Number of observations for MGGUM objects.

  • nobs(FCMIRT): Number of observations for FCMIRT objects.

  • nobs(FCDCM): Number of observations for FCDCM objects.

  • nobs(FCGDINA): Number of observations for FCGDINA objects.

  • nobs(FCGGUM): Number of observations for FCGGUM objects.

  • nobs(TIRT): Number of observations for TIRT objects.


ForceChoice documentation built on Sept. 13, 2026, 1:06 a.m.