Learn R Programming

pleLMA (version 0.2.2)

Pseudo-Likelihood Estimation of Log-Multiplicative Association Models

Description

Log-multiplicative association models (LMA) are models for cross-classifications of categorical variables where interactions are represented by products of category scale values and an association parameter. Maximum likelihood estimation (MLE) fails for moderate to large numbers of categorical variables. The 'pleLMA' package overcomes this limitation of MLE by using pseudo-likelihood estimation to fit the models to small or large cross-classifications dichotomous or multi-category variables. Originally proposed by Besag (1974, ), pseudo-likelihood estimation takes large complex models and breaks it down into smaller ones. Rather than maximizing the likelihood of the joint distribution of all the variables, a pseudo-likelihood function, which is the product likelihoods from conditional distributions, is maximized. LMA models can be derived from a number of different frameworks including (but not limited to) graphical models and uni-dimensional and multi-dimensional item response theory models. More details about the models and estimation can be found in the vignette.

Copy Link

Version

Install

install.packages('pleLMA')

Monthly Downloads

209

Version

0.2.2

License

GPL (>= 3)

Maintainer

Carolyn Anderson

Last Published

July 24th, 2025

Functions in pleLMA (0.2.2)

fit.independence

Fits the log-linear model of independence
iterationPlot

Plots estimated parameters by iteration for the gpcm and nominal models
fit.gpcm

Fits LMA model where category scale values equal a_im * x_j
fitStackGPCM

Up-dates association parameters of the GPCM by fitting model to stacked data
lma.summary

Produces a summary of results
error.check

Checks for basic errors in input to the 'ple.lma' function
theta.estimates

Computes estimates of theta (values on latent trait(s)) for all LMA models
ple.lma

Main function for estimating parameters of LMA models
reScaleItem

Re-scales the category scale values and Phi after convergence of the nominal model
scalingPlot

Graphs estimated scale values by integers of the LMA (nominal) model
set.up

Sets up the data based on input data and model specifications
vocab

Dataframe of response to vocabulary items from the 2018 General Social Survey
ItemLoop

loops through items and up-dates estimates of scale values for each item in Nominal Model
StackData

Prepares data for up-dating association parameters of a multidimensional nominal LMA
ScaleGPCM

Imposes scaling constraint to identify parameters of LMA (GPCM)
StackDataGPCM

Prepares data for up-dating association parameters of LMA (GPCM) model
convergenceGPCM

Computes statistics to assess convergence for generalized partial credit models
ItemData

Prepares data for up-dating scale value parameters of nominal model
ItemGPCM.data

Creates data frame up-dating phi parameters of the gpcm.
Scale

Imposes scaling constraint to identify parameters of the LMA (nominal) model
convergence.stats

Computes statistics to assess convergence of the nominal model
FitStack

Up-dates association parameters of the nominal model
item.gpcm

Estimates item parameters of LMA with linear restrictions on category scores
dass

Dateframe of responses to items from depression, anxiety, and stress scales
fit.nominal

Fits the nominal model
fit.rasch

Fits an LMA using fixed category scores