獨斷論

R, lm(y~x) 실행후 사용할수 있는 유용한 함수 본문

과학과 기술/R 통계

R, lm(y~x) 실행후 사용할수 있는 유용한 함수

부르칸 2021. 5. 21. 08:00

There are a number of extractor functions (functions that extract or derive specific information from a model) available including:

residuals() Extracts the residuals from the model
rstandard() Extracts the standardized residuals from the model
rstudent() Extracts the studentized residuals from the model
fitted() Extracts the predicted (expected) response values (on the link scale) at the observed levels of the linear predictor
predict() Extracts the predicted (expected) response values (on either the link, response or terms (linear predictor) scale) as well as standard errors or confidence intervals.
coef() Extracts the model coefficients
confint() Calculate confidence intervals for the model coefficients
summary() Summarizes the important output and characteristics of the model
anova() Computes an analysis of variance (variance partitioning) from the model
plot() Generates a series of diagnostic plots from the model
influence.measures() Calculates a range of regression diagnostics including leverage and Cook's D
effect() effects package - estimates the marginal (partial) effects of a factor (useful for plotting)
avPlot() car package - generates partial regression plots
AIC() Extracts the Akaike's Information Criterion

 

Comments