glmlab is available from the MathWorks user contributed site at the MathWorks Web Site as glmlab.zip (best for Windows or Macintosh users) or glmlab.tar (best for UNIX users).
When installing glmlab, you will need to have write access to the glmlab/glmlog directory/folder so that it can create a file of the fitting parameters and to place the log file. For this reason, it is suggested that glmlab be installed in your own directories. (This will make more sense after reading the rest of this section.)
If you have the file glmlab.zip, you will need to "unzip" the file using a program such as PKunZip or WinZip.
After loading glmlab onto the computer's hard disk, MATLAB must be told where to find the glmlab files. To do this, use the PathTool that comes with MATLAB, by typing pathtool at the MATLAB prompt.
Type help glmlab at the MATLAB prompt next time MATLAB is started. If the message glmlab.m not found appears on the screen, then the installation did not work and will need to be repeated.
To use glmlab with UNIX, the file .cshrc (or its equivalent, depending on the shell you are using) needs to have a line directing MATLAB to glmlab. There should be a line in the .cshrc (or equivalent) file starting with setenv MATLABPATH (or equivalent). If not, then a line beginning with this will need to be created. The Systems Administrator will be of great assistance here. The appropriate section of the .cshrc file (or equivalent) should include a single line that looks like Figure 1.3.2 (it may include other MATLAB directories besides the glmlab directories).
setenv MATLABPATH /home/myname/glmlab:/home/myname/glmlab/fit: /home/myname/glmlab/plotting:/home/myname/glmlab/misc:/home/ myname/glmlab/fit/link:/home/myname/glmlab/fit/dist:/home/ myname/glmlab/data:/home/ myname/glmlab/glmhelp:/home/myname/ glmlab/glmlog The MATLAB UNIX Path in tc shell
You may have to log out and log in again. Type help glmlab at the MATLAB prompt next time MATLAB is started. If the message glmlab.m not found appears on the screen, then the installation did not work and will need to be repeated.
NOTE: glmlab needs to have write permission to the glmlab/glmlog directory so that it can create a file of the fitting parameters and to place the log file. For this reason, it is suggested that glmlab be installed in your own directories.