News

Xpose version 4.5.3 released
2014-11-24
Release notes.

Xpose version 4.5.0 released
2014-05-20
Release notes.

Xpose version 4.4.0 released
2012-10-17 - Xpose

Xpose version 4.3.5 released
2012-04-19 - Xpose

Xpose version 4.3.4 released
2012-04-14 - Xpose

Xpose package xpose4generic version 4.3.3 released
2011-01-21 - Xpose

Xpose version 4.3.2 released
2010-11-30 - Xpose

Xpose version 4.3.0 released
2010-10-23 16:46 - Xpose
A new version of Xpose has been released. Lots of new plots and features. Note that, installation of Xpose has been simplified; it is now available through the Comprehensive R Archive Network (CRAN). Click here for more details.

Xpose 4.2.1 released
2010-05-26 10:04 - Xpose
Changed the behaviour of xpose.multiple.plot.default. Now multiple plots are returned as objects just like single plots (no automatic printing from the function that created the plot).

Xpose 4.1.0 released
2009-11-29 12:05 - Xpose
We have updated xpose for NONMEM 7 as well as added functions for odd type (categorical, TTE, count) plots including VPCs.

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.

Xpose 4 release 3 available
2008-10-24 10:31 - Xpose
Minor bug fixes.

Site news archive »

Documentation: FAQ
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.

Q. But what about human support?
A.

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. 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
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 libraries 'Hmisc' and 'gam' for Xpose to work. You can (and should) install them from the R command line:

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

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. First, 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

> 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.

   
   

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

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