sf_posterior_density: Posterior density for short form CREDI scale.

View source: R/sf_posterior_density.R

sf_posterior_densityR Documentation

Posterior density for short form CREDI scale.

Description

This calculates the posterior density function ().

Usage

sf_posterior_density(
  THETAi,
  Yi,
  MUi,
  SIGMA_SQi,
  DELTA,
  ALPHA,
  J,
  weight = NULL
)

Arguments

THETAi

Scalar representing scaled score for the i-th individual.

Yi

Size N vector of item responses for the i-th individual.

MUi

Scalar representing prior's mean conditional on AGE.

SIGMA_SQi

Scalar representing prior variance conditional on AGE.

DELTA

Size J vector of item difficulties.

ALPHA

Size J vector of item discrimination values.

J

Number of items.

weight

Size J vector of weights for Bayesian Bootstrapping.


marcus-waldman/credi documentation built on Nov. 17, 2023, 2:49 p.m.