citHeader("To cite package 'umx' in publications use:")
citFooter(paste("BibTeX entries for LaTeX users are obtained by:\n\n",
	"toBibtex(citation('umx'))\n\n")
)
     
citEntry(entry="article",
	title = paste("umx: Twin and path-based Structural Equation Modeling in Open{M}x"),
	author = c(
		person(c("Timothy", "C."), "Bates"),
		person(c("Michael", "C."), "Neale"),
		person(c("Hermine", "H."), "Maes")
	),
	journal   = "Journal of Statistical Software",
	publisher = "Foundation for Open Access Statistics",
	year  = "under review",
	pages = "",
	doi   = "",
	textVersion = paste(
		"Timothy C. Bates,",
		"Michael C. Neale,", 
		"Hermine H. Maes,",
		"(under review). umx: Twin and path-based Structural Equation Modeling in OpenMx. Journal of Statistical Software,",
		"DOI:XXXX")
)

year <- "2016"
revision <- "1.2.7"
authors <-  c(person(c("Timothy", "C."), "Bates", role="aut"))
title = paste("umx", revision, "User Guide") 
citEntry(entry="manual",
	title  = title,
    year   = year,
    author = authors,
    textVersion = paste0(authors[1], ". (", year, "). ", title)
)

bibentry("Manual",
   title = "umx: A helper package for Structural Equation Modeling in OpenMx",
   author = person("Timothy C. Bates"),
   organization = "University of Edinburgh",
   address = "Edinburgh, UK",
   year = version$year,
   note = "version 1.2.7",
   url = "http://github.com/tbates/umx/",
   doi = "10.5281/zenodo.10937",
   url = "http://dx.doi.org/10.5281/zenodo.10937",
   mheader = "To cite umx in publications use:",

   mfooter = 
     paste("We have invested a significant time and effort in creating umx,",
      "please cite it when using it for data analysis.",
      "See also", sQuote("citation(\"umx\")"),
      "for citing R packages.", sep = " ")
)
