# statasvm **Repository Path**: arlionn/statasvm ## Basic Information - **Project Name**: statasvm - **Description**: SVM in Stata - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 3 - **Created**: 2020-02-25 - **Last Updated**: 2024-06-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Stata-SVM ========= This is a [Stata plugin](http://www.stata.com/plugins) wrapping [libsvm](http://www.csie.ntu.edu.tw/~cjlin/libsvm/) to offer Support Vector Machine based algorithms, both regression and classification, to Stata users. If you use this in a project, please cite it as: > Guenther, Nick, and Matthias Schonlau. "Support vector machines." Stata Journal 16, no. 4 (December 23, 2016): 917-37. http://www.stata-journal.com/article.html?article=st0461. Originally written by [Nick Guenther](http://github.com/kousu) and [Professor Matthias Schonlau](http://www.schonlau.net). Installation ------------ In Stata: ``` . ssc install svmachines ``` will install the most recent version of this wrapper. As it is only a wrapper, so you need to install [libsvm](http://www.csie.ntu.edu.tw/~cjlin/libsvm/) too: ### Windows On Windows, libsvm is bundled with this package so installation requires no further steps. ### OS X * `brew install libsvm` _OR_ * `port install libsvm` ### Unix * Debian-derivatives: `apt-get install libsvm3` * Arch: libsvm is [in the AUR](https://aur.archlinux.org/packages/libsvm/) * Redhat/Fedora: `yum install libsvm` (**UNTESTED**) * You can manually [download](http://www.csie.ntu.edu.tw/~cjlin/cgi-bin/libsvm.cgi?+http://www.csie.ntu.edu.tw/~cjlin/libsvm+tar.gz) and follow the [build instructions](https://github.com/cjlin1/libsvm). Alternate Installation ---------------------- If the published [SSC](https://www.stata.com/support/ssc-installation/) [copy](fmwww.bc.edu/repec/bocode/s/svmachines.pkg) is not working, try the original [Stata Journal](https://www.stata-journal.com/) [copy](https://www.stata-journal.com/software/sj16-4/st0461.pkg) ``` . net uninstall svmachines . net sj 16-4 . net install st0461 ``` If that still isn't working for you, you can also install directly out of this repository: download [svmachines.zip](svmachines.zip), unzip it somewhere, such as `/tmp/stata_install/` and make sure that creates `/tmp/stata_install/svmachines.pkg` as well as the folder `/tmp/stata_install/svmachines/`. Then, in Stata, run ``` . net uninstall svmachines . net uninstall st0461 . net use /tmp/stata_install . net install svmachines ``` If that still isn't working please contact us via email or Github Issues. Usage ----- See `help svmachines`