Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: query on testing uniform distributions
From
Sergio Salis <[email protected]>
To
"[email protected]" <[email protected]>
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.
Sergio
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/