Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_linear_regression.wasp
Title produced by softwareLinear Regression Graphical Model Validation
Date of computationSat, 13 Dec 2014 08:38:46 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2014/Dec/13/t1418459982oyxkp3molkb6xom.htm/, Retrieved Thu, 16 May 2024 18:32:26 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=266906, Retrieved Thu, 16 May 2024 18:32:26 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact108
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Linear Regression Graphical Model Validation] [Colombia Coffee -...] [2008-02-26 10:22:06] [74be16979710d4c4e7c6647856088456]
- RM D    [Linear Regression Graphical Model Validation] [Simple lineair re...] [2014-12-13 08:38:46] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
68
39
32
62
33
52
62
77
76
41
48
63
30
78
19
31
66
35
42
45
21
25
44
69
54
74
80
42
61
41
46
39
34
51
42
31
39
20
49
53
31
39
54
49
34
46
55
42
50
13
37
25
30
28
45
35
28
41
6
45
73
17
40
64
37
25
65
100
28
35
56
29
43
59
50
59
27
61
28
51
35
29
48
25
44
64
32
20
28
34
31
26
58
23
21
21
33
16
20
37
35
33
27
41
40
35
28
32
22
44
27
17
12
45
37
37
108
10
68
72
143
9
55
17
37
27
37
58
66
21
19
78
35
48
27
43
30
25
69
72
23
13
61
43
51
67
36
44
45
34
36
72
39
43
25
56
80
40
73
34
72
42
61
23
74
16
66
9
41
57
48
51
53
29
29
55
54
43
51
20
79
39
61
55
30
55
22
37
2
38
27
56
25
39
33
43
57
43
23
44
54
28
36
39
16
23
40
24
78
57
37
27
61
27
69
34
44
34
39
51
34
31
13
12
51
24
19
30
81
42
22
85
27
25
22
19
14
45
45
28
51
41
31
74
19
51
73
24
61
23
14
54
51
62
36
59
24
26
54
39
16
36
31
31
42
39
25
31
38
31
17
22
55
62
51
30
49
16
Dataseries Y:
149
139
148
158
128
224
159
105
159
167
165
159
119
176
54
91
163
124
137
121
153
148
221
188
149
244
148
92
150
153
94
156
132
161
105
97
151
131
166
157
111
145
162
163
59
187
109
90
105
83
116
42
148
155
125
116
128
138
49
96
164
162
99
202
186
66
183
214
188
104
177
126
76
99
139
162
108
159
74
110
96
116
87
97
127
106
80
74
91
133
74
114
140
95
98
121
126
98
95
110
70
102
86
130
96
102
100
94
52
98
118
99
48
50
150
154
109
68
194
158
159
67
147
39
100
111
138
101
131
101
114
165
114
111
75
82
121
32
150
117
71
165
154
126
149
145
120
109
132
172
169
114
156
172
68
89
167
113
115
78
118
87
173
2
162
49
122
96
100
82
100
115
141
165
165
110
118
158
146
49
90
121
155
104
147
110
108
113
115
61
60
109
68
111
77
73
151
89
78
110
220
65
141
117
122
63
44
52
131
101
42
152
107
77
154
103
96
175
57
112
143
49
110
131
167
56
137
86
121
149
168
140
88
168
94
51
48
145
66
85
109
63
102
162
86
114
164
119
126
132
142
83
94
81
166
110
64
93
104
105
49
88
95
102
99
63
76
109
117
57
120
73
91
108
105
117
119
31




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Sir Ronald Aylmer Fisher' @ fisher.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ fisher.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266906&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ fisher.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266906&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266906&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Sir Ronald Aylmer Fisher' @ fisher.wessa.net







Simple Linear Regression
StatisticsEstimateS.D.T-STAT (H0: coeff=0)P-value (two-sided)
constant term77.75752430926295.1303793621952615.15629134216520
slope0.932749456678670.1125225378286918.289445605099384.88498130835069e-15

\begin{tabular}{lllllllll}
\hline
Simple Linear Regression \tabularnewline
Statistics & Estimate & S.D. & T-STAT (H0: coeff=0) & P-value (two-sided) \tabularnewline
constant term & 77.7575243092629 & 5.13037936219526 & 15.1562913421652 & 0 \tabularnewline
slope & 0.93274945667867 & 0.112522537828691 & 8.28944560509938 & 4.88498130835069e-15 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266906&T=1

[TABLE]
[ROW][C]Simple Linear Regression[/C][/ROW]
[ROW][C]Statistics[/C][C]Estimate[/C][C]S.D.[/C][C]T-STAT (H0: coeff=0)[/C][C]P-value (two-sided)[/C][/ROW]
[ROW][C]constant term[/C][C]77.7575243092629[/C][C]5.13037936219526[/C][C]15.1562913421652[/C][C]0[/C][/ROW]
[ROW][C]slope[/C][C]0.93274945667867[/C][C]0.112522537828691[/C][C]8.28944560509938[/C][C]4.88498130835069e-15[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266906&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266906&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Simple Linear Regression
StatisticsEstimateS.D.T-STAT (H0: coeff=0)P-value (two-sided)
constant term77.75752430926295.1303793621952615.15629134216520
slope0.932749456678670.1125225378286918.289445605099384.88498130835069e-15



Parameters (Session):
par1 = 0 ;
Parameters (R input):
par1 = 0 ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
library(lattice)
z <- as.data.frame(cbind(x,y))
m <- lm(y~x)
summary(m)
bitmap(file='test1.png')
plot(z,main='Scatterplot, lowess, and regression line')
lines(lowess(z),col='red')
abline(m)
grid()
dev.off()
bitmap(file='test2.png')
m2 <- lm(m$fitted.values ~ x)
summary(m2)
z2 <- as.data.frame(cbind(x,m$fitted.values))
names(z2) <- list('x','Fitted')
plot(z2,main='Scatterplot, lowess, and regression line')
lines(lowess(z2),col='red')
abline(m2)
grid()
dev.off()
bitmap(file='test3.png')
m3 <- lm(m$residuals ~ x)
summary(m3)
z3 <- as.data.frame(cbind(x,m$residuals))
names(z3) <- list('x','Residuals')
plot(z3,main='Scatterplot, lowess, and regression line')
lines(lowess(z3),col='red')
abline(m3)
grid()
dev.off()
bitmap(file='test4.png')
m4 <- lm(m$fitted.values ~ m$residuals)
summary(m4)
z4 <- as.data.frame(cbind(m$residuals,m$fitted.values))
names(z4) <- list('Residuals','Fitted')
plot(z4,main='Scatterplot, lowess, and regression line')
lines(lowess(z4),col='red')
abline(m4)
grid()
dev.off()
bitmap(file='test5.png')
myr <- as.ts(m$residuals)
z5 <- as.data.frame(cbind(lag(myr,1),myr))
names(z5) <- list('Lagged Residuals','Residuals')
plot(z5,main='Lag plot')
m5 <- lm(z5)
summary(m5)
abline(m5)
grid()
dev.off()
bitmap(file='test6.png')
hist(m$residuals,main='Residual Histogram',xlab='Residuals')
dev.off()
bitmap(file='test7.png')
if (par1 > 0)
{
densityplot(~m$residuals,col='black',main=paste('Density Plot bw = ',par1),bw=par1)
} else {
densityplot(~m$residuals,col='black',main='Density Plot')
}
dev.off()
bitmap(file='test8.png')
acf(m$residuals,main='Residual Autocorrelation Function')
dev.off()
bitmap(file='test9.png')
qqnorm(x)
qqline(x)
grid()
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Simple Linear Regression',5,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Statistics',1,TRUE)
a<-table.element(a,'Estimate',1,TRUE)
a<-table.element(a,'S.D.',1,TRUE)
a<-table.element(a,'T-STAT (H0: coeff=0)',1,TRUE)
a<-table.element(a,'P-value (two-sided)',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'constant term',header=TRUE)
a<-table.element(a,m$coefficients[[1]])
sd <- sqrt(vcov(m)[1,1])
a<-table.element(a,sd)
tstat <- m$coefficients[[1]]/sd
a<-table.element(a,tstat)
pval <- 2*(1-pt(abs(tstat),length(x)-2))
a<-table.element(a,pval)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'slope',header=TRUE)
a<-table.element(a,m$coefficients[[2]])
sd <- sqrt(vcov(m)[2,2])
a<-table.element(a,sd)
tstat <- m$coefficients[[2]]/sd
a<-table.element(a,tstat)
pval <- 2*(1-pt(abs(tstat),length(x)-2))
a<-table.element(a,pval)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')