sf_posterior_density: Posterior density for short form CREDI scale.

Description Usage Arguments Examples

View source: R/sf_posterior_density.R

Description

This calculates the posterior density function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 represeting 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.

Examples

1
sf_posterior_density(THETAi, Yi, MUi, SIGMA_SQi, DELTA, ALPHA,J)

jmseiden/jms_credi documentation built on April 4, 2021, 1:38 p.m.