rcutLexis {Epi} | R Documentation |
Cuts follow-up at intermediate event times, multiple event per pseron
are allowed, as well as recurrences. The states only refer to the last
assued state, unlike the result from mcutLexis
.
rcutLexis( Lx, cut, timescale = 1, precursor.states)
Lx |
A |
cut |
A data frame with columns |
timescale |
What time scale do values in |
precursor.states |
an optional vector of states to be considered
as "less severe" than |
A Lexis
object with follow-up cut at the event
times supplied in cut
Bendix Carstensen, http://BendixCarstensen.com
cutLexis
,
mcutLexis
,
addCov.Lexis
,
Lexis
,
splitLexis
df <- data.frame(lex.id = rep(c(3, 7), c(3, 5))) df$new.state <- sample(LETTERS[2:4], 8, r = TRUE) df$cut <- round(runif(8) * 100) + 1 df Lx <- Lexis( exit = list(time=c(89, 97)), id = c(3, 7), exit.status = factor(c("A", "X")) ) Lx rcutLexis(Lx, df, pre = "A")