Jiayang Sun, Jeremy Fleischer, Catherine Loader
Version 3, Code and Help Page
IPP is a program that combines the best features of automatic and manual projection pursuit. The program can be installed as a library for S-Plus, which dynamically loads our C and Fortran algorithms*, for conducting both 1 and 2 dimensional PP; it also provides their (1-d and 2-d) P-values. We have tested the program in Splus5 and Splus6 in Linux and Splus3.4 in sunos and SGI. (I do not have Splus6 in Sunos, Splus5 in Sunos is not compatible with our current code.)
tar zxvf pp.tgzor
gunzip pp.tgz|tar xvfdepending on what version of "tar" application you have. Read install.S6. Basically, for example, in the pp directory (if it is your own directory, type "Splus CHAPTER" to make it into a S-chapter first, and then) type
./install.S6If you do not have cc or f77, edit install.S6 to allow for gcc and g77.
To compile in Sunos (to use with Splus3.4), for example, in the pp directory, type
./install.S3If you do not have f77, change the following lines in install.S3
cc -c ppind.c f77 -c phi.f f77 -c pp2d.fto
gcc -c ppind.c #f77 -c phi.f #f77 -c pp2d.fand save the following compiled binary objective code into your directory: phi.o and pp2d.o and then run the edited installation script install.S3.
Splus library(pp) #use library(pp,lib.loc="whereyouputit") alternatively motif() #no need for this in Splus5 or Splus6 ppa(x) #It runs 1 and 2-d ippi on your data matrix "x" ppa(sun1) #It runs one of our exemplar data called "sun1"
To run ipp in Splus5 or Splus6, do the same, but replace ppa(x) by pp(x).