Dear All,
I am trying to evaluate a 'discrete survival model' using the function
'pgmhaz':
pgmhaz8 età if dead~=., id( id) s( Interval) d( dead)
but I get an unexpected error message
Per-interval censoring indicator variable must
equal one or zero: see -pgmhaz- help file
r(198);
. list id Interval dead età if id<4
+----------------------------+
| id Interval dead età |
|----------------------------|
1. | 1 1 0 86 |
2. | 1 2 0 86 |
3. | 1 3 0 86 |
4. | 1 4 0 86 |
5. | 1 5 0 86 |
|----------------------------|
6. | 1 6 0 86 |
7. | 1 7 0 86 |
8. | 2 1 0 67 |
9. | 2 2 0 67 |
10. | 2 3 0 67 |
|----------------------------|
11. | 2 4 0 67 |
12. | 2 5 0 67 |
13. | 2 6 0 67 |
14. | 2 7 1 67 |
15. | 3 1 0 68 |
|----------------------------|
16. | 3 2 0 68 |
17. | 3 3 0 68 |
18. | 3 4 0 68 |
19. | 3 5 0 68 |
+----------------------------+
dead | Freq. Percent Cum.
------------+-----------------------------------
0 | 406 88.45 88.45
1 | 53 11.55 100.00
------------+-----------------------------------
Total | 459 100.00
TIA
Giovanni Parrinello
--
dr. Giovanni Parrinello
External Lecturer
Medical Statistics Unit
Department of Biomedical Sciences
Viale Europa, 11 - 25123 Brescia Italy
Tel: +390303717528
Fax: +390303717488
email: [email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/