Skip to content

Latest commit

 

History

History
69 lines (47 loc) · 2.27 KB

README.md

File metadata and controls

69 lines (47 loc) · 2.27 KB

Stata-SVM

This is a Stata plugin wrapping 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 and Professor Matthias Schonlau.

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 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

Alternate Installation

If the published SSC copy is not working, try the original Stata Journal copy

. 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, 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