Learn R Programming

dcmstan (version 0.1.0)

create_profiles: Generate mastery profiles

Description

Given the number of attributes or model specification, generate all possible attribute patterns.

Usage

create_profiles(x, ...)

Value

A tibble with all possible attribute patterns. Each row is a profile, and each column indicates whether the attribute in that column was present (1) or not (0).

Arguments

x

An object used to generate the possible patterns. This could be a number (the number of attributes; e.g., 3, 4), or an object that defines attribute relationships (e.g., a structural model or model specification).

...

Additional arguments passed to methods. See details.

Details

Additional arguments passed to methods:

keep_names: When x is a model specification, should the real attribute names be used (TRUE; the default), or replaced with generic names (FALSE; e.g., "att1", "att2", "att3").

attributes: When x is a structural model, a vector of attribute names, as in the qmatrix_meta$attribute_names of a DCM specification.

Examples

Run this code
create_profiles(3L)

create_profiles(5)

create_profiles(unconstrained(), attributes = c("att1", "att2"))

create_profiles(hdcm("att1 -> att2 -> att3"),
                attributes = c("att1", "att2", "att3"))

Run the code above in your browser using DataLab