[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: ksmirnov on Johnson SB

From   "Demetris Christodoulou" <>
To   <>
Subject   st: ksmirnov on Johnson SB
Date   Fri, 5 Dec 2008 15:18:03 +1100

Dear all,

This question should be very easy for the experienced.

For a standardized Johnson SB with parameters (xi,l,g,d) it holds that:
     Y = (X - xi) / l 
So that a unit normal Z can be represented as:
     Z = g + d * logit Y 
In Stata terms:
    Y = invlogit((Z - g)/d) 
    X = xi + l * invlogit((Z - g)/d) 

Hence, to generate the SB:
gen SB = xi + l  * invlogit((invnormal(uniform()) - g)/d)

Now, to run a ksmirnov test on the normal cumulative density:
sum X
ksmirnov X  = normal((X-r(mean))/r(sd))

My question is how do you run the equivalent ksmirnov on the cumulative
I thought that I got the cumulative right but now I am not sure.

many thanks, Demetris

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index