For convenient use of bayz, it is advised to install bayz in a central directory and edit the system path to include the bayz directory. For Mac/linux suggested locations are the $HOME/bin/ directory (for personal use, $HOME is your home folder), or something like /user/local/bin/ (for all users on a system); for Windows it can be in C:\Program Files\Bayz\. Note that there is no install package for bayz, if these folders do not exist, create them on your computer. Note: some linuxes already have a $HOME/bin/ folder and have this location already in the default PATH - if you choose to install bayz here you have to do nothing more.
Then, set the system PATH variable to include the bayz location. For Mac/linux edit the .bash_profile that is in your $HOME directory (or create it when it does not exist), and add a line:
export PATH="$HOME/bin:$PATH"For Windows, edit (or add) a Path variable that can be found in the System settings - Advanced Settings - Environment variables (a button at the bottom of the Advanced Settings tab) - User variables.
If you have a license key (bayz.key.txt), place it in the installation directory. Bayz can also run without a license key, but the analyses that can be performed without license key are limited.
For linux and Mac the latest 2.5xx version is now 2.59 and is available for download as follows:
Download and unpack directly on the linux prompt at the install location by running the commands:
wget http://www.bayz.biz/bayz2.59.6_lin64.tar.gz tar -xzvf bayz2.59.6_lin64.tar.gz
From a terminal prompt:
curl -C - -O http://www.bayz.biz/bayz2.59.6_mac64.tar.gz tar -xzvf bayz2.59.6_mac64.tar.gz
For windows the latest version is 26.3 and is available in a zip file: click (or right-click and choose save-as...) here for Windows zip-file.
Unpack the contents in the installation directory as described above.
Current contents of bayz26.3_win.zip are: bayz.exe, pbayz.exe, gbayz.exe, Rbayz.R, bayzRfunc.R.
A number of standard/basic models is available through an R interface. See the section on Bayz in R for details. To use Rbayz models, a convenient way that guarantees to always have the latest version, is to download the Rbayz scripts from the web at every R session that needs it, using in R:
> source("http://www.bayz.biz/Rbayz.R")To avoid downloading from the web in every R session, you can also download and place in your bayz installation folder this Rbayz.R source file (you may need to right-click and choose Download File as ...). Then, from R use for instance (for a unix/linux installation of bayz in $HOME/bin):