lf_grad_posterior_density: Gradient of posterior density

View source: R/lf_grad_posterior_density.R

lf_grad_posterior_densityR Documentation

Gradient of posterior density

Description

This calculates the analytic gradient of the posterior density function.

Usage

lf_grad_posterior_density(THETAi, Yi, MUi, invS, TAU, LAMBDA, J, K)

Arguments

THETAi

Size K vector of scaled scores for the i-th individual.

Yi

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

MUi

Size K vector of prior's mean conditional on MONTHS.

invS

Size K-by-K matrix of prior's inverse of var/cov matrix.

TAU

Size J vector of item intercepts.

LAMBDA

Size J-by-K matrix of item loadings.

J

Number of items.

K

Number of latent dimensions.


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