How to reference lm function in R? Hopefully a quick and easy question for somebody on here. I'm a masters student using R to interpret data for my thesis. I want to reference the type of linear regression that I have used in my analysis, e.g. Pearson correlation coefficient detected no significant...etc etc etc. I am using the lm function in R but I can't find any information on the regression model that this function uses.
My question is - how do I reference the lm function for my thesis?
Or to put it another way - what model is used in the lm function?
Thank you :)

The usual convention is to reference the package the function is published in.  The function lm is published in the stats package, but this package is part of base R and was designed by the core team, so in this particular case you should just cite the R program directly.  The current citation is:

R Core Team (2021). R: A language and environment for statistical
computing. R Foundation for Statistical Computing, Vienna, Austria.
URL https://www.R-project.org/

