Selected Programs to Accompany the Second Edition of

Cross-over Trials in Clinical Research

Stephen Senn

Disclaimer: I am not an expert programmer and I give no guarantees regarding the accuracy, still less the elegance of these programs. All and any of these programs are used at the user's risk.

Stephen Senn

 

Programs in various languages

SAS

GenStat

SPlus

R

MathCad

 

 

SAS programs

Example 3.1

Example 4.1

Example 4.3

Example 5.1

Example 6.2

Example 7.1

Example 7.2

Example 7.3

Example 9.3 (Design)

Example 9.3 (Analysis: The data from this example are not included in the book. The example is covered in detail in the paper by Senn, Lillienthal, Patalano and Till referenced in the book.)

Sample size program (This program calculates sample size for an AB/BA cross-over)

 

GenStat programs

Example 3.1

Example 4.1

Example 4.3

Example 4.5

Example 5.1

Example 7.1

Example 7.2

Example 7.3 (The GenStat analysis of this example is not illustrated in the book)

Example 9.3 (Design. Caution: while this works, I think, for this particular example it is not a general method for constructing such designs)

Example 9.3 (Analysis: The data from this example are not included in the book. The example is covered in detail in the paper by Senn, Lillienthal, Patalano and Till referenced in the book.)

Sample size program (This program calculates sample size for an AB/BA cross-over)

 

SPlus programs

Example 3.1

Example 4.1

Example 4.3 (This example uses the MASS library of Venables and Ripley and is not illustrated in the book.)

Example 4.5

Example 5.1

Example 7.1

Example 7.2

Example 7.3 ( The SPlus analysis of this example is not illustrated in the book. In order to run this program it will be necessary to download this data file also Example 7.3 Data )

Example 9.3 (Analysis: The data from this example are not included in the book. The example is covered in detail in the paper by Senn, Lillienthal, Patalano and Till referenced in the book. In order to run this program it will be necessary to download this data file also Example 9.3 Data )

 

R programs

These programs were adapted from S-Plus with the help of Anna Schritz. R is not included in the book. Some of the programs are identical to the SPlus ones. Where that is so the link is to the SPlus file

Example 3.1

Example 4.1

Example 4.3 (This example uses the MASS library of Venables and Ripley and is not illustrated in the book.)

Example 4.5

Example 5.1

Example 7.1

Example 7.2

Example 7.3 ( In order to run this program it will be necessary to download this data file also Example 7.3 Data )

Example 9.3 (Analysis: The data from this example are not included in the book. The example is covered in detail in the paper by Senn, Lillienthal, Patalano and Till referenced in the book. In order to run this program it will be necessary to download this data file also Example 9.3 Data )

Sample size program (This program calculates sample size for an AB/BA cross-over)

 

 

 

Mathcad Program

The use of Mathcad is not covered in the book. However, I find it very useful for many theoretical investigations. The program below can be used to determine sample size for any arbitrary cross-over design. It is especially useful for incomplete block designs and gives the option of recovering inter-block information.

Cross-over Power

 

Back to Cross-over Trials in Clinical Research

Back to Stephen Senn's Consultancy Page

 

Page last updated 19 July 2015