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

st: stcompet

From   "Hugh Robinson" <>
To   <>
Subject   st: stcompet
Date   Mon, 3 Nov 2008 14:57:47 -0700

I'm trying to determine cause specific mortality rates from encounter
data (133 individuals, 17000 rows, 6 possible causes of mortality).  
The data is StSet as: 

"stset date1, id(lion_id) failure(fatecode==1) enter(event==1) origin
(time d(01Jan1998)) exit(time d(01Jan2007))"

When I ask stcompet to calculate the cumulative incidence using
"stcompet CumInt = ci, compet1(2) compet2(3)",

STATA creates the new variable I stipulate, but then simply adds a 0 to
each row when a mortality occurred, all other rows are no data ".".

Any suggestions?


Hugh S Robinson Ph.D.
Postdoctoral Researcher
Wildlife Biology Program
College of Forestry and Conservation
University of Montana
Missoula, MT 59802
(406) 243-2931

*   For searches and help try:

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