R/plotnae.R

Defines functions plotnae

Documented in plotnae

plotnae <- function(d, mpl, return.nae = FALSE, ...){
  tra <- TraFromMpl(mpl)
  d$to[which(d$delta == 0)] <- "cens"
  nae <- mvna(data = d, state.names = 1:ncol(tra), tra = tra, cens.name = "cens")
  plot(nae, bty = "n", ...)
  if(return.nae){
    return(nae)
  }
}

Try the simMSM package in your browser

Any scripts or data that you put into this service are public.

simMSM documentation built on May 6, 2022, 9:05 a.m.