Learn R Programming

ShortForm (version 0.5.6)

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

213

Version

0.5.6

License

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

Issues

Pull Requests

Stars

Forks

Maintainer

Anthony Raborn

Last Published

November 27th, 2024

Functions in ShortForm (0.5.6)

plot,TS,ANY-method

Plot method for class `TS`
exampleAntModel

Model syntax for the example in the antcolony.lavaan function.
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).
tabuShortForm

Short Form Tabu Search
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.
summary,ACO-method

Summary method for class `ACO`
simulated_test_data

A simulated data set based on a standardized test.
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.
shortExampleAntModel

Model syntax for the short example in the antcolony.lavaan function.
show,ACO-method

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

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

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

Summary method for class `SA`
SA-class

An S4 class for the Simulated Annealing Algorithm
.onAttach

Package Attach Hook Function
ShortFormStartup

Create Package Startup Message
TS-class

An S4 class for the Tabu Search Algorithm
antcolony.mplus

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
ShortForm

ShortForm package
ACO-class

An S4 class for the Ant Colony Optimization Algorithm
antcolony.lavaan

A function to implement the ant colony optimization algorithm for short form specification searches with the package lavaan.
modelCheck-class

An S4 class for the modelCheck object
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.
plot,ACO,ANY-method

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

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

Print method for class `TS`
simulatedAnnealing

An adaptation of the simulated annealing algorithm for psychometric models.