Note: ----- Requires R 1.7.0 or higher. For Windows use the zip file; for unix use the tar.gz file. Installing: ---------- On Windows, fire up R. From menu choose install packages from local zip file and point to this zip file, wherever you downloaded it. On Unix, run the command R INSTALL The above will fail if you're not root, for lack of permissions etc. In this case, you have to install into a local directory as follows: mkdir lib R INSTALL -l lib Usage ----- The following example should work in windows and also in Unix, if installed by root (else see below). library("npbayes") data(ovarian) ovarian.dat <- cbind(ovarian$futime, ovarian$fustat) ovarian.1000 <- gibbs1(data=ovarian.dat, prior=c(.1,.1,1000), nrep=10000) plot(ovarian.1000) summary(ovarian.1000) In Unix, if you installed in a local directory, instead of 'library("npbayes")' you do: library("npbayes", lib.loc="./lib") dyn.load("./lib/npbayes/libs/npbayes.so")