Skip to contents

Create

Utility functions for creating deterministic objects quickly.

create_patterns()
Create all possible permutations of the levels passed.
create_qmatrix()
Create Q-Matrix

Generate

Functions that randomly generate base elements for a simulation.

generate_examinees()
Generate sample of examinees
generate_responses()
Generate responses to a test

Build

Functions that randomly generate base elements for a simulation.

build_qmatrix()
Build a Q-Matrix from a a matrix of test parameters
build_response_likelihood()
Create the likelihood matrix for a matrix of probabilities of correct response for non-masters and masters marginal only on that attribute.
build_test_parameters()
Create a matrix of items and their parameters

Get

Functions to extract information from a gdina object.

get_probabilities_by_profile()
Returns a matrix of profiles and the probability of a correct response for all items.
get_test_parameters()
Returns a matrix item-parameters from model

Change

Change objects related to a model (e.g. a Q-matrix)

Utils

Library utils

check_monotonicity()
Check that the monotonicity condition of the gdina model is fullfilled. This is useful for when you don't want to force it, but you want to know if the model was able to achieve it.
check_test_parameters()
Check if the test parameters are compatible with a Q-matrix
fit_lcdm()
Utility function to fits a LCDM model using the CDM package with some convenient defaults.
pretty_print()
Prints a matrix to the console in a prettier format

Data

Data included in the package

data.item_influence
Item Influence for DCM.