I also send a private posting here. Thanks to Rashid Nassar for his
help! I appreciate it very much.

At 03:18 PM 6/24/03 -0400, you wrote:
On Tue, 24 Jun 2003, Mohammad Ehsanul Karim wrote:

> _________________________
> In R console (or S-plus commands), i wrote-
>  >x <- c(104.1, 106.6, 105.5, 107.5, 109.6, 113.3, 115.5, 117.7,
> 119.9, 122.1, 124.3, 126.5, 128.2)
>  >y <- c(53732, 52912, 57005, 61354, 67682, 71602, 71961, 75309,
> 82931, 93310, 102161, 103068, 108927)
>  > summary ( lm ( formula = y ~ x ) )
> _________________________
> And the result was-
> _________________________
> Call:
> lm(formula = y ~ x)
>
> Residuals:
>    Min     1Q Median     3Q    Max
>  -6902  -3997   1070   2603   4906
>
> Coefficients:
>              Estimate Std. Error t value Pr(>|t|)
> (Intercept) -186075.0    16047.4  -11.60 1.65e-07 ***
> x              2279.4      138.7   16.44 4.33e-09 ***
> ---
> Signif. codes:  0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1
>
> Residual standard error: 4020 on 11 degrees of freedom
> Multiple R-Squared: 0.9609,     Adjusted R-squared: 0.9573
> F-statistic: 270.2 on 1 and 11 DF,  p-value: 4.332e-009
> _________________________
>
> Can anyone tell me what are the "Signif. codes"? I think i need a bit
> explanation about specifically each of them. Also what does those " *
> " mean?

The line under the table of coefficients explains them, e.g., ***
indicates a p-value between 0 and 0.001, and so on.

I have in my .Rprofile the following line to remove the (to me)
distracting  "Signif. codes"

   options(show.signif.stars = FALSE)

> Also, is there any direct command to predict y for x = 110?

see ?predict.lm

You can do, e.g.,

> new <- data.frame(x = c(100,110,120))
> predict(f1, new)
       1        2        3
41865.37 64659.40 87453.44


I hope this helps.

Rashid Nassar



_______________________

Mohammad Ehsanul Karim <[EMAIL PROTECTED]>
Institute of Statistical Research and Training
University of Dhaka, Dhaka- 1000, Bangladesh
_______________________
.
.
=================================================================
Instructions for joining and leaving this list, remarks about the
problem of INAPPROPRIATE MESSAGES, and archives are available at:
.                  http://jse.stat.ncsu.edu/                    .
=================================================================

Reply via email to