News

Xpose 4 release 4 available   2008-12-14 12:33 - Xpose
This release makes Xpose 4 compatible with R 2.8.0. We have updated the method for opening graphical devices to be consistent with the new methods used in R version 2.8.0. Other changes are considered minor. Please see the change-log for more information.
Read More »

Xpose 4 release 3 available   2008-10-24 10:31 - Xpose
A minor fix. In the previous release, in compute.cwres(), a debugging flag had been left in the file resulting in R going into debugging mode when this function was called. This has been fixed in this release.
Read More »

Xpose 4 release 2 available   2008-10-14 08:25 - Xpose
Xpose version 4.0.2 is now available. This is a maintenance release for xpose with improved functionality for xpose.VPC() and some minor bug fixes. To find out more please read the release notes on the download page.
Read More »

Xpose 4.0 release 1 now available!   2008-06-13 09:54 - Xpose
Our first non-preview release! This version of Xpose incorporates visual and numerical predictive check capabilities, in concert with Perl-speaks-NONMEM (http://psn.sf.net). For more information type, at the R command line:
Read More »

Update 1 to release 6   2007-05-31 20:27 - Xpose
A quick bug fix for titles of plots with multiple graphs. Now they can be specified to be anything the user desires. Just use the 'main' argument at the command line.
Read More »

Site news archive »

Documentation: FAQ

This documentation refers to version 4.0 for R. For previous versions for S-PLUS, click here.

 

Q. How can I get help?
A.

All Xpose 4.0 functions are documented within the R help system. For example, if you want to know more about DV vs PRED plots and their options, type

> ?dv.vs.pred

at the R command line after loading Xpose. Also, a complete list of functions and their help entries may be found in the \chtml, \html and \latex directories of the five Xpose packages, found in the [R-HOME]\library folder. Formats are Microsoft compiled HTML, HTML, and LaTeX, respectively.

Q. But what about human support?
A.

The frontline developer, Andrew Hooker [andrew.hooker(at)farmbio.uu.se] can assist.

Q. Can I use Xpose 4.0 with S-PLUS?
A. Unfortunately not. Xpose 4.0 was written for R, and while the dialect of S used in R is similar to the one found in S-PLUS, they are not 100% compatible.
Q. Can I port Xpose 4.0 to S-PLUS, then?
A. By all means. The source is freely available from SourceForge.net. We ask only that you share your modifications with the rest of us when they're done.
Q. Does Xpose 4.0 work under Linux, UNIX or other non-Windows versions of R?
A. Yes, since release 4.0 PR3-2 .
Q. Can I create a version of Xpose for R on other operating systems?
A. By all means. The source is freely available from SourceForge.net. We ask only that you share your modifications with the rest of us when they're done.
Q.

I've installed Xpose as the instructions direct, but when I try to load it using library(xpose4), it says:

Loading required package: lattice
Loading required package: grid
Loading required package: Hmisc
Error: package 'Hmisc' could not be loaded
In addition: Warning message: there is no package called 'Hmisc' in: library(pkg, character.only = TRUE, logical = TRUE, lib.loc = lib.loc)

A.

You need the external library 'Hmisc' for Xpose 4.0PR2 onwards to work, and 'gam' for 4.0PR3 or better. You can (and should) install them thus:

> install.packages("Hmisc")
> install.packages("gam")

from the R command line.

Q.

Xpose says it can't find any matching table files, but I have lots of them!

A.

There are two things to check here. Firstly, make sure R is looking in the right place. Use File -> Change dir... in Windows, or (for example)

> setwd("c:/NMV/runs/") (Windows)
> setwd("/home/me/nmv/runs/") (UNIX/Linux)

to specify the folder in which your files may be found (it can be any folder, not necessarily the one in the example). Confirm it with

> getwd()

If that doesn't work, check your naming convention. Xpose looks for files according to the following pattern, where * is your run number:

sdtab* Standard table file, containing ID, IDV, DV, PRED, IPRED, WRES, IWRES, RES, IRES, etc.
patab* Parameter table, containing model parameters - THETAs, ETAs and EPSes
catab* Categorical covariates, e.g. SEX, RACE
cotab* Continuous covariates, e.g. WT, AGE
extra*, mutab*, mytab*, xptab* Other variables you might need to have available to Xpose
cwtab* Conditional weighted residual tables
run*.mod Model specification file
run*.lst NONMEM output

Strictly, only sdtab* is needed for basic goodness-of-fit functionality, but patab*, cotab*, catab* and the NONMEM input and output are recommended to get the full benefit from Xpose.

You can use code similar to the following to generate the tables you need. NONMEM automatically appends DV, PRED, WRES and RES unless NOAPPEND is specified. Don't forget to leave at least one blank line at the end of the model specification file.

$TABLE ID TIME IPRED IWRES EVID MDV   
       NOPRINT ONEHEADER FILE=sdtab1

$TABLE ID CL V2 KA K SLP KENZ
       NOPRINT ONEHEADER FILE=patab1

$TABLE ID WT HT AGE BMI PKG
      NOPRINT ONEHEADER FILE=cotab1

$TABLE ID SEX SMOK ALC
       NOPRINT ONEHEADER FILE=catab1

Q.

What are these CWRES things?

A.

In short, CWRES are conditional weighted residuals, a better alternative to WRES with the FOCE method in NONMEM. Read more about them here. Documentation about how to use them is covered in some detail in the online help, under compute.cwres:

> library(xpose4)
> ?compute.cwres

Q.

How can I save my Xpose plots to a file ?

A.

Rather than saving a graphics windows, consider piping the output to a file.

R provides a number of what it calls 'devices' to facilitate this. The onscreen image you see when you run an Xpose function is one such device - either "windows" (for Windows) or "x11" (for Linux or UNIX). These are the defaults.

If you, however, want to send the output to a file, have a look in the R help for 'Devices' (?Devices) and see if there's something there that you can use. An example, for PDF:

> library(xpose4)
> xpdb5 <- xpose.data(5)

> pdf(file="Xpose.pdf", paper="A4")
> basic.gof(xpdb5)
> dev.off()

This will create an A4-sized PDF file in your working directory containing basic goodness-of-fit plots for run 5. It is essential to use dev.off() to close the file before you try and look at it.

   
   

 

SourceForge.net Logo
DOCUMENTATION
THE ROAD TO 4.0
REPORT BUGS
LINKS