How do you cite a package in R?

How do you cite a package in R?

citation() To cite R in publications use: R Core Team (2013). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL http://www.R-project.org/.

How do I cite a package in R?

The ‘CITATION’ file of an R package should be placed in the ‘inst’ subdirectory of the package source. The file is an R source file and may contain arbitrary R commands including conditionals and computations. Function readCitationFile() is used by citation() to extract the information in ‘CITATION’ files.

What is the adjusted are squared for a GAM fit?

The adjusted r-squared for the model. Defined as the proportion of variance explained, where original variance and residual variance are both estimated using unbiased estimators. This quantity can be negative if your model is worse than a one parameter constant model, and can be higher for the smaller of two nested models!

What kind of smooths are used in mgcv?

The sorts of smooths we fit in mgcv are (typically) penalized smooths; we choose to use some number of basis functions (k), which sets an upper limit on the complexity — wiggliness — of the smooth, and then we estimate parameters for the model by maximizing a penalized log-likelihood.

How are log likelihood and penalty related in mgcv?

The log-likelihood of the model is a measure of the fit (or lack there of), while the penalty helps us avoid fitting overly complex smooths. In the sorts of models that can be fitted in mgcv, the penalty is a function of the model coefficients, (), and a penalty matrix 1, which we write as (). The penalty then is (^ {} ).

Which is the best GAM routine for R?

mgcv, gamm4 mgcvis a package supplied with R for generalized additive modelling, including generalized additive mixed models. The main GAM fitting routine is gam. bamprovides an alternative for very large datasets. The main GAMM fitting is gammwhich uses PQL based on package nlme. gamm4is an R package available from cran.r-project.org