Learn R Programming

⚠️There's a newer version (0.5.6) of this package.Take me there.

ShortForm (version 0.5.3)

Automatic Short Form Creation

Description

Performs automatic creation of short forms of scales with an ant colony optimization algorithm and a Tabu search. As implemented in the package, the ant colony algorithm randomly selects items to build a model of a specified length, then updates the probability of item selection according to the fit of the best model within each set of searches. The algorithm continues until the same items are selected by multiple ants a given number of times in a row. On the other hand, the Tabu search changes one parameter at a time to be either free, constrained, or fixed while keeping track of the changes made and putting changes that result in worse fit in a "tabu" list so that the algorithm does not revisit them for some number of searches. See Leite, Huang, & Marcoulides (2008) for an applied example of the ant colony algorithm, and Marcoulides & Falk (2018) for an applied example of the Tabu search.

Copy Link

Version

Install

install.packages('ShortForm')

Monthly Downloads

287

Version

0.5.3

License

LGPL (>= 2.0, < 3) | Mozilla Public License

Issues

Pull Requests

Stars

Forks

Maintainer

Anthony Raborn

Last Published

December 13th, 2023

Functions in ShortForm (0.5.3)

tabu.sem

Given a fitted lavaan model, a search table, and an objective criterion, performs a Tabu model specification search. Currently only supports neighbors that are 1 move away from the current model.
par.matches

A series of internal functions used by the Tabu search. Directly accessing these functions is not advised unless you know what you are doing.
tabuShortForm

Short Form Tabu Search
summary,ACO-method

Summary method for class `ACO`
simulated_test_data

A simulated data set based on a standardized test.
refit.model

Given a fitted lavaan model and a search table, refits the model using the search table as specifying what changes should be done (parameters fixed/freed).
plot,TS,ANY-method

Plot method for class `TS`
show,ACO-method

Print method for class `ACO`
show,TS-method

Print method for class `TS`
show,SA-method

Print method for class `SA`
simulatedAnnealing

An adaptation of the simulated annealing algorithm for psychometric models.
summary,SA-method

Summary method for class `SA`
summary,TS-method

Summary method for class `TS`
add.param

Adds a parameter to the given search table. Checks whether parameter is involved in any (in)equality constraints in a fitted lavaan model
SA-class

An S4 class for the Simulated Annealing Algorithm
TS-class

An S4 class for the Tabu Search Algorithm
antcolony.lavaan

A function to implement the ant colony optimization algorithm for short form specification searches with the package lavaan.
antcolony.mplus

.onAttach

Package Attach Hook Function
ShortForm

ShortForm package
ACO-class

An S4 class for the Ant Colony Optimization Algorithm
exampleAntModel

Model syntax for the example in the antcolony.lavaan function.
ShortFormStartup

Create Package Startup Message
modelCheck-class

An S4 class for the modelCheck object
search.prep

Given a fitted lavaan model (e.g., CFA), prepares a table that contains parameters that can be fixed/freed as part of a model specification search.
plot,SA,ANY-method

Plot method for class `SA`
plot,ACO,ANY-method

Plot method for class `ACO`
shortExampleAntModel

Model syntax for the short example in the antcolony.lavaan function.