citHeader("To cite the 'gllvm' package in publications use:")

year <- sub(".*(2[[:digit:]]{3})-.*", "\\1", meta$Date, perl = TRUE)
vers <- paste("R package version", meta$Version)

bibentry(bibtype = "Manual",
         title = "gllvm: Generalized Linear Latent Variable Models",
         author = c(as.person("Jenni Niku"), as.person("Wesley Brooks"), as.person("Riki Herliansyah"), as.person("Francis K. C. Hui"), as.person("Pekka Korhonen"), as.person("Sara Taskinen"), as.person("Bert van der Veen"), as.person("David I. Warton")),
         year = year,
         note = vers,
         textVersion =
         paste("Niku, J., Brooks, W., Herliansyah, R., Hui, F. K. C., Korhonen, P., Taskinen, S., van der Veen, B., and Warton, D. I.  (",
               year,
               "). gllvm: Generalized Linear Latent Variable Models.",
               vers, ".", sep="")
)

bibentry(bibtype="Article",
         title = "gllvm - Fast analysis of multivariate abundance data with generalized linear latent variable models in R",
         author = c(as.person("Jenni Niku"), as.person("Francis K. C. Hui"), as.person("Sara Taskinen"), as.person("David I. Warton")),
    	 journal = "Methods in Ecology and Evolution",
         year     = "2019",
         volume      = "10",
          pages   = "2173-2182",
         textVersion =
         paste("Niku, J., Hui, F. K. C., Taskinen, S., and Warton, D. I. (2019).",
  	       "gllvm - Fast analysis of multivariate abundance data with generalized linear latent variable models in R.",
               "Methods in Ecology and Evolution, 10, 2173-2182."),
               header = "accompanied by any of associated research articles, as applicable:"
)

bibentry(bibtype="Article",
         title = "Analyzing environmental-trait interactions in ecological communities with fourth-corner latent variable models",
         author = c(as.person("Jenni Niku"), as.person("Francis K. C. Hui"), as.person("Sara Taskinen"), as.person("David I. Warton")),
         journal = "Environmetrics",
         year     = "2021",
         volume      = "32",
         pages   = "1-17",
         textVersion =
         paste("Niku, J., Hui, F. K. C., Taskinen, S., and Warton, D. I. (2021).",
         "Analyzing environmental-trait interactions in ecological communities with fourth-corner latent variable models.",
               "Environmetrics, 32, 1-17.")
)

bibentry(bibtype="Article",
         title = "Fast fitting of phylogenetic mixed effects models",
         author = c(as.person("Bert van der Veen"), as.person("Robert B. O'Hara")),
         journal = "arxiv",
         year     = "2024",
         textVersion =
         paste("van der Veen, B. and O'Hara, R.B. (2024).",
         "Fast fitting of phylogenetic mixed effects models.",
               "arxiv.")
)

bibentry(bibtype="Article",
         title = "Model-based ordination for species with unequal niche widths",
         author = c(as.person("Bert van der Veen"), as.person("Francis K. C. Hui"), as.person("Knut A. Hovstad"), as.person("Erik B. Solbu"), as.person("Robert B. O'Hara")),
         journal = "Methods in Ecology and Evolution",
         year     = "2021",
         volume      = "12",
         pages   = "1288-1300",
         textVersion =
         paste("van der Veen, B., Hui, F. K. C., Hovstad, K.A., Solbu, E.B., and O'Hara, R.B. (2021).",
         "Model-based ordination for species with unequal niche widths.",
               "Methods in Ecology and Evolution, 12, 1288-1300.")
)

bibentry(bibtype="Article",
         title = "Concurrent ordination: Simultaneous unconstrained and constrained latent variable modelling",
         author = c(as.person("Bert van der Veen"), as.person("Francis K. C. Hui"), as.person("Knut A. Hovstad"), as.person("Robert B. O'Hara")),
         journal = "Methods in Ecology and Evolution",
         year     = "2023",
         volume      = "14",
         pages   = "683-695",
         textVersion =
         paste("van der Veen, B., Hui, F. K. C., Hovstad, K.A., and O'Hara, R.B. (2023).",
         "Concurrent ordination: simultaneous unconstrained and constrained latent variable modelling.",
               "Methods in Ecology and Evolution, 14, 683-695.")
)

bibentry(bibtype="Article",
         title = "Fast and universal estimation of latent variable models using extended variational approximations",
         author = c(as.person("Pekka Korhonen"), as.person("Francis K. C. Hui"), as.person("Jenni Niku"), as.person("Sara Taskinen")),
         journal = "Statistics and Computing",
         year     = "2023",
         volume      = "33",
         pages   = "1-16",
         textVersion =
         paste("Korhonen, P., Hui, F. K. C., Niku, J., and Taskinen, S. (2023).",
         "Fast and universal estimation of latent variable models using extended variational approximations.",
               "Statistics and Computing, 33, 1-16.")
)