WebStatR
Index | Models | History | Help

Results for selected analysis

The R codes for the current analysis



x<-rnorm(100,5,2)
y<-10 + 5*x + rnorm(100)
reg<-lm(y~x)
summary(reg)


The output from the current analysis



> x<-rnorm(100,5,2)
> y<-10 + 5*x + rnorm(100)
> reg<-lm(y~x)
> summary(reg)

Call:
lm(formula = y ~ x)

Residuals:
Min 1Q Median 3Q Max
-2.36287 -0.67689 0.00335 0.70485 2.88523

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 9.84412 0.29516 33.35 <2e-16 ***
x 5.06580 0.05572 90.91 <2e-16 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Residual standard error: 1.019 on 98 degrees of freedom
Multiple R-squared: 0.9883, Adjusted R-squared: 0.9882
F-statistic: 8265 on 1 and 98 DF, p-value: < 2.2e-16

>