Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: RE: query on testing uniform distributions

From   Sergio Salis <>
To   "" <>
Subject   st: RE: query on testing uniform distributions
Date   Tue, 1 Nov 2011 17:00:59 +0000

Dear Marteen,

Many thanks for your response. You suggest using

-quantile employment_start_dates, aspect(1)

to graphically test whether employment_start_dates follow a uniform distribution. (I can see from the graph it does.)

I understand that to check whether employment_start_dates follow a uniform distribution I can also use the ksmirnov test. It is not clear to me what the command -ksmirnov hazel=hazel- actually does (so I would appreciate if you could provide some further explanation on this). However, if employment_start_dates was a continuous variable I would use

-ksmirnov employment_start_date=14341+int((14705-14341+1)*runiform())

where 14705 is the first and 14341 the last day of the tax year of interest. Is this syntax line correct in case one deals with a continuous variable? If so, how can it be changed to deal with a discrete variable, which is my case?

Many thanks for your help.


*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index