Item Parameters (Internals)
Psychometrics.add_prior! — Methodadd_prior!(
parameters::AbstractParameters,
prior::Distributions.MultivariateDistribution,
)Description
It assigns the prior prior to a AbstractParameters instance.
Arguments
parameters::AbstractParameters: Required. Any type of parameters object.prior::Distributions.Distribution: Required. A <n>-variate probability distribution where <n> > 1 and is the numebr of item parameters inparameters.
Examples
parameters2PL = Parameters2PL()
bivariate_normal = Distributions.MultivariateNormal([0,0], LinearAlgebra.I(2))
_add_prior!(parameters2PL, bivariate_normal)Psychometrics.add_prior! — Methodadd_prior!(
parameters::AbstractParameters,
priors::Vector{Distributions.UnivariateDistribution},
)Description
It transforms the vector priors of univariate distributions to their products and assign it to AbstractParameters instance.
Arguments
parameters::AbstractParameters: Required. Any type of parameters object.priors::Vector{Distributions.UnivariateDistribution}: Required. A vector of probability distributions. The size of the vector must be the same as the number of item parameters.
Examples
parameters2PL = Parameters2PL()
a_dist = Distributions.Normal(0,1)
b_dist = Distributions.Normal(0,1)
_add_prior!(parameters2PL, [a_dist, b_dist])Psychometrics._add_posterior! — Method_add_posterior!(
parameters::AbstractParameters,
posterior::Distributions.Distribution,
)Description
It assigns the <n>-variate posterior distribution to a AbstractParameters instance with <n> parameters.
Arguments
parameters::AbstractParameters: Required. Any type of parameters object.posterior::Distributions.Distribution: Required. A <n>-variate probability distribution where <n> > 1 and is the numebr of item parameters inparameters.
Examples
parameters2PL = Parameters2PL()
bivariate_normal = Distributions.MultivariateNormal([0,0], LinearAlgebra.I(2))
_add_posterior!(parameters2PL, bivariate_normal)Psychometrics._add_posterior! — Method_add_posterior!(
parameters::AbstractParameters,
posteriors::Vector{Distributions.UnivariateDistribution},
)Description
It transforms the vector posteriors of univariate distributions to their products and assign it to AbstractParameters instance.
Arguments
parameters::AbstractParameters: Required. Any type of parameters object.posteriors::Vector{Distributions.UnivariateDistribution}: Required. A vector of probability distributions. The size of the vector must be the same as the number ofparameters.
Examples
parameters2PL = Parameters2PL()
a_dist = Distributions.Normal(0,1)
b_dist = Distributions.Normal(0,1)
_add_posterior!(parameters2PL, [a_dist, b_dist])Psychometrics._empty_chain! — Method_empty_chain!(parameters::Parameters1PL)Psychometrics._empty_chain! — Method_empty_chain!(parameters::Parameters2PL)Psychometrics._empty_chain! — Method_empty_chain!(parameters::Parameters3PL)Psychometrics._chain_append! — Method_chain_append!(parameters::Union{Parameters2PL,Parameters3PL}; sampling = false)Psychometrics._set_val! — Method_set_val!(parameters::Parameters2PL, vals::Vector{Float64})Psychometrics._set_val_from_chain! — Method_set_val_from_chain!(parameters::Parameters2PL)Psychometrics._update_estimate! — Method_update_estimate!(parameters::Parameters2PL; sampling = true)