Statalist


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

RE: st: re: creating number of days per month


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: re: creating number of days per month
Date   Thu, 5 Nov 2009 11:50:32 -0000

It would help many if you could give a picture of the form of your
original data.

The error message you quote implies immediately a solution to your
problem: create a pseudo-time variable that has distinct values within
each panel. That will fool -tsset-, but it's only a minor issue. 

The major issues are bundled together: 

Why do you want to -tsset- with this kind of data? 
What commands do you wish to run after -tsset-? 
What is the implication for your analyses of panels that are almost
instantaneous?  

Nick 
n.j.cox@durham.ac.uk 

Rajaram Subramanian Potty

When I run with my original data, I get the following error after the
tsset command.

tsset patientid date
repeated time values within panel

This may be due to the fact that, some patients may be discharged on
the same day of admission.

How to resolve this issue, if the patient is discharged on the same
day as admission.


*
*   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/



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