使用R的线性回归分析lm()>fit<-lm(weight~height,data=women)>summary(fit)Call:lm(formula=weight~height,data=women)Residuals:MinQMedianQMax-.-.-...Coefficients:(>|t|)(Intercept)-..-..e-***height....e-***---:‘***’.‘**’.‘*’.‘.’.‘’Residualstandarderror:.ondegreesoffreedomMultipleR-squared:.,AdjustedR-squared:.F-statistic:onandDF,p-value:.e->women$weight[]>fitted(fit)...............>residuals(fit)....-.-.-.-.-.-.-.-....>plot(women$height,women$weight,+xlab="Height(ininches)",+ylab="Weight(inpounds)")abline(fit)>anova(fit
使用R的线性回归分析 来自淘豆网m.daumloan.com转载请标明出处.