R/write.mitml.R

Defines functions write.mitml

Documented in write.mitml

write.mitml <- function(x, filename, drop = FALSE){
# write mitml class object to file

  if(drop){
    x <- x[!names(x) %in% c("par.burnin", "par.imputation")]
  }

  save(x, file = filename)
  invisible()

}

Try the mitml package in your browser

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

mitml documentation built on March 31, 2023, 7:01 p.m.