Learn R Programming

dcmstan (version 0.1.0)

prior_tibble: Coerce a dcmprior object to a tibble

Description

When specifying prior distributions, it is often useful to see which parameters are included in a given model. Using the Q-matrix and type of diagnostic model to estimated, we can create a list of all included parameters for which a prior can be specified.

Usage

prior_tibble(x, ...)

Value

A tibble showing the specified priors.

Arguments

x

A model specification (e.g., dcm_specify(), measurement model (e.g., lcdm()), or structural model (e.g., unconstrained()) object.

...

Additional arguments passed to methods. See details.

Details

Additional arguments passed to methods:

.keep_all: Logical indicating if all components should be returned. When FALSE (the default), only the @type, @coefficient, and @prior elements of the dcmprior object is return. When TRUE, the @distribtuion, @lower_bound, and @upper_bound are also returned.

Examples

Run this code
prior_tibble(default_dcm_priors(lcdm()))

prior_tibble(default_dcm_priors(dina(), independent()))

Run the code above in your browser using DataLab