Package: ShortForm 0.5.5

ShortForm: Automatic Short Form Creation

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) <doi:10.1080/00273170802285743> for an applied example of the ant colony algorithm, and Marcoulides & Falk (2018) <doi:10.1080/10705511.2017.1409074> for an applied example of the Tabu search.

Authors:Anthony Raborn [aut, cre], Walter Leite [aut]

ShortForm_0.5.5.tar.gz
ShortForm_0.5.5.zip(r-4.5)ShortForm_0.5.5.zip(r-4.4)ShortForm_0.5.5.zip(r-4.3)
ShortForm_0.5.5.tgz(r-4.4-any)ShortForm_0.5.5.tgz(r-4.3-any)
ShortForm_0.5.5.tar.gz(r-4.5-noble)ShortForm_0.5.5.tar.gz(r-4.4-noble)
ShortForm_0.5.5.tgz(r-4.4-emscripten)ShortForm_0.5.5.tgz(r-4.3-emscripten)
ShortForm.pdf |ShortForm.html
ShortForm/json (API)
NEWS

# Install 'ShortForm' in R:
install.packages('ShortForm', repos = c('https://anthonyraborn.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/anthonyraborn/shortform/issues

Datasets:

On CRAN:

ant-colony-optimizationmachine-learning-algorithmsshortformsimulated-annealingtabu-search

4.59 score 10 stars 13 scripts 252 downloads 2 mentions 11 exports 48 dependencies

Last updated 6 months agofrom:427c66bd4c. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 02 2024
R-4.5-winOKNov 02 2024
R-4.5-linuxOKNov 02 2024
R-4.4-winOKNov 02 2024
R-4.4-macOKNov 02 2024
R-4.3-winOKNov 02 2024
R-4.3-macOKNov 02 2024

Exports:add.paramantcolony.lavaanantcolony.mplusplotrefit.modelsearch.prepshowsimulatedAnnealingsummarytabu.semtabuShortForm

Dependencies:clicodetoolscolorspacecpp11doSNOWdplyrfansifarverforeachgenericsggplot2ggrepelgluegtableisobanditeratorslabelinglatticelavaanlifecyclemagrittrMASSMatrixmgcvmnormtmunsellnlmenumDerivpbivnormpillarpkgconfigpurrrquadprogR6RColorBrewerRcpprlangscalessnowstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Package Attach Hook Function.onAttach
An S4 class for the Ant Colony Optimization AlgorithmACO-class
Adds a parameter to the given search table. Checks whether parameter is involved in any (in)equality constraints in a fitted lavaan modeladd.param
A function to implement the ant colony optimization algorithm for short form specification searches with the package lavaan.antcolony.lavaan
A function to implement the ant colony optimization algorithm for short form specification searches, either using MPlus directly via 'system' calls or using Mplus indirectly with the package MplusAutomation.antcolony.mplus
Model syntax for the example in the 'antcolony.lavaan' function.exampleAntModel
An S4 class for the modelCheck objectmodelCheck-class
Plot method for class `ACO`plot,ACO,ANY-method
Plot method for class `SA`plot,SA,ANY-method
Plot method for class `TS`plot,TS,ANY-method
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).refit.model
An S4 class for the Simulated Annealing AlgorithmSA-class
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.search.prep
Model syntax for the short example in the 'antcolony.lavaan' function.shortExampleAntModel
'ShortForm' packageShortForm-package ShortForm
Create Package Startup MessageShortFormStartup
Print method for class `ACO`show,ACO-method
Print method for class `SA`show,SA-method
Print method for class `TS`show,TS-method
A simulated data set based on a standardized test.simulated_test_data
An adaptation of the simulated annealing algorithm for psychometric models.simulatedAnnealing
Summary method for class `ACO`summary,ACO-method
Summary method for class `SA`summary,SA-method
Summary method for class `TS`summary,TS-method
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.tabu.sem
Short Form Tabu SearchtabuShortForm
An S4 class for the Tabu Search AlgorithmTS-class