れ螻 螳 蠏覿 れ summary 襯 伎覃 覿蟆郁骸襯 覲 . 企 蟆曙 覿蟆郁骸襯 覃伎 豢ロ 殊 ロ螻 矩る 企至 伎狩蟾?
> swiss.lm <- lm(Fertility ~ Examination, swiss)
> summary(swiss.lm)
Call:
lm(formula = Fertility ~ Examination, data = swiss)
Residuals:
Min 1Q Median 3Q Max
-25.9375 -6.0044 -0.3393 7.9239 19.7399
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 86.8185 3.2576 26.651 < 2e-16 ***
Examination -1.0113 0.1782 -5.675 9.45e-07 ***
---
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
Residual standard error: 9.642 on 45 degrees of freedom
Multiple R-Squared: 0.4172, Adjusted R-squared: 0.4042
F-statistic: 32.21 on 1 and 45 DF, p-value: 9.45e-07
螳 螳 覦覯 襷一る 蠍伎 Copy & Paste 蟆伎襷 蟆郁骸 伎 蠍碁 覿ク 訖襷 螳 蠍 覓語 襷 覿 れ 郁鍵 企給.
sink 企 螳 企 殊 朱 襦 伎企. 襷 蠍一ヾ 殊 伎 伎伎 豢 伎 ロ螻 矩る sink(朱, append=T) 螳 ロ.
capture.output
capture.output 覈轟 蟆郁骸襯 character 覯″磯 ロ. 蠏覿 蟆郁骸襯 lm.txt 殊 ロ 企.
> lm.summary <- capture.output( summary(lm) )
> cat(lm.summary, file='lm.txt', sep='\n')