Skip to contents

Provide posterior plots based on the factorial eigenvalues of a lawbl object. For PEFA or FEFA, only true factors will be plotted.

Usage

plot_lawbl(object, what = "trace", istart = 1, iend = -1)

Arguments

object

A lawbl object

what

A list of options for what to plot.

  • trace: The trace of each factor's eigenvalue.

  • density: The trace of each factor's eigenvalue.

  • EPSR: Estimated Potential Scale Reduction (Gelman-Rubin diagnostics) for each factor.

istart

Starting point of the Markov chain for plotting.

iend

Ending point of the Markov chain for plotting; -1 for the actual final point.

Examples

# \donttest{
dat <- sim18cfa0$dat
J <- ncol(dat)
K <- 3
Q<-matrix(-1,J,K);
Q[1:2,1]<-Q[7:8,2]<-Q[13:14,3]<-1


m0 <- pcfa(dat = dat, Q = Q, LD = FALSE,burn = 1000, iter = 1000)
plot_lawbl(m0) # trace

plot_lawbl(m0, what='density')

plot_lawbl(m0, what='EPSR')

# }