Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kousu/statasvm
SVM in Stata
https://github.com/kousu/statasvm
Last synced: 16 days ago
JSON representation
SVM in Stata
- Host: GitHub
- URL: https://github.com/kousu/statasvm
- Owner: kousu
- License: other
- Created: 2015-05-07T21:17:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-08-13T06:51:30.000Z (over 5 years ago)
- Last Synced: 2024-11-24T05:42:01.727Z (about 2 months ago)
- Language: Stata
- Size: 3.17 MB
- Stars: 16
- Watchers: 7
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
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`