Thanks as always to Kit Baum, a new package normalrir is now available for download from SSC. In Stata, use the ssc command to do this.
The normalrir package is described as below on my website. It is intended as a specialist package, facilitating the computation of power calculations for two-sample rank/ridit statistics like Somers' D and Harrell's c.
Best wishes
Roger
--------------------------------------------------------------------------------
package normalrir from http://www.imperial.ac.uk/nhli/r.newson/stata10
--------------------------------------------------------------------------------
TITLE
normalrir: Calculate ridits of inverse ridits between Normal populations
DESCRIPTION/AUTHOR(S)
normalrir inputs expressions to deliver, respectively, a uniform deviate
variable, 2 means for 2 Normal populations (Population 1 and Population
0), and 2 standard deviations for the same 2 Normal populations. It
outputs a new variable, containing, in each observation, the ridit with
respect to Population 0 of a value sampled from Population 1, whose
Normal cumulative distribution function for Population 1 has the value
of the uniform deviate variable in the same observation. normalrir can
be used with the SSC packages expgen and powercal to perform
multi-scenario power and sample size calculations for the 2-sample rank
statistics Somers' D and Harrell's c, assuming that there exists an
unspecified transformation that transforms the outcome variable to a
variable with a Normal distribution in each of the 2 populations from
which the 2 samples are sampled.
Author: Roger Newson
Distribution-Date: 01may2017
Stata-Version: 10
INSTALLATION FILES (click here to install)
normalrir.ado
normalrir.sthlp
--------------------------------------------------------------------------------
(click here to return to the previous screen)
The normalrir package is described as below on my website. It is intended as a specialist package, facilitating the computation of power calculations for two-sample rank/ridit statistics like Somers' D and Harrell's c.
Best wishes
Roger
--------------------------------------------------------------------------------
package normalrir from http://www.imperial.ac.uk/nhli/r.newson/stata10
--------------------------------------------------------------------------------
TITLE
normalrir: Calculate ridits of inverse ridits between Normal populations
DESCRIPTION/AUTHOR(S)
normalrir inputs expressions to deliver, respectively, a uniform deviate
variable, 2 means for 2 Normal populations (Population 1 and Population
0), and 2 standard deviations for the same 2 Normal populations. It
outputs a new variable, containing, in each observation, the ridit with
respect to Population 0 of a value sampled from Population 1, whose
Normal cumulative distribution function for Population 1 has the value
of the uniform deviate variable in the same observation. normalrir can
be used with the SSC packages expgen and powercal to perform
multi-scenario power and sample size calculations for the 2-sample rank
statistics Somers' D and Harrell's c, assuming that there exists an
unspecified transformation that transforms the outcome variable to a
variable with a Normal distribution in each of the 2 populations from
which the 2 samples are sampled.
Author: Roger Newson
Distribution-Date: 01may2017
Stata-Version: 10
INSTALLATION FILES (click here to install)
normalrir.ado
normalrir.sthlp
--------------------------------------------------------------------------------
(click here to return to the previous screen)