st: ksmirnov on Johnson SB

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

st: ksmirnov on Johnson SB

Demetris Christodoulou
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: