R/get_completeness.adm.R

Defines functions get_completeness.adm

get_completeness.adm = function(x){
  
  #' 
  #' @export
  #' 
  
  adm = x 
  missing_time = sum(diff(adm$t)[adm$destr])
  total_time = diff(range(adm$t))
  compl = 1-  missing_time / total_time
  return(compl)
}

Try the admtools package in your browser

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

admtools documentation built on Oct. 4, 2024, 1:09 a.m.