did you look at the survSplit() function in the survival library? you may
have to recode your date variable to a zero point, i.e. Jan 1 1900 = 0, and
measure your time like that. The survSplit function will split your
survival duration into specified cut points. I hope this helps
Corey
-
C
The reshape() function would be used to reorganize your event history
data set so that the Discussion and Agreement dates are one above the
other in the same column, presumably with another variable to flag
which is which (although you don't seem to need that).
Then, separately, you read your
Thanks Josh,
But I am not sure if the reshape function can create new rows based on
the meeting variable. For the second act there are three meetings, i.e.
one meeting between discussion and agreement, and this should be entered
as a separate row.
Best, Thomas
On Fri, 2010-04-23 at 07:45 -0700,
I'm sorry, I do not think I understand exactly what your data is and
what your end goal is. Are all your meeting dates together (i.e.,
they need to be split apart into separate cells)?
On Fri, Apr 23, 2010 at 8:18 AM, Thomas Jensen
wrote:
> Thanks Josh,
>
> But I am not sure if the reshape func
If you are talking about changing from a "wide" format to "long" take a look at
?reshape
---
Josh
On Fri, Apr 23, 2010 at 7:09 AM, Thomas Jensen
wrote:
> Dear R list,
>
> I have an event history data set that is structured like this:
>
> Legislative act Discussion Agreement Time
5 matches
Mail list logo