| AaJ.Lexis | R Documentation | 
Lexis object.
The Aalen-Johansen estimator is computed on the basis of a
Lexis multistate object along a given time scale. The
function is merely a wrapper for the survfit.
## S3 method for class 'Lexis'
AaJ(Lx,
               formula = ~ 1,
             timeScale = 1, ...)
| Lx | A  | 
| formula | A one-sided formula passed on to  | 
| timeScale | Character or integer, selecting one of the timescales
of the  | 
| ... | Arguments passed on. Ignored | 
An object of class survfitms — see
survfit. 
Bendix Carstensen, http://bendixcarstensen.com
survfit
ci.Crisk
data(DMlate)
str(DMlate)
dml <- Lexis(entry = list(Per = dodm,
                          Age = dodm-dobth,
                        DMdur = 0 ),
              exit = list(Per = dox),
       exit.status = factor(!is.na(dodth),
                            labels = c("DM","Dead")),
              data = DMlate )
# Cut the follow-up at insulin start
dmi <- cutLexis(dml,
                cut = dml$doins,
          new.state = "Ins",
        split.state = TRUE)
summary( dmi )
ms <- AaJ.Lexis(dmi, timeScale = "DMdur")
class(ms)
ms$states
head(ms$pstate)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.