IFA_Mode_Jumper_MixedResponses: Exploratory Factor Analysis of Mixed-Type Responses

Description Usage Arguments Value Author(s) References

View source: R/RcppExports.R

Description

Implement the Man and Culpepper (2020) mode-jumping algorithm to factor analyze mixed-type response data. Missing values should be specified as a non-numeric value such as NA.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
IFA_Mode_Jumper_MixedResponses(
  Y,
  M,
  gamma,
  Ms,
  sdMH,
  bounds,
  burnin,
  chain_length = 10000L
)

Arguments

Y

A N by J matrix of mixed-type item responses.

M

An interger specifying the number of factors.

gamma

The value of the mode-jumping tuning parameter. Man and Culpepper (2020) used gamma = 0.5.

Ms

model indicator where 0 = "bounded", 1 = "continuous", 2 = "binary", >2 = "ordinal".

sdMH

A J vector of tuning parameters for the Cowles (1996) Metropolis-Hastings sampler for ordinal data latent thresholds.

bounds

A J by 2 matrix denoting the min and max variable values. Note that bounds are only used for variable j if element j of Ms is zero.

burnin

Number of burn-in iterations to discard.

chain_length

The total number of iterations (burn-in + post-burn-in).

Value

A list that contains nsamples = chain_length - burnin array draws from the posterior distribution:

Author(s)

Albert X Man, Steven Andrew Culpepper

References

Cowles, M. K. (1996), Accelerating Monte Carlo Markov chain convergence for cumulative link generalized linear models," Statistics and Computing, 6, 101-111.

Man, A. & Culpepper, S. A. (2020). A mode-jumping algorithm for Bayesian factor analysis. Journal of the American Statistical Association, doi:10.1080/01621459.2020.1773833.


bayesefa documentation built on Feb. 10, 2021, 5:10 p.m.