Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 04:01:22 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/20/t1258714985x0o1pkzymmyvr0v.htm/, Retrieved Sat, 20 Apr 2024 08:07:09 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58029, Retrieved Sat, 20 Apr 2024 08:07:09 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact115
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2009-11-20 11:01:22] [477c9cb8e7bda18f2375c22a66069c90] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.1	10.9	115.6	92.9
7.7	10	127.1	107.7
7.5	9.2	123	103.5
7.6	9.2	122.2	91.1
7.8	9.5	126.4	79.8
7.8	9.6	112.7	71.9
7.8	9.5	105.8	82.9
7.5	9.1	120.9	90.1
7.5	8.9	116.3	100.7
7.1	9	115.7	90.7
7.5	10.1	127.9	108.8
7.5	10.3	108.3	44.1
7.6	10.2	121.1	93.6
7.7	9.6	128.6	107.4
7.7	9.2	123.1	96.5
7.9	9.3	127.7	93.6
8.1	9.4	126.6	76.5
8.2	9.4	118.4	76.7
8.2	9.2	110	84
8.2	9	129.6	103.3
7.9	9	115.8	88.5
7.3	9	125.9	99
6.9	9.8	128.4	105.9
6.6	10	114	44.7
6.7	9.8	125.6	94
6.9	9.3	128.5	107.1
7	9	136.6	104.8
7.1	9	133.1	102.5
7.2	9.1	124.6	77.7
7.1	9.1	123.5	85.2
6.9	9.1	117.2	91.3
7	9.2	135.5	106.5
6.8	8.8	124.8	92.4
6.4	8.3	127.8	97.5
6.7	8.4	133.1	107
6.6	8.1	125.7	51.1
6.4	7.7	128.4	98.6
6.3	7.9	131.9	102.2
6.2	7.9	146.3	114.3
6.5	8	140.6	99.4
6.8	7.9	129.5	72.5
6.8	7.6	132.4	92.3
6.4	7.1	125.9	99.4
6.1	6.8	126.9	85.9
5.8	6.5	135.8	109.4
6.1	6.9	129.5	97.6
7.2	8.2	130.2	104.7
7.3	8.7	133.8	56.9
6.9	8.3	123.3	86.7
6.1	7.9	140.7	108.5
5.8	7.5	145.9	103.4
6.2	7.8	128.5	86.2
7.1	8.3	135.9	71
7.7	8.4	120.2	75.9
7.9	8.2	119.2	87.1
7.7	7.7	132.5	102
7.4	7.2	130.5	88.5
7.5	7.3	124.8	87.8
8	8.1	136.7	100.8
8.1	8.5	129.2	50.6
8	8.4	127.9	85.9




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58029&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58029&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58029&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'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
bouw[t] = -70.0162864747521 -1.81003827719032mannen[t] + 4.08858284192562vrouwen[t] + 0.77967992895012voeding[t] + 41.0588701858582M1[t] + 50.1872660447502M2[t] + 46.6574823541635M3[t] + 40.2621729669653M4[t] + 22.5006585403526M5[t] + 33.2821430817369M6[t] + 47.0327937744364M7[t] + 45.9679281108619M8[t] + 48.5163017701577M9[t] + 46.6145544649861M10[t] + 49.7862179431847M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
bouw[t] =  -70.0162864747521 -1.81003827719032mannen[t] +  4.08858284192562vrouwen[t] +  0.77967992895012voeding[t] +  41.0588701858582M1[t] +  50.1872660447502M2[t] +  46.6574823541635M3[t] +  40.2621729669653M4[t] +  22.5006585403526M5[t] +  33.2821430817369M6[t] +  47.0327937744364M7[t] +  45.9679281108619M8[t] +  48.5163017701577M9[t] +  46.6145544649861M10[t] +  49.7862179431847M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58029&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]bouw[t] =  -70.0162864747521 -1.81003827719032mannen[t] +  4.08858284192562vrouwen[t] +  0.77967992895012voeding[t] +  41.0588701858582M1[t] +  50.1872660447502M2[t] +  46.6574823541635M3[t] +  40.2621729669653M4[t] +  22.5006585403526M5[t] +  33.2821430817369M6[t] +  47.0327937744364M7[t] +  45.9679281108619M8[t] +  48.5163017701577M9[t] +  46.6145544649861M10[t] +  49.7862179431847M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58029&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
bouw[t] = -70.0162864747521 -1.81003827719032mannen[t] + 4.08858284192562vrouwen[t] + 0.77967992895012voeding[t] + 41.0588701858582M1[t] + 50.1872660447502M2[t] + 46.6574823541635M3[t] + 40.2621729669653M4[t] + 22.5006585403526M5[t] + 33.2821430817369M6[t] + 47.0327937744364M7[t] + 45.9679281108619M8[t] + 48.5163017701577M9[t] + 46.6145544649861M10[t] + 49.7862179431847M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-70.016286474752123.621808-2.96410.0047970.002398
mannen-1.810038277190321.174195-1.54150.1300440.065022
vrouwen4.088582841925621.0207074.00560.0002240.000112
voeding0.779679928950120.1279176.095200
M141.05887018585822.75909214.881300
M250.18726604475023.0534216.436400
M346.65748235416353.14845814.819200
M440.26217296696532.98095213.506500
M522.50065854035262.975857.561100
M633.28214308173692.92609311.374300
M747.03279377443643.12946415.02900
M845.96792811086192.98397915.404900
M948.51630177015772.99087916.221400
M1046.61455446498612.97068215.691500
M1149.78621794318473.06038916.267900

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & -70.0162864747521 & 23.621808 & -2.9641 & 0.004797 & 0.002398 \tabularnewline
mannen & -1.81003827719032 & 1.174195 & -1.5415 & 0.130044 & 0.065022 \tabularnewline
vrouwen & 4.08858284192562 & 1.020707 & 4.0056 & 0.000224 & 0.000112 \tabularnewline
voeding & 0.77967992895012 & 0.127917 & 6.0952 & 0 & 0 \tabularnewline
M1 & 41.0588701858582 & 2.759092 & 14.8813 & 0 & 0 \tabularnewline
M2 & 50.1872660447502 & 3.05342 & 16.4364 & 0 & 0 \tabularnewline
M3 & 46.6574823541635 & 3.148458 & 14.8192 & 0 & 0 \tabularnewline
M4 & 40.2621729669653 & 2.980952 & 13.5065 & 0 & 0 \tabularnewline
M5 & 22.5006585403526 & 2.97585 & 7.5611 & 0 & 0 \tabularnewline
M6 & 33.2821430817369 & 2.926093 & 11.3743 & 0 & 0 \tabularnewline
M7 & 47.0327937744364 & 3.129464 & 15.029 & 0 & 0 \tabularnewline
M8 & 45.9679281108619 & 2.983979 & 15.4049 & 0 & 0 \tabularnewline
M9 & 48.5163017701577 & 2.990879 & 16.2214 & 0 & 0 \tabularnewline
M10 & 46.6145544649861 & 2.970682 & 15.6915 & 0 & 0 \tabularnewline
M11 & 49.7862179431847 & 3.060389 & 16.2679 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58029&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]-70.0162864747521[/C][C]23.621808[/C][C]-2.9641[/C][C]0.004797[/C][C]0.002398[/C][/ROW]
[ROW][C]mannen[/C][C]-1.81003827719032[/C][C]1.174195[/C][C]-1.5415[/C][C]0.130044[/C][C]0.065022[/C][/ROW]
[ROW][C]vrouwen[/C][C]4.08858284192562[/C][C]1.020707[/C][C]4.0056[/C][C]0.000224[/C][C]0.000112[/C][/ROW]
[ROW][C]voeding[/C][C]0.77967992895012[/C][C]0.127917[/C][C]6.0952[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]41.0588701858582[/C][C]2.759092[/C][C]14.8813[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]50.1872660447502[/C][C]3.05342[/C][C]16.4364[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]46.6574823541635[/C][C]3.148458[/C][C]14.8192[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]40.2621729669653[/C][C]2.980952[/C][C]13.5065[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]22.5006585403526[/C][C]2.97585[/C][C]7.5611[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]33.2821430817369[/C][C]2.926093[/C][C]11.3743[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]47.0327937744364[/C][C]3.129464[/C][C]15.029[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]45.9679281108619[/C][C]2.983979[/C][C]15.4049[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]48.5163017701577[/C][C]2.990879[/C][C]16.2214[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]46.6145544649861[/C][C]2.970682[/C][C]15.6915[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]49.7862179431847[/C][C]3.060389[/C][C]16.2679[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58029&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-70.016286474752123.621808-2.96410.0047970.002398
mannen-1.810038277190321.174195-1.54150.1300440.065022
vrouwen4.088582841925621.0207074.00560.0002240.000112
voeding0.779679928950120.1279176.095200
M141.05887018585822.75909214.881300
M250.18726604475023.0534216.436400
M346.65748235416353.14845814.819200
M440.26217296696532.98095213.506500
M522.50065854035262.975857.561100
M633.28214308173692.92609311.374300
M747.03279377443643.12946415.02900
M845.96792811086192.98397915.404900
M948.51630177015772.99087916.221400
M1046.61455446498612.97068215.691500
M1149.78621794318473.06038916.267900







Multiple Linear Regression - Regression Statistics
Multiple R0.9697721793007
R-squared0.940458079745629
Adjusted R-squared0.922336625755168
F-TEST (value)51.8974956557398
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.53557743700298
Sum Squared Residuals946.287283604322

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.9697721793007 \tabularnewline
R-squared & 0.940458079745629 \tabularnewline
Adjusted R-squared & 0.922336625755168 \tabularnewline
F-TEST (value) & 51.8974956557398 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.53557743700298 \tabularnewline
Sum Squared Residuals & 946.287283604322 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58029&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.9697721793007[/C][/ROW]
[ROW][C]R-squared[/C][C]0.940458079745629[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.922336625755168[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]51.8974956557398[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4.53557743700298[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]946.287283604322[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58029&T=3

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Regression Statistics
Multiple R0.9697721793007
R-squared0.940458079745629
Adjusted R-squared0.922336625755168
F-TEST (value)51.8974956557398
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.53557743700298
Sum Squared Residuals946.287283604322







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
192.991.07782642948761.82217357051245
2107.7106.2168322244491.48316777555099
3103.596.58150220706446.91849779293564
491.189.38144504898711.71855495101289
579.875.75915352110464.04084647889543
671.976.2678813200646-4.36788132006464
782.984.2298822188159-1.32988221881588
890.193.8457618287749-3.74576182877487
9100.791.9898912465158.71010875348495
1090.790.753209579042-0.0532095790420947
11108.8107.2103940056741.58960599432583
1244.142.96016602345231.13983397654774
1393.693.40907718796040.190922812039544
14107.4105.7509189811041.64908101889611
1596.596.29746254452130.202537455478688
1693.693.53553145924820.0644685407517947
1776.574.96321973954491.53678026045513
1876.779.170325035819-2.47032503581908
198485.5539477569525-1.55394775695253
20103.398.95309213241524.34690786758483
2188.591.2848942553565-2.78489425535646
229998.34393719889520.656062801104748
23105.9107.459682083886-1.55968208388572
2444.747.8068012153616-3.10680121536157
259496.911238180937-2.91123818093702
26107.1105.8944067573841.20559324261649
27104.8107.272451810996-2.47245181099601
28102.597.96725884475344.53274115524659
2977.773.80631947853823.89368052146177
3085.283.91115992579641.28884007420365
3191.393.1118347215482-1.81183472154825
32106.5106.542966214234-0.0429662142343922
3392.499.4753391524318-7.07533915243175
3497.598.5923555240238-1.09235552402384
35107105.7621694266931.23783057330652
3651.149.16074898441931.93925101558071
3798.691.05132949711077.54867050288932
38102.2103.907325503432-1.70732550343224
39114.3111.7859366174462.51406338255376
4099.4100.812298436268-1.41229843626787
4172.573.4444670309592-0.944467030959206
4292.385.26044851372117.03955148627891
4399.492.62290355815826.77709644184178
4485.991.6541544541132-5.75415445411318
45109.4100.4581161116448.94188388835553
4697.694.73680690770032.86319309229971
47104.7101.7783619257582.92163807424216
4856.956.66227932003740.237720679962593
4986.788.6230924260253-1.92309242602527
50108.5111.130516533631-2.63051653363135
51103.4110.562646819972-7.16264681997208
5286.291.1034662107434-4.90346621074342
537179.5268402298531-8.52684022985312
5475.977.3901852045989-1.49018520459884
5587.189.1814317445251-2.08143174452512
5610296.80402537046245.19597462953761
5788.596.2917592340523-7.79175923405226
5887.890.1736907903385-2.37369079033852
59100.8104.989392557989-4.18939255798879
6050.650.8100044567295-0.210004456729456
6185.990.627436278479-4.72743627847903

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 92.9 & 91.0778264294876 & 1.82217357051245 \tabularnewline
2 & 107.7 & 106.216832224449 & 1.48316777555099 \tabularnewline
3 & 103.5 & 96.5815022070644 & 6.91849779293564 \tabularnewline
4 & 91.1 & 89.3814450489871 & 1.71855495101289 \tabularnewline
5 & 79.8 & 75.7591535211046 & 4.04084647889543 \tabularnewline
6 & 71.9 & 76.2678813200646 & -4.36788132006464 \tabularnewline
7 & 82.9 & 84.2298822188159 & -1.32988221881588 \tabularnewline
8 & 90.1 & 93.8457618287749 & -3.74576182877487 \tabularnewline
9 & 100.7 & 91.989891246515 & 8.71010875348495 \tabularnewline
10 & 90.7 & 90.753209579042 & -0.0532095790420947 \tabularnewline
11 & 108.8 & 107.210394005674 & 1.58960599432583 \tabularnewline
12 & 44.1 & 42.9601660234523 & 1.13983397654774 \tabularnewline
13 & 93.6 & 93.4090771879604 & 0.190922812039544 \tabularnewline
14 & 107.4 & 105.750918981104 & 1.64908101889611 \tabularnewline
15 & 96.5 & 96.2974625445213 & 0.202537455478688 \tabularnewline
16 & 93.6 & 93.5355314592482 & 0.0644685407517947 \tabularnewline
17 & 76.5 & 74.9632197395449 & 1.53678026045513 \tabularnewline
18 & 76.7 & 79.170325035819 & -2.47032503581908 \tabularnewline
19 & 84 & 85.5539477569525 & -1.55394775695253 \tabularnewline
20 & 103.3 & 98.9530921324152 & 4.34690786758483 \tabularnewline
21 & 88.5 & 91.2848942553565 & -2.78489425535646 \tabularnewline
22 & 99 & 98.3439371988952 & 0.656062801104748 \tabularnewline
23 & 105.9 & 107.459682083886 & -1.55968208388572 \tabularnewline
24 & 44.7 & 47.8068012153616 & -3.10680121536157 \tabularnewline
25 & 94 & 96.911238180937 & -2.91123818093702 \tabularnewline
26 & 107.1 & 105.894406757384 & 1.20559324261649 \tabularnewline
27 & 104.8 & 107.272451810996 & -2.47245181099601 \tabularnewline
28 & 102.5 & 97.9672588447534 & 4.53274115524659 \tabularnewline
29 & 77.7 & 73.8063194785382 & 3.89368052146177 \tabularnewline
30 & 85.2 & 83.9111599257964 & 1.28884007420365 \tabularnewline
31 & 91.3 & 93.1118347215482 & -1.81183472154825 \tabularnewline
32 & 106.5 & 106.542966214234 & -0.0429662142343922 \tabularnewline
33 & 92.4 & 99.4753391524318 & -7.07533915243175 \tabularnewline
34 & 97.5 & 98.5923555240238 & -1.09235552402384 \tabularnewline
35 & 107 & 105.762169426693 & 1.23783057330652 \tabularnewline
36 & 51.1 & 49.1607489844193 & 1.93925101558071 \tabularnewline
37 & 98.6 & 91.0513294971107 & 7.54867050288932 \tabularnewline
38 & 102.2 & 103.907325503432 & -1.70732550343224 \tabularnewline
39 & 114.3 & 111.785936617446 & 2.51406338255376 \tabularnewline
40 & 99.4 & 100.812298436268 & -1.41229843626787 \tabularnewline
41 & 72.5 & 73.4444670309592 & -0.944467030959206 \tabularnewline
42 & 92.3 & 85.2604485137211 & 7.03955148627891 \tabularnewline
43 & 99.4 & 92.6229035581582 & 6.77709644184178 \tabularnewline
44 & 85.9 & 91.6541544541132 & -5.75415445411318 \tabularnewline
45 & 109.4 & 100.458116111644 & 8.94188388835553 \tabularnewline
46 & 97.6 & 94.7368069077003 & 2.86319309229971 \tabularnewline
47 & 104.7 & 101.778361925758 & 2.92163807424216 \tabularnewline
48 & 56.9 & 56.6622793200374 & 0.237720679962593 \tabularnewline
49 & 86.7 & 88.6230924260253 & -1.92309242602527 \tabularnewline
50 & 108.5 & 111.130516533631 & -2.63051653363135 \tabularnewline
51 & 103.4 & 110.562646819972 & -7.16264681997208 \tabularnewline
52 & 86.2 & 91.1034662107434 & -4.90346621074342 \tabularnewline
53 & 71 & 79.5268402298531 & -8.52684022985312 \tabularnewline
54 & 75.9 & 77.3901852045989 & -1.49018520459884 \tabularnewline
55 & 87.1 & 89.1814317445251 & -2.08143174452512 \tabularnewline
56 & 102 & 96.8040253704624 & 5.19597462953761 \tabularnewline
57 & 88.5 & 96.2917592340523 & -7.79175923405226 \tabularnewline
58 & 87.8 & 90.1736907903385 & -2.37369079033852 \tabularnewline
59 & 100.8 & 104.989392557989 & -4.18939255798879 \tabularnewline
60 & 50.6 & 50.8100044567295 & -0.210004456729456 \tabularnewline
61 & 85.9 & 90.627436278479 & -4.72743627847903 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58029&T=4

[TABLE]
[ROW][C]Multiple Linear Regression - Actuals, Interpolation, and Residuals[/C][/ROW]
[ROW][C]Time or Index[/C][C]Actuals[/C][C]InterpolationForecast[/C][C]ResidualsPrediction Error[/C][/ROW]
[ROW][C]1[/C][C]92.9[/C][C]91.0778264294876[/C][C]1.82217357051245[/C][/ROW]
[ROW][C]2[/C][C]107.7[/C][C]106.216832224449[/C][C]1.48316777555099[/C][/ROW]
[ROW][C]3[/C][C]103.5[/C][C]96.5815022070644[/C][C]6.91849779293564[/C][/ROW]
[ROW][C]4[/C][C]91.1[/C][C]89.3814450489871[/C][C]1.71855495101289[/C][/ROW]
[ROW][C]5[/C][C]79.8[/C][C]75.7591535211046[/C][C]4.04084647889543[/C][/ROW]
[ROW][C]6[/C][C]71.9[/C][C]76.2678813200646[/C][C]-4.36788132006464[/C][/ROW]
[ROW][C]7[/C][C]82.9[/C][C]84.2298822188159[/C][C]-1.32988221881588[/C][/ROW]
[ROW][C]8[/C][C]90.1[/C][C]93.8457618287749[/C][C]-3.74576182877487[/C][/ROW]
[ROW][C]9[/C][C]100.7[/C][C]91.989891246515[/C][C]8.71010875348495[/C][/ROW]
[ROW][C]10[/C][C]90.7[/C][C]90.753209579042[/C][C]-0.0532095790420947[/C][/ROW]
[ROW][C]11[/C][C]108.8[/C][C]107.210394005674[/C][C]1.58960599432583[/C][/ROW]
[ROW][C]12[/C][C]44.1[/C][C]42.9601660234523[/C][C]1.13983397654774[/C][/ROW]
[ROW][C]13[/C][C]93.6[/C][C]93.4090771879604[/C][C]0.190922812039544[/C][/ROW]
[ROW][C]14[/C][C]107.4[/C][C]105.750918981104[/C][C]1.64908101889611[/C][/ROW]
[ROW][C]15[/C][C]96.5[/C][C]96.2974625445213[/C][C]0.202537455478688[/C][/ROW]
[ROW][C]16[/C][C]93.6[/C][C]93.5355314592482[/C][C]0.0644685407517947[/C][/ROW]
[ROW][C]17[/C][C]76.5[/C][C]74.9632197395449[/C][C]1.53678026045513[/C][/ROW]
[ROW][C]18[/C][C]76.7[/C][C]79.170325035819[/C][C]-2.47032503581908[/C][/ROW]
[ROW][C]19[/C][C]84[/C][C]85.5539477569525[/C][C]-1.55394775695253[/C][/ROW]
[ROW][C]20[/C][C]103.3[/C][C]98.9530921324152[/C][C]4.34690786758483[/C][/ROW]
[ROW][C]21[/C][C]88.5[/C][C]91.2848942553565[/C][C]-2.78489425535646[/C][/ROW]
[ROW][C]22[/C][C]99[/C][C]98.3439371988952[/C][C]0.656062801104748[/C][/ROW]
[ROW][C]23[/C][C]105.9[/C][C]107.459682083886[/C][C]-1.55968208388572[/C][/ROW]
[ROW][C]24[/C][C]44.7[/C][C]47.8068012153616[/C][C]-3.10680121536157[/C][/ROW]
[ROW][C]25[/C][C]94[/C][C]96.911238180937[/C][C]-2.91123818093702[/C][/ROW]
[ROW][C]26[/C][C]107.1[/C][C]105.894406757384[/C][C]1.20559324261649[/C][/ROW]
[ROW][C]27[/C][C]104.8[/C][C]107.272451810996[/C][C]-2.47245181099601[/C][/ROW]
[ROW][C]28[/C][C]102.5[/C][C]97.9672588447534[/C][C]4.53274115524659[/C][/ROW]
[ROW][C]29[/C][C]77.7[/C][C]73.8063194785382[/C][C]3.89368052146177[/C][/ROW]
[ROW][C]30[/C][C]85.2[/C][C]83.9111599257964[/C][C]1.28884007420365[/C][/ROW]
[ROW][C]31[/C][C]91.3[/C][C]93.1118347215482[/C][C]-1.81183472154825[/C][/ROW]
[ROW][C]32[/C][C]106.5[/C][C]106.542966214234[/C][C]-0.0429662142343922[/C][/ROW]
[ROW][C]33[/C][C]92.4[/C][C]99.4753391524318[/C][C]-7.07533915243175[/C][/ROW]
[ROW][C]34[/C][C]97.5[/C][C]98.5923555240238[/C][C]-1.09235552402384[/C][/ROW]
[ROW][C]35[/C][C]107[/C][C]105.762169426693[/C][C]1.23783057330652[/C][/ROW]
[ROW][C]36[/C][C]51.1[/C][C]49.1607489844193[/C][C]1.93925101558071[/C][/ROW]
[ROW][C]37[/C][C]98.6[/C][C]91.0513294971107[/C][C]7.54867050288932[/C][/ROW]
[ROW][C]38[/C][C]102.2[/C][C]103.907325503432[/C][C]-1.70732550343224[/C][/ROW]
[ROW][C]39[/C][C]114.3[/C][C]111.785936617446[/C][C]2.51406338255376[/C][/ROW]
[ROW][C]40[/C][C]99.4[/C][C]100.812298436268[/C][C]-1.41229843626787[/C][/ROW]
[ROW][C]41[/C][C]72.5[/C][C]73.4444670309592[/C][C]-0.944467030959206[/C][/ROW]
[ROW][C]42[/C][C]92.3[/C][C]85.2604485137211[/C][C]7.03955148627891[/C][/ROW]
[ROW][C]43[/C][C]99.4[/C][C]92.6229035581582[/C][C]6.77709644184178[/C][/ROW]
[ROW][C]44[/C][C]85.9[/C][C]91.6541544541132[/C][C]-5.75415445411318[/C][/ROW]
[ROW][C]45[/C][C]109.4[/C][C]100.458116111644[/C][C]8.94188388835553[/C][/ROW]
[ROW][C]46[/C][C]97.6[/C][C]94.7368069077003[/C][C]2.86319309229971[/C][/ROW]
[ROW][C]47[/C][C]104.7[/C][C]101.778361925758[/C][C]2.92163807424216[/C][/ROW]
[ROW][C]48[/C][C]56.9[/C][C]56.6622793200374[/C][C]0.237720679962593[/C][/ROW]
[ROW][C]49[/C][C]86.7[/C][C]88.6230924260253[/C][C]-1.92309242602527[/C][/ROW]
[ROW][C]50[/C][C]108.5[/C][C]111.130516533631[/C][C]-2.63051653363135[/C][/ROW]
[ROW][C]51[/C][C]103.4[/C][C]110.562646819972[/C][C]-7.16264681997208[/C][/ROW]
[ROW][C]52[/C][C]86.2[/C][C]91.1034662107434[/C][C]-4.90346621074342[/C][/ROW]
[ROW][C]53[/C][C]71[/C][C]79.5268402298531[/C][C]-8.52684022985312[/C][/ROW]
[ROW][C]54[/C][C]75.9[/C][C]77.3901852045989[/C][C]-1.49018520459884[/C][/ROW]
[ROW][C]55[/C][C]87.1[/C][C]89.1814317445251[/C][C]-2.08143174452512[/C][/ROW]
[ROW][C]56[/C][C]102[/C][C]96.8040253704624[/C][C]5.19597462953761[/C][/ROW]
[ROW][C]57[/C][C]88.5[/C][C]96.2917592340523[/C][C]-7.79175923405226[/C][/ROW]
[ROW][C]58[/C][C]87.8[/C][C]90.1736907903385[/C][C]-2.37369079033852[/C][/ROW]
[ROW][C]59[/C][C]100.8[/C][C]104.989392557989[/C][C]-4.18939255798879[/C][/ROW]
[ROW][C]60[/C][C]50.6[/C][C]50.8100044567295[/C][C]-0.210004456729456[/C][/ROW]
[ROW][C]61[/C][C]85.9[/C][C]90.627436278479[/C][C]-4.72743627847903[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58029&T=4

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
192.991.07782642948761.82217357051245
2107.7106.2168322244491.48316777555099
3103.596.58150220706446.91849779293564
491.189.38144504898711.71855495101289
579.875.75915352110464.04084647889543
671.976.2678813200646-4.36788132006464
782.984.2298822188159-1.32988221881588
890.193.8457618287749-3.74576182877487
9100.791.9898912465158.71010875348495
1090.790.753209579042-0.0532095790420947
11108.8107.2103940056741.58960599432583
1244.142.96016602345231.13983397654774
1393.693.40907718796040.190922812039544
14107.4105.7509189811041.64908101889611
1596.596.29746254452130.202537455478688
1693.693.53553145924820.0644685407517947
1776.574.96321973954491.53678026045513
1876.779.170325035819-2.47032503581908
198485.5539477569525-1.55394775695253
20103.398.95309213241524.34690786758483
2188.591.2848942553565-2.78489425535646
229998.34393719889520.656062801104748
23105.9107.459682083886-1.55968208388572
2444.747.8068012153616-3.10680121536157
259496.911238180937-2.91123818093702
26107.1105.8944067573841.20559324261649
27104.8107.272451810996-2.47245181099601
28102.597.96725884475344.53274115524659
2977.773.80631947853823.89368052146177
3085.283.91115992579641.28884007420365
3191.393.1118347215482-1.81183472154825
32106.5106.542966214234-0.0429662142343922
3392.499.4753391524318-7.07533915243175
3497.598.5923555240238-1.09235552402384
35107105.7621694266931.23783057330652
3651.149.16074898441931.93925101558071
3798.691.05132949711077.54867050288932
38102.2103.907325503432-1.70732550343224
39114.3111.7859366174462.51406338255376
4099.4100.812298436268-1.41229843626787
4172.573.4444670309592-0.944467030959206
4292.385.26044851372117.03955148627891
4399.492.62290355815826.77709644184178
4485.991.6541544541132-5.75415445411318
45109.4100.4581161116448.94188388835553
4697.694.73680690770032.86319309229971
47104.7101.7783619257582.92163807424216
4856.956.66227932003740.237720679962593
4986.788.6230924260253-1.92309242602527
50108.5111.130516533631-2.63051653363135
51103.4110.562646819972-7.16264681997208
5286.291.1034662107434-4.90346621074342
537179.5268402298531-8.52684022985312
5475.977.3901852045989-1.49018520459884
5587.189.1814317445251-2.08143174452512
5610296.80402537046245.19597462953761
5788.596.2917592340523-7.79175923405226
5887.890.1736907903385-2.37369079033852
59100.8104.989392557989-4.18939255798879
6050.650.8100044567295-0.210004456729456
6185.990.627436278479-4.72743627847903







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.2588260784919890.5176521569839790.74117392150801
190.1314779417789360.2629558835578710.868522058221064
200.1709562248858990.3419124497717980.829043775114101
210.365955504485180.731911008970360.63404449551482
220.3160451658316470.6320903316632940.683954834168353
230.242291384591190.484582769182380.75770861540881
240.1981986525881750.3963973051763490.801801347411825
250.1366260730867710.2732521461735430.863373926913229
260.1024613139152490.2049226278304990.89753868608475
270.08685475818646240.1737095163729250.913145241813538
280.1336988677025270.2673977354050550.866301132297473
290.2196701311506460.4393402623012930.780329868849354
300.2132718653053810.4265437306107630.786728134694619
310.1459189581540560.2918379163081120.854081041845944
320.0951354543700880.1902709087401760.904864545629912
330.1305496581285910.2610993162571810.86945034187141
340.08511567446417540.1702313489283510.914884325535825
350.05170278121569780.1034055624313960.948297218784302
360.02930997034333470.05861994068666930.970690029656665
370.02971330483458310.05942660966916630.970286695165417
380.02658809465896490.05317618931792980.973411905341035
390.03581727475361580.07163454950723160.964182725246384
400.0205608559923170.0411217119846340.979439144007683
410.05027196628188830.1005439325637770.949728033718112
420.03743779270380720.07487558540761430.962562207296193
430.02318781878679070.04637563757358150.97681218121321

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.258826078491989 & 0.517652156983979 & 0.74117392150801 \tabularnewline
19 & 0.131477941778936 & 0.262955883557871 & 0.868522058221064 \tabularnewline
20 & 0.170956224885899 & 0.341912449771798 & 0.829043775114101 \tabularnewline
21 & 0.36595550448518 & 0.73191100897036 & 0.63404449551482 \tabularnewline
22 & 0.316045165831647 & 0.632090331663294 & 0.683954834168353 \tabularnewline
23 & 0.24229138459119 & 0.48458276918238 & 0.75770861540881 \tabularnewline
24 & 0.198198652588175 & 0.396397305176349 & 0.801801347411825 \tabularnewline
25 & 0.136626073086771 & 0.273252146173543 & 0.863373926913229 \tabularnewline
26 & 0.102461313915249 & 0.204922627830499 & 0.89753868608475 \tabularnewline
27 & 0.0868547581864624 & 0.173709516372925 & 0.913145241813538 \tabularnewline
28 & 0.133698867702527 & 0.267397735405055 & 0.866301132297473 \tabularnewline
29 & 0.219670131150646 & 0.439340262301293 & 0.780329868849354 \tabularnewline
30 & 0.213271865305381 & 0.426543730610763 & 0.786728134694619 \tabularnewline
31 & 0.145918958154056 & 0.291837916308112 & 0.854081041845944 \tabularnewline
32 & 0.095135454370088 & 0.190270908740176 & 0.904864545629912 \tabularnewline
33 & 0.130549658128591 & 0.261099316257181 & 0.86945034187141 \tabularnewline
34 & 0.0851156744641754 & 0.170231348928351 & 0.914884325535825 \tabularnewline
35 & 0.0517027812156978 & 0.103405562431396 & 0.948297218784302 \tabularnewline
36 & 0.0293099703433347 & 0.0586199406866693 & 0.970690029656665 \tabularnewline
37 & 0.0297133048345831 & 0.0594266096691663 & 0.970286695165417 \tabularnewline
38 & 0.0265880946589649 & 0.0531761893179298 & 0.973411905341035 \tabularnewline
39 & 0.0358172747536158 & 0.0716345495072316 & 0.964182725246384 \tabularnewline
40 & 0.020560855992317 & 0.041121711984634 & 0.979439144007683 \tabularnewline
41 & 0.0502719662818883 & 0.100543932563777 & 0.949728033718112 \tabularnewline
42 & 0.0374377927038072 & 0.0748755854076143 & 0.962562207296193 \tabularnewline
43 & 0.0231878187867907 & 0.0463756375735815 & 0.97681218121321 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58029&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]18[/C][C]0.258826078491989[/C][C]0.517652156983979[/C][C]0.74117392150801[/C][/ROW]
[ROW][C]19[/C][C]0.131477941778936[/C][C]0.262955883557871[/C][C]0.868522058221064[/C][/ROW]
[ROW][C]20[/C][C]0.170956224885899[/C][C]0.341912449771798[/C][C]0.829043775114101[/C][/ROW]
[ROW][C]21[/C][C]0.36595550448518[/C][C]0.73191100897036[/C][C]0.63404449551482[/C][/ROW]
[ROW][C]22[/C][C]0.316045165831647[/C][C]0.632090331663294[/C][C]0.683954834168353[/C][/ROW]
[ROW][C]23[/C][C]0.24229138459119[/C][C]0.48458276918238[/C][C]0.75770861540881[/C][/ROW]
[ROW][C]24[/C][C]0.198198652588175[/C][C]0.396397305176349[/C][C]0.801801347411825[/C][/ROW]
[ROW][C]25[/C][C]0.136626073086771[/C][C]0.273252146173543[/C][C]0.863373926913229[/C][/ROW]
[ROW][C]26[/C][C]0.102461313915249[/C][C]0.204922627830499[/C][C]0.89753868608475[/C][/ROW]
[ROW][C]27[/C][C]0.0868547581864624[/C][C]0.173709516372925[/C][C]0.913145241813538[/C][/ROW]
[ROW][C]28[/C][C]0.133698867702527[/C][C]0.267397735405055[/C][C]0.866301132297473[/C][/ROW]
[ROW][C]29[/C][C]0.219670131150646[/C][C]0.439340262301293[/C][C]0.780329868849354[/C][/ROW]
[ROW][C]30[/C][C]0.213271865305381[/C][C]0.426543730610763[/C][C]0.786728134694619[/C][/ROW]
[ROW][C]31[/C][C]0.145918958154056[/C][C]0.291837916308112[/C][C]0.854081041845944[/C][/ROW]
[ROW][C]32[/C][C]0.095135454370088[/C][C]0.190270908740176[/C][C]0.904864545629912[/C][/ROW]
[ROW][C]33[/C][C]0.130549658128591[/C][C]0.261099316257181[/C][C]0.86945034187141[/C][/ROW]
[ROW][C]34[/C][C]0.0851156744641754[/C][C]0.170231348928351[/C][C]0.914884325535825[/C][/ROW]
[ROW][C]35[/C][C]0.0517027812156978[/C][C]0.103405562431396[/C][C]0.948297218784302[/C][/ROW]
[ROW][C]36[/C][C]0.0293099703433347[/C][C]0.0586199406866693[/C][C]0.970690029656665[/C][/ROW]
[ROW][C]37[/C][C]0.0297133048345831[/C][C]0.0594266096691663[/C][C]0.970286695165417[/C][/ROW]
[ROW][C]38[/C][C]0.0265880946589649[/C][C]0.0531761893179298[/C][C]0.973411905341035[/C][/ROW]
[ROW][C]39[/C][C]0.0358172747536158[/C][C]0.0716345495072316[/C][C]0.964182725246384[/C][/ROW]
[ROW][C]40[/C][C]0.020560855992317[/C][C]0.041121711984634[/C][C]0.979439144007683[/C][/ROW]
[ROW][C]41[/C][C]0.0502719662818883[/C][C]0.100543932563777[/C][C]0.949728033718112[/C][/ROW]
[ROW][C]42[/C][C]0.0374377927038072[/C][C]0.0748755854076143[/C][C]0.962562207296193[/C][/ROW]
[ROW][C]43[/C][C]0.0231878187867907[/C][C]0.0463756375735815[/C][C]0.97681218121321[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58029&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.2588260784919890.5176521569839790.74117392150801
190.1314779417789360.2629558835578710.868522058221064
200.1709562248858990.3419124497717980.829043775114101
210.365955504485180.731911008970360.63404449551482
220.3160451658316470.6320903316632940.683954834168353
230.242291384591190.484582769182380.75770861540881
240.1981986525881750.3963973051763490.801801347411825
250.1366260730867710.2732521461735430.863373926913229
260.1024613139152490.2049226278304990.89753868608475
270.08685475818646240.1737095163729250.913145241813538
280.1336988677025270.2673977354050550.866301132297473
290.2196701311506460.4393402623012930.780329868849354
300.2132718653053810.4265437306107630.786728134694619
310.1459189581540560.2918379163081120.854081041845944
320.0951354543700880.1902709087401760.904864545629912
330.1305496581285910.2610993162571810.86945034187141
340.08511567446417540.1702313489283510.914884325535825
350.05170278121569780.1034055624313960.948297218784302
360.02930997034333470.05861994068666930.970690029656665
370.02971330483458310.05942660966916630.970286695165417
380.02658809465896490.05317618931792980.973411905341035
390.03581727475361580.07163454950723160.964182725246384
400.0205608559923170.0411217119846340.979439144007683
410.05027196628188830.1005439325637770.949728033718112
420.03743779270380720.07487558540761430.962562207296193
430.02318781878679070.04637563757358150.97681218121321







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.0769230769230769NOK
10% type I error level70.269230769230769NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 2 & 0.0769230769230769 & NOK \tabularnewline
10% type I error level & 7 & 0.269230769230769 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58029&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]2[/C][C]0.0769230769230769[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]7[/C][C]0.269230769230769[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58029&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.0769230769230769NOK
10% type I error level70.269230769230769NOK



Parameters (Session):
par1 = 4 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 4 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}