theta_bayes: Bayesian inference for theta for one Merkmal

Description Usage Arguments Value

View source: R/compute_results.R

Description

This is a helper function for the Bayesian QI computation function. The function computes the parameters of the Beta posterior for the underlying merkmals parameter theta as well as a credibility interval for theta.

Usage

1
theta_bayes(y, nClass, a, b, conf_level)

Arguments

y

Observed input of all Items of the Merkmal with points

nClass

Number of Item categories (supposed do be the same for each Item)

a

Prior shape parameter of Beta distribution

b

Prior scale parameter of Beta distribution

conf_level

Confidence level of the resulting uncertainty interval.

Value

A list containing the prior and posterior parameters of the Beta distribution, the corresponding posterior mean value for theta and a credibility interval.


iqtigorg/iqtigprm documentation built on Dec. 20, 2021, 7:58 p.m.