By Salerno | December 23, 2019
R Packages for Regression
For this post we will present some valuable R packages for using in regression studies. Check it out!
stats
Package very useful for statistical calculations and random number generations.
Below you can find the most useful function in regression area:
lm()
: it is used to fit linear modelssummary.lm()
: thsi function returns a summary for linear model fitscoef()
: it is possible obtain the coefficients from modeling functionsfitted()
: return fitted valuesformula()
: extract formulapredict()
: used to predicts values based on linear modelsresiduals()
: this function extracts model residualsconfint()
: this function computes a confidence intervalsdeviance()
: it returns the deviance of a fitted modelinfluence.measures()
: this function can be used to compute some of the regression diagnostics for linear and GLMlm.influence()
: iit provides some diagnostics for checking the quality of the regressionls.diag()
: it computes the basic statistics, like standard errors, t-values, p-values and etcglm()
: it is used to fit GLM modelsloess()
: this function fit polynomial surface