Professional Documents
Culture Documents
> datose2
y
x1 x2 x3 x4 x5
Response: y
Df Sum Sq Mean Sq F value Pr(>F)
x4
Residuals 27 4103.2
152
--Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
> x0<-data.frame(x4=16.5)
> predic.lm(RegModel.1,x0,interval="confidence",level=0.95)
Error: could not find function "predic.lm"
> predict.lm(RegModel.1,x0,interval="confidence",level=0.95)
fit
lwr
upr
> attach(datose1)
The following objects are masked from datose2:
Response: y
Df Sum Sq Mean Sq F value Pr(>F)
x8
lwr
upr
lwr
upr
Response: y
Df Sum Sq Mean Sq F value Pr(>F)
x1
lwr
upr
fit
lwr
upr
Response: y
Df Sum Sq Mean Sq F value Pr(>F)
x10
14 96.07 1.55
15 93.65 1.40
16 87.31 1.15
17 95.00 1.01
18 96.85 0.99
19 85.20 0.95
20 90.56 0.98
> attach(datose7)
The following object is masked from datose3:
y
The following object is masked from datose1:
y
The following object is masked from datose2:
y
> anova(lm(y~x))
Analysis of Variance Table
Response: y
Df Sum Sq Mean Sq F value Pr(>F)
x
> x0<-data.frame(x=1.00)
> predict.lm(RegModel.4,x0,interval="confidence",level=0.95)
Warning: 'newdata' had 1 row but variables found have 32 rows
fit
lwr
upr
lwr
upr
lwr
upr
1 185.79 21
2 214.47 24
3 288.03 32
4 424.84 47
5 454.68 50
6 539.03 59
7 621.55 68
8 675.06 74
9 562.03 62
10 452.93 50
11 369.95 41
12 273.98 30
> anova(lm(y,x))
Error in formula.default(object, env = baseenv()) : invalid formula
>
> attach(datose7)
The following objects are masked from datose7 (position 3):
x, y
The following object is masked from datose3:
y
The following object is masked from datose1:
y
The following object is masked from datose2:
y
> anova(lm(y,x)
+ anova(lm(y~x))
Error: unexpected symbol in:
"anova(lm(y,x)
anova"
>
> anova(lm(y~x))
Analysis of Variance Table
Response: y
Df Sum Sq Mean Sq F value Pr(>F)
x
lwr
upr
RCMDR
RCMDR RESULTADOS
> datose2 <- sqlQuery(channel = 1, select * from [Sheet1$])
> summary(RegModel.1)
Call:
lm(formula = y ~ x4, data = datose2)
Residuals:
Min
1Q Median
3Q
Max
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 607.103
x4
-21.402
--Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
0.5 % 99.5 %
x4
> summary(RegModel.2)
Call:
lm(formula = y ~ x8, data = datose1)
Residuals:
Min
1Q Median
3Q Max
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 21.788251 2.696233 8.081 1.46e-08 ***
x8
--Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
2.5 %
97.5 %
> summary(RegModel.3)
Call:
lm(formula = y ~ x1, data = datose3)
Residuals:
Min
1Q Median
3Q
Max
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 33.722677 1.443903 23.36 < 2e-16 ***
x1
--Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
> summary(RegModel.4)
Call:
lm(formula = y ~ x10, data = datose3)
Residuals:
Min
1Q Median
3Q
Max
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 40.8524315 2.2789916 17.926 < 2e-16 ***
x10
--Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
> summary(RegModel.5)
Call:
lm(formula = y ~ x, data = datose7)
Residuals:
Min
1Q Median
3Q
Max
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 77.863
x
11.801
--Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
2.5 % 97.5 %
> summary(RegModel.6)
Call:
lm(formula = y ~ x, data = datose12)
Residuals:
Min
1Q Median
3Q
Max
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -6.33209 1.67005 -3.792 0.00353 **
x
--Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1