Skip to contents

Coerce objects to a measrfit

Usage

as_measrfit(x, class = character())

# Default S3 method
as_measrfit(x, class = character())

Arguments

x

An object to be coerced to a measrfit.

class

Additional classes to be added (e.g., measrdcm for a diagnostic classification model).

Value

An object of class measrfit.

Examples

rstn_mdm_lcdm <- measr_dcm(
  data = mdm_data, missing = NA, qmatrix = mdm_qmatrix,
  resp_id = "respondent", item_id = "item", type = "lcdm",
  method = "optim", seed = 63277, backend = "rstan"
)

new_obj <- as_measrfit(rstn_mdm_lcdm, class = "measrdcm")