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 computationThu, 03 Feb 2011 11:05:16 +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/2011/Feb/03/t12967327677r04z1co01m7o8n.htm/, Retrieved Sun, 19 May 2024 14:15:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=118038, Retrieved Sun, 19 May 2024 14:15:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact170
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2011-02-03 11:05:16] [ff423994c38282a6d306f7d0147a5924] [Current]
Feedback Forum

Post a new message
Dataseries X:
5393	552486	3.90	3.0	628232
5147	516610	3.90	2.2	612117
4846	487587	3.88	2.3	595404
3995	403620	3.89	2.8	597141
4491	459427	3.89	2.8	593408
4676	473058	3.93	2.8	590072
5461	583054	3.94	2.2	579799
4758	509448	3.97	2.6	574205
5302	551582	4.00	2.8	572775
5066	524752	4.04	2.5	572942
3491	370725	4.18	2.4	619567
4944	531443	4.32	2.3	625809
5148	537833	4.37	1.9	619916
5351	551410	4.40	1.7	587625
5178	520983	4.38	2.0	565742
4025	395542	4.36	2.1	557274
4449	442878	4.36	1.7	560576
4594	454919	4.40	1.8	548854
4603	488905	4.41	1.8	531673
4911	496085	4.43	1.8	525919
5236	540146	4.42	1.3	511038
4652	496529	4.46	1.3	498662
3479	372656	4.61	1.3	555362
4556	486704	4.78	1.2	564591
4815	495334	4.88	1.4	541657
4949	504697	4.95	2.2	527070
4499	464856	4.95	2.9	509846
3865	388472	4.93	3.1	514258
3657	377508	4.93	3.5	516922
4814	468895	4.91	3.6	507561
4614	471295	4.88	4.4	492622
4539	482956	4.83	4.1	490243
4492	483404	4.83	5.1	469357
4779	495548	4.85	5.8	477580
3193	333806	4.99	5.9	528379
3894	411611	5.14	5.4	533590
4531	496215	5.26	5.5	517945
4008	433542	5.33	4.8	506174
3764	409819	5.28	3.2	501866
3290	339270	4.99	2.7	516141
3644	365092	4.75	2.1	528222
3438	387851	4.63	1.9	532638
3833	408171	4.52	0.6	536322
3922	427587	4.50	0.7	536535
3524	377805	4.48	-0.2	523597
3493	376222	4.49	-1.0	536214
2814	300606	4.57	-1.7	586570
3899	424611	4.64	-0.7	596594
3653	404393	4.62	-1.0	580523
3969	422701	4.55	-0.9	564478
3427	369704	4.47	0.0	557560
3067	320685	4.43	0.3	575093
3301	344674	4.45	0.8	580112
3211	319302	4.41	0.8	574761
3382	368391	4.32	1.9	563250
3613	395375	4.24	2.1	551531
3783	420926	4.16	2.5	537034
3971	434358	4.03	2.7	544686
2842	315828	4.01	2.4	600991
4161	451722	3.98	2.4	604378




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 5 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118038&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118038&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118038&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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
Nieuwe_woningen[t] = + 844.662452502211 + 0.00979992211956494Bewoonbare_opp[t] -59.3550515481143Rentevoet[t] -6.8793584211157Inflatie[t] -0.00111650716825730Werkloosheid[t] + 17.0236839023143M1[t] + 89.6819626476742M2[t] + 79.962177561074M3[t] + 186.938946390054M4[t] + 173.949222694486M5[t] + 184.728747211172M6[t] -16.1847742968401M7[t] -32.3202345478152M8[t] -47.2131196851659M9[t] -24.4999930800091M10[t] + 55.7297902008376M11[t] -3.74058747559312t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Nieuwe_woningen[t] =  +  844.662452502211 +  0.00979992211956494Bewoonbare_opp[t] -59.3550515481143Rentevoet[t] -6.8793584211157Inflatie[t] -0.00111650716825730Werkloosheid[t] +  17.0236839023143M1[t] +  89.6819626476742M2[t] +  79.962177561074M3[t] +  186.938946390054M4[t] +  173.949222694486M5[t] +  184.728747211172M6[t] -16.1847742968401M7[t] -32.3202345478152M8[t] -47.2131196851659M9[t] -24.4999930800091M10[t] +  55.7297902008376M11[t] -3.74058747559312t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118038&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Nieuwe_woningen[t] =  +  844.662452502211 +  0.00979992211956494Bewoonbare_opp[t] -59.3550515481143Rentevoet[t] -6.8793584211157Inflatie[t] -0.00111650716825730Werkloosheid[t] +  17.0236839023143M1[t] +  89.6819626476742M2[t] +  79.962177561074M3[t] +  186.938946390054M4[t] +  173.949222694486M5[t] +  184.728747211172M6[t] -16.1847742968401M7[t] -32.3202345478152M8[t] -47.2131196851659M9[t] -24.4999930800091M10[t] +  55.7297902008376M11[t] -3.74058747559312t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118038&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118038&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
Nieuwe_woningen[t] = + 844.662452502211 + 0.00979992211956494Bewoonbare_opp[t] -59.3550515481143Rentevoet[t] -6.8793584211157Inflatie[t] -0.00111650716825730Werkloosheid[t] + 17.0236839023143M1[t] + 89.6819626476742M2[t] + 79.962177561074M3[t] + 186.938946390054M4[t] + 173.949222694486M5[t] + 184.728747211172M6[t] -16.1847742968401M7[t] -32.3202345478152M8[t] -47.2131196851659M9[t] -24.4999930800091M10[t] + 55.7297902008376M11[t] -3.74058747559312t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)844.6624525022111439.6183440.58670.5604550.280228
Bewoonbare_opp0.009799922119564940.00060116.296200
Rentevoet-59.3550515481143117.302948-0.5060.6154420.307721
Inflatie-6.879358421115710.986697-0.62620.5345240.267262
Werkloosheid-0.001116507168257300.001364-0.81870.4174710.208735
M117.023683902314370.3918540.24180.8100530.405026
M289.681962647674276.1606931.17750.2454580.122729
M379.96217756107491.6461860.87250.3877770.193888
M4186.938946390054116.8643171.59960.1170050.058502
M5173.949222694486104.7503211.66060.1040680.052034
M6184.728747211172102.3040921.80570.0779720.038986
M7-16.1847742968401105.295035-0.15370.8785580.439279
M8-32.3202345478152111.930805-0.28880.7741590.387079
M9-47.2131196851659125.487848-0.37620.7085910.354296
M10-24.4999930800091123.11905-0.1990.8432050.421603
M1155.7297902008376108.0745980.51570.6087330.304366
t-3.740587475593121.778528-2.10320.0413380.020669

\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) & 844.662452502211 & 1439.618344 & 0.5867 & 0.560455 & 0.280228 \tabularnewline
Bewoonbare_opp & 0.00979992211956494 & 0.000601 & 16.2962 & 0 & 0 \tabularnewline
Rentevoet & -59.3550515481143 & 117.302948 & -0.506 & 0.615442 & 0.307721 \tabularnewline
Inflatie & -6.8793584211157 & 10.986697 & -0.6262 & 0.534524 & 0.267262 \tabularnewline
Werkloosheid & -0.00111650716825730 & 0.001364 & -0.8187 & 0.417471 & 0.208735 \tabularnewline
M1 & 17.0236839023143 & 70.391854 & 0.2418 & 0.810053 & 0.405026 \tabularnewline
M2 & 89.6819626476742 & 76.160693 & 1.1775 & 0.245458 & 0.122729 \tabularnewline
M3 & 79.962177561074 & 91.646186 & 0.8725 & 0.387777 & 0.193888 \tabularnewline
M4 & 186.938946390054 & 116.864317 & 1.5996 & 0.117005 & 0.058502 \tabularnewline
M5 & 173.949222694486 & 104.750321 & 1.6606 & 0.104068 & 0.052034 \tabularnewline
M6 & 184.728747211172 & 102.304092 & 1.8057 & 0.077972 & 0.038986 \tabularnewline
M7 & -16.1847742968401 & 105.295035 & -0.1537 & 0.878558 & 0.439279 \tabularnewline
M8 & -32.3202345478152 & 111.930805 & -0.2888 & 0.774159 & 0.387079 \tabularnewline
M9 & -47.2131196851659 & 125.487848 & -0.3762 & 0.708591 & 0.354296 \tabularnewline
M10 & -24.4999930800091 & 123.11905 & -0.199 & 0.843205 & 0.421603 \tabularnewline
M11 & 55.7297902008376 & 108.074598 & 0.5157 & 0.608733 & 0.304366 \tabularnewline
t & -3.74058747559312 & 1.778528 & -2.1032 & 0.041338 & 0.020669 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118038&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]844.662452502211[/C][C]1439.618344[/C][C]0.5867[/C][C]0.560455[/C][C]0.280228[/C][/ROW]
[ROW][C]Bewoonbare_opp[/C][C]0.00979992211956494[/C][C]0.000601[/C][C]16.2962[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Rentevoet[/C][C]-59.3550515481143[/C][C]117.302948[/C][C]-0.506[/C][C]0.615442[/C][C]0.307721[/C][/ROW]
[ROW][C]Inflatie[/C][C]-6.8793584211157[/C][C]10.986697[/C][C]-0.6262[/C][C]0.534524[/C][C]0.267262[/C][/ROW]
[ROW][C]Werkloosheid[/C][C]-0.00111650716825730[/C][C]0.001364[/C][C]-0.8187[/C][C]0.417471[/C][C]0.208735[/C][/ROW]
[ROW][C]M1[/C][C]17.0236839023143[/C][C]70.391854[/C][C]0.2418[/C][C]0.810053[/C][C]0.405026[/C][/ROW]
[ROW][C]M2[/C][C]89.6819626476742[/C][C]76.160693[/C][C]1.1775[/C][C]0.245458[/C][C]0.122729[/C][/ROW]
[ROW][C]M3[/C][C]79.962177561074[/C][C]91.646186[/C][C]0.8725[/C][C]0.387777[/C][C]0.193888[/C][/ROW]
[ROW][C]M4[/C][C]186.938946390054[/C][C]116.864317[/C][C]1.5996[/C][C]0.117005[/C][C]0.058502[/C][/ROW]
[ROW][C]M5[/C][C]173.949222694486[/C][C]104.750321[/C][C]1.6606[/C][C]0.104068[/C][C]0.052034[/C][/ROW]
[ROW][C]M6[/C][C]184.728747211172[/C][C]102.304092[/C][C]1.8057[/C][C]0.077972[/C][C]0.038986[/C][/ROW]
[ROW][C]M7[/C][C]-16.1847742968401[/C][C]105.295035[/C][C]-0.1537[/C][C]0.878558[/C][C]0.439279[/C][/ROW]
[ROW][C]M8[/C][C]-32.3202345478152[/C][C]111.930805[/C][C]-0.2888[/C][C]0.774159[/C][C]0.387079[/C][/ROW]
[ROW][C]M9[/C][C]-47.2131196851659[/C][C]125.487848[/C][C]-0.3762[/C][C]0.708591[/C][C]0.354296[/C][/ROW]
[ROW][C]M10[/C][C]-24.4999930800091[/C][C]123.11905[/C][C]-0.199[/C][C]0.843205[/C][C]0.421603[/C][/ROW]
[ROW][C]M11[/C][C]55.7297902008376[/C][C]108.074598[/C][C]0.5157[/C][C]0.608733[/C][C]0.304366[/C][/ROW]
[ROW][C]t[/C][C]-3.74058747559312[/C][C]1.778528[/C][C]-2.1032[/C][C]0.041338[/C][C]0.020669[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118038&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118038&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)844.6624525022111439.6183440.58670.5604550.280228
Bewoonbare_opp0.009799922119564940.00060116.296200
Rentevoet-59.3550515481143117.302948-0.5060.6154420.307721
Inflatie-6.879358421115710.986697-0.62620.5345240.267262
Werkloosheid-0.001116507168257300.001364-0.81870.4174710.208735
M117.023683902314370.3918540.24180.8100530.405026
M289.681962647674276.1606931.17750.2454580.122729
M379.96217756107491.6461860.87250.3877770.193888
M4186.938946390054116.8643171.59960.1170050.058502
M5173.949222694486104.7503211.66060.1040680.052034
M6184.728747211172102.3040921.80570.0779720.038986
M7-16.1847742968401105.295035-0.15370.8785580.439279
M8-32.3202345478152111.930805-0.28880.7741590.387079
M9-47.2131196851659125.487848-0.37620.7085910.354296
M10-24.4999930800091123.11905-0.1990.8432050.421603
M1155.7297902008376108.0745980.51570.6087330.304366
t-3.740587475593121.778528-2.10320.0413380.020669







Multiple Linear Regression - Regression Statistics
Multiple R0.991425201597058
R-squared0.982923930361768
Adjusted R-squared0.97657004398475
F-TEST (value)154.69649157045
F-TEST (DF numerator)16
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation109.145148933887
Sum Squared Residuals512244.532039412

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.991425201597058 \tabularnewline
R-squared & 0.982923930361768 \tabularnewline
Adjusted R-squared & 0.97657004398475 \tabularnewline
F-TEST (value) & 154.69649157045 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 43 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 109.145148933887 \tabularnewline
Sum Squared Residuals & 512244.532039412 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118038&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.991425201597058[/C][/ROW]
[ROW][C]R-squared[/C][C]0.982923930361768[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.97657004398475[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]154.69649157045[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]43[/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]109.145148933887[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]512244.532039412[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118038&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118038&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.991425201597058
R-squared0.982923930361768
Adjusted R-squared0.97657004398475
F-TEST (value)154.69649157045
F-TEST (DF numerator)16
F-TEST (DF denominator)43
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation109.145148933887
Sum Squared Residuals512244.532039412







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
153935318.7170134492874.2829865507232
251475059.5486985108987.4513014891109
348464780.824535764565.1754642355025
439954055.21805382707-60.2180538270727
544914589.55991764158-98.5599176415771
646764731.53205894584-55.5320589458413
754615619.8341261026-158.834126102597
847584880.33835702767-122.338357027674
953025273.0548850204228.9451149795796
1050665028.5986624493737.4013375506321
1134913535.95633584977-44.9563358497706
1249445036.91883226669-92.9188322666921
1351485119.1869985710128.8130014289860
1453515356.80658556609-5.80658556609038
1551785068.7198025395109.280197460503
1640253952.5977011821972.4022988178093
1744494398.8215401616250.1784598383832
1845944533.8868985666760.1131014333332
1946034680.88210188094-77.8821018809437
2049114736.60677618804174.393223811958
2152365170.4156449821265.5843550178749
2246524773.38867167505-121.388671675052
2334793563.72290059103-84.7229005910313
2445564602.20737322983-46.2073732298289
2548154718.3583961061796.641603893826
2649494885.6609078995463.339092100464
2744994496.177006743042.82299325696158
2838653845.7411366359619.2588633640356
2936573715.83836088121-58.8383608812096
3048144629.41356945389184.586430546109
3146144461.23593895339152.764061046611
3245394563.32451372009-24.3245137200920
3344924565.52141651182-73.5214165118196
3447794688.3205194910690.6794805089431
3531933114.0356211344978.9643788655132
3638943805.7664865953688.2335134046413
3745314657.81940664525-126.819406645253
3840084126.34968207950-118.349682079495
3937643899.19039600691-135.190396006906
4032903315.76637607974-25.7663760797435
4136443556.9739582044987.0260417955111
4234383790.61730497973-352.617304979733
4338333796.4566226755736.5433773244294
4439223967.11721198449-45.1172119844872
4535243482.4479097682441.5520902317593
4634933476.7301374620416.2698625379579
4728142756.0327340804457.96726591956
4838993889.575618956579.42438104343468
4936533725.91818522828-72.9181852282826
5039693995.63412594399-26.6341259439892
5134273469.08825894606-42.0882589460614
5230673072.67673227503-5.67673227502883
5333013280.8062231111120.1937768888923
5432113047.55016805387163.449831946132
5533823334.591210387547.4087896125006
5636133595.6131410797117.3868589202949
5737833845.56014371739-62.5601437173942
5839713993.96200892248-22.9620089224809
5928422849.25240834427-7.25240834427127
6041614119.5316889515641.468311048445

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 5393 & 5318.71701344928 & 74.2829865507232 \tabularnewline
2 & 5147 & 5059.54869851089 & 87.4513014891109 \tabularnewline
3 & 4846 & 4780.8245357645 & 65.1754642355025 \tabularnewline
4 & 3995 & 4055.21805382707 & -60.2180538270727 \tabularnewline
5 & 4491 & 4589.55991764158 & -98.5599176415771 \tabularnewline
6 & 4676 & 4731.53205894584 & -55.5320589458413 \tabularnewline
7 & 5461 & 5619.8341261026 & -158.834126102597 \tabularnewline
8 & 4758 & 4880.33835702767 & -122.338357027674 \tabularnewline
9 & 5302 & 5273.05488502042 & 28.9451149795796 \tabularnewline
10 & 5066 & 5028.59866244937 & 37.4013375506321 \tabularnewline
11 & 3491 & 3535.95633584977 & -44.9563358497706 \tabularnewline
12 & 4944 & 5036.91883226669 & -92.9188322666921 \tabularnewline
13 & 5148 & 5119.18699857101 & 28.8130014289860 \tabularnewline
14 & 5351 & 5356.80658556609 & -5.80658556609038 \tabularnewline
15 & 5178 & 5068.7198025395 & 109.280197460503 \tabularnewline
16 & 4025 & 3952.59770118219 & 72.4022988178093 \tabularnewline
17 & 4449 & 4398.82154016162 & 50.1784598383832 \tabularnewline
18 & 4594 & 4533.88689856667 & 60.1131014333332 \tabularnewline
19 & 4603 & 4680.88210188094 & -77.8821018809437 \tabularnewline
20 & 4911 & 4736.60677618804 & 174.393223811958 \tabularnewline
21 & 5236 & 5170.41564498212 & 65.5843550178749 \tabularnewline
22 & 4652 & 4773.38867167505 & -121.388671675052 \tabularnewline
23 & 3479 & 3563.72290059103 & -84.7229005910313 \tabularnewline
24 & 4556 & 4602.20737322983 & -46.2073732298289 \tabularnewline
25 & 4815 & 4718.35839610617 & 96.641603893826 \tabularnewline
26 & 4949 & 4885.66090789954 & 63.339092100464 \tabularnewline
27 & 4499 & 4496.17700674304 & 2.82299325696158 \tabularnewline
28 & 3865 & 3845.74113663596 & 19.2588633640356 \tabularnewline
29 & 3657 & 3715.83836088121 & -58.8383608812096 \tabularnewline
30 & 4814 & 4629.41356945389 & 184.586430546109 \tabularnewline
31 & 4614 & 4461.23593895339 & 152.764061046611 \tabularnewline
32 & 4539 & 4563.32451372009 & -24.3245137200920 \tabularnewline
33 & 4492 & 4565.52141651182 & -73.5214165118196 \tabularnewline
34 & 4779 & 4688.32051949106 & 90.6794805089431 \tabularnewline
35 & 3193 & 3114.03562113449 & 78.9643788655132 \tabularnewline
36 & 3894 & 3805.76648659536 & 88.2335134046413 \tabularnewline
37 & 4531 & 4657.81940664525 & -126.819406645253 \tabularnewline
38 & 4008 & 4126.34968207950 & -118.349682079495 \tabularnewline
39 & 3764 & 3899.19039600691 & -135.190396006906 \tabularnewline
40 & 3290 & 3315.76637607974 & -25.7663760797435 \tabularnewline
41 & 3644 & 3556.97395820449 & 87.0260417955111 \tabularnewline
42 & 3438 & 3790.61730497973 & -352.617304979733 \tabularnewline
43 & 3833 & 3796.45662267557 & 36.5433773244294 \tabularnewline
44 & 3922 & 3967.11721198449 & -45.1172119844872 \tabularnewline
45 & 3524 & 3482.44790976824 & 41.5520902317593 \tabularnewline
46 & 3493 & 3476.73013746204 & 16.2698625379579 \tabularnewline
47 & 2814 & 2756.03273408044 & 57.96726591956 \tabularnewline
48 & 3899 & 3889.57561895657 & 9.42438104343468 \tabularnewline
49 & 3653 & 3725.91818522828 & -72.9181852282826 \tabularnewline
50 & 3969 & 3995.63412594399 & -26.6341259439892 \tabularnewline
51 & 3427 & 3469.08825894606 & -42.0882589460614 \tabularnewline
52 & 3067 & 3072.67673227503 & -5.67673227502883 \tabularnewline
53 & 3301 & 3280.80622311111 & 20.1937768888923 \tabularnewline
54 & 3211 & 3047.55016805387 & 163.449831946132 \tabularnewline
55 & 3382 & 3334.5912103875 & 47.4087896125006 \tabularnewline
56 & 3613 & 3595.61314107971 & 17.3868589202949 \tabularnewline
57 & 3783 & 3845.56014371739 & -62.5601437173942 \tabularnewline
58 & 3971 & 3993.96200892248 & -22.9620089224809 \tabularnewline
59 & 2842 & 2849.25240834427 & -7.25240834427127 \tabularnewline
60 & 4161 & 4119.53168895156 & 41.468311048445 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118038&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]5393[/C][C]5318.71701344928[/C][C]74.2829865507232[/C][/ROW]
[ROW][C]2[/C][C]5147[/C][C]5059.54869851089[/C][C]87.4513014891109[/C][/ROW]
[ROW][C]3[/C][C]4846[/C][C]4780.8245357645[/C][C]65.1754642355025[/C][/ROW]
[ROW][C]4[/C][C]3995[/C][C]4055.21805382707[/C][C]-60.2180538270727[/C][/ROW]
[ROW][C]5[/C][C]4491[/C][C]4589.55991764158[/C][C]-98.5599176415771[/C][/ROW]
[ROW][C]6[/C][C]4676[/C][C]4731.53205894584[/C][C]-55.5320589458413[/C][/ROW]
[ROW][C]7[/C][C]5461[/C][C]5619.8341261026[/C][C]-158.834126102597[/C][/ROW]
[ROW][C]8[/C][C]4758[/C][C]4880.33835702767[/C][C]-122.338357027674[/C][/ROW]
[ROW][C]9[/C][C]5302[/C][C]5273.05488502042[/C][C]28.9451149795796[/C][/ROW]
[ROW][C]10[/C][C]5066[/C][C]5028.59866244937[/C][C]37.4013375506321[/C][/ROW]
[ROW][C]11[/C][C]3491[/C][C]3535.95633584977[/C][C]-44.9563358497706[/C][/ROW]
[ROW][C]12[/C][C]4944[/C][C]5036.91883226669[/C][C]-92.9188322666921[/C][/ROW]
[ROW][C]13[/C][C]5148[/C][C]5119.18699857101[/C][C]28.8130014289860[/C][/ROW]
[ROW][C]14[/C][C]5351[/C][C]5356.80658556609[/C][C]-5.80658556609038[/C][/ROW]
[ROW][C]15[/C][C]5178[/C][C]5068.7198025395[/C][C]109.280197460503[/C][/ROW]
[ROW][C]16[/C][C]4025[/C][C]3952.59770118219[/C][C]72.4022988178093[/C][/ROW]
[ROW][C]17[/C][C]4449[/C][C]4398.82154016162[/C][C]50.1784598383832[/C][/ROW]
[ROW][C]18[/C][C]4594[/C][C]4533.88689856667[/C][C]60.1131014333332[/C][/ROW]
[ROW][C]19[/C][C]4603[/C][C]4680.88210188094[/C][C]-77.8821018809437[/C][/ROW]
[ROW][C]20[/C][C]4911[/C][C]4736.60677618804[/C][C]174.393223811958[/C][/ROW]
[ROW][C]21[/C][C]5236[/C][C]5170.41564498212[/C][C]65.5843550178749[/C][/ROW]
[ROW][C]22[/C][C]4652[/C][C]4773.38867167505[/C][C]-121.388671675052[/C][/ROW]
[ROW][C]23[/C][C]3479[/C][C]3563.72290059103[/C][C]-84.7229005910313[/C][/ROW]
[ROW][C]24[/C][C]4556[/C][C]4602.20737322983[/C][C]-46.2073732298289[/C][/ROW]
[ROW][C]25[/C][C]4815[/C][C]4718.35839610617[/C][C]96.641603893826[/C][/ROW]
[ROW][C]26[/C][C]4949[/C][C]4885.66090789954[/C][C]63.339092100464[/C][/ROW]
[ROW][C]27[/C][C]4499[/C][C]4496.17700674304[/C][C]2.82299325696158[/C][/ROW]
[ROW][C]28[/C][C]3865[/C][C]3845.74113663596[/C][C]19.2588633640356[/C][/ROW]
[ROW][C]29[/C][C]3657[/C][C]3715.83836088121[/C][C]-58.8383608812096[/C][/ROW]
[ROW][C]30[/C][C]4814[/C][C]4629.41356945389[/C][C]184.586430546109[/C][/ROW]
[ROW][C]31[/C][C]4614[/C][C]4461.23593895339[/C][C]152.764061046611[/C][/ROW]
[ROW][C]32[/C][C]4539[/C][C]4563.32451372009[/C][C]-24.3245137200920[/C][/ROW]
[ROW][C]33[/C][C]4492[/C][C]4565.52141651182[/C][C]-73.5214165118196[/C][/ROW]
[ROW][C]34[/C][C]4779[/C][C]4688.32051949106[/C][C]90.6794805089431[/C][/ROW]
[ROW][C]35[/C][C]3193[/C][C]3114.03562113449[/C][C]78.9643788655132[/C][/ROW]
[ROW][C]36[/C][C]3894[/C][C]3805.76648659536[/C][C]88.2335134046413[/C][/ROW]
[ROW][C]37[/C][C]4531[/C][C]4657.81940664525[/C][C]-126.819406645253[/C][/ROW]
[ROW][C]38[/C][C]4008[/C][C]4126.34968207950[/C][C]-118.349682079495[/C][/ROW]
[ROW][C]39[/C][C]3764[/C][C]3899.19039600691[/C][C]-135.190396006906[/C][/ROW]
[ROW][C]40[/C][C]3290[/C][C]3315.76637607974[/C][C]-25.7663760797435[/C][/ROW]
[ROW][C]41[/C][C]3644[/C][C]3556.97395820449[/C][C]87.0260417955111[/C][/ROW]
[ROW][C]42[/C][C]3438[/C][C]3790.61730497973[/C][C]-352.617304979733[/C][/ROW]
[ROW][C]43[/C][C]3833[/C][C]3796.45662267557[/C][C]36.5433773244294[/C][/ROW]
[ROW][C]44[/C][C]3922[/C][C]3967.11721198449[/C][C]-45.1172119844872[/C][/ROW]
[ROW][C]45[/C][C]3524[/C][C]3482.44790976824[/C][C]41.5520902317593[/C][/ROW]
[ROW][C]46[/C][C]3493[/C][C]3476.73013746204[/C][C]16.2698625379579[/C][/ROW]
[ROW][C]47[/C][C]2814[/C][C]2756.03273408044[/C][C]57.96726591956[/C][/ROW]
[ROW][C]48[/C][C]3899[/C][C]3889.57561895657[/C][C]9.42438104343468[/C][/ROW]
[ROW][C]49[/C][C]3653[/C][C]3725.91818522828[/C][C]-72.9181852282826[/C][/ROW]
[ROW][C]50[/C][C]3969[/C][C]3995.63412594399[/C][C]-26.6341259439892[/C][/ROW]
[ROW][C]51[/C][C]3427[/C][C]3469.08825894606[/C][C]-42.0882589460614[/C][/ROW]
[ROW][C]52[/C][C]3067[/C][C]3072.67673227503[/C][C]-5.67673227502883[/C][/ROW]
[ROW][C]53[/C][C]3301[/C][C]3280.80622311111[/C][C]20.1937768888923[/C][/ROW]
[ROW][C]54[/C][C]3211[/C][C]3047.55016805387[/C][C]163.449831946132[/C][/ROW]
[ROW][C]55[/C][C]3382[/C][C]3334.5912103875[/C][C]47.4087896125006[/C][/ROW]
[ROW][C]56[/C][C]3613[/C][C]3595.61314107971[/C][C]17.3868589202949[/C][/ROW]
[ROW][C]57[/C][C]3783[/C][C]3845.56014371739[/C][C]-62.5601437173942[/C][/ROW]
[ROW][C]58[/C][C]3971[/C][C]3993.96200892248[/C][C]-22.9620089224809[/C][/ROW]
[ROW][C]59[/C][C]2842[/C][C]2849.25240834427[/C][C]-7.25240834427127[/C][/ROW]
[ROW][C]60[/C][C]4161[/C][C]4119.53168895156[/C][C]41.468311048445[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118038&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118038&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
153935318.7170134492874.2829865507232
251475059.5486985108987.4513014891109
348464780.824535764565.1754642355025
439954055.21805382707-60.2180538270727
544914589.55991764158-98.5599176415771
646764731.53205894584-55.5320589458413
754615619.8341261026-158.834126102597
847584880.33835702767-122.338357027674
953025273.0548850204228.9451149795796
1050665028.5986624493737.4013375506321
1134913535.95633584977-44.9563358497706
1249445036.91883226669-92.9188322666921
1351485119.1869985710128.8130014289860
1453515356.80658556609-5.80658556609038
1551785068.7198025395109.280197460503
1640253952.5977011821972.4022988178093
1744494398.8215401616250.1784598383832
1845944533.8868985666760.1131014333332
1946034680.88210188094-77.8821018809437
2049114736.60677618804174.393223811958
2152365170.4156449821265.5843550178749
2246524773.38867167505-121.388671675052
2334793563.72290059103-84.7229005910313
2445564602.20737322983-46.2073732298289
2548154718.3583961061796.641603893826
2649494885.6609078995463.339092100464
2744994496.177006743042.82299325696158
2838653845.7411366359619.2588633640356
2936573715.83836088121-58.8383608812096
3048144629.41356945389184.586430546109
3146144461.23593895339152.764061046611
3245394563.32451372009-24.3245137200920
3344924565.52141651182-73.5214165118196
3447794688.3205194910690.6794805089431
3531933114.0356211344978.9643788655132
3638943805.7664865953688.2335134046413
3745314657.81940664525-126.819406645253
3840084126.34968207950-118.349682079495
3937643899.19039600691-135.190396006906
4032903315.76637607974-25.7663760797435
4136443556.9739582044987.0260417955111
4234383790.61730497973-352.617304979733
4338333796.4566226755736.5433773244294
4439223967.11721198449-45.1172119844872
4535243482.4479097682441.5520902317593
4634933476.7301374620416.2698625379579
4728142756.0327340804457.96726591956
4838993889.575618956579.42438104343468
4936533725.91818522828-72.9181852282826
5039693995.63412594399-26.6341259439892
5134273469.08825894606-42.0882589460614
5230673072.67673227503-5.67673227502883
5333013280.8062231111120.1937768888923
5432113047.55016805387163.449831946132
5533823334.591210387547.4087896125006
5636133595.6131410797117.3868589202949
5737833845.56014371739-62.5601437173942
5839713993.96200892248-22.9620089224809
5928422849.25240834427-7.25240834427127
6041614119.5316889515641.468311048445







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.0600947838016790.1201895676033580.939905216198321
210.3664665698114700.7329331396229390.63353343018853
220.5327986604457060.9344026791085880.467201339554294
230.4400040024238450.880008004847690.559995997576155
240.4332802972783250.866560594556650.566719702721675
250.3604895821329840.7209791642659680.639510417867016
260.2609064363870990.5218128727741990.739093563612901
270.2021546350010420.4043092700020830.797845364998958
280.1326299116194310.2652598232388620.867370088380569
290.1257432241823080.2514864483646170.874256775817692
300.2436573315831220.4873146631662450.756342668416878
310.2228968878449230.4457937756898470.777103112155077
320.3503861459617730.7007722919235450.649613854038227
330.337097194626710.674194389253420.66290280537329
340.4181913305461880.8363826610923750.581808669453812
350.3535624313002650.707124862600530.646437568699735
360.2500633401566180.5001266803132360.749936659843382
370.4478824119075550.895764823815110.552117588092445
380.3975065355480130.7950130710960250.602493464451987
390.3286764301081740.6573528602163470.671323569891827
400.2171489019488770.4342978038977550.782851098051123

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.060094783801679 & 0.120189567603358 & 0.939905216198321 \tabularnewline
21 & 0.366466569811470 & 0.732933139622939 & 0.63353343018853 \tabularnewline
22 & 0.532798660445706 & 0.934402679108588 & 0.467201339554294 \tabularnewline
23 & 0.440004002423845 & 0.88000800484769 & 0.559995997576155 \tabularnewline
24 & 0.433280297278325 & 0.86656059455665 & 0.566719702721675 \tabularnewline
25 & 0.360489582132984 & 0.720979164265968 & 0.639510417867016 \tabularnewline
26 & 0.260906436387099 & 0.521812872774199 & 0.739093563612901 \tabularnewline
27 & 0.202154635001042 & 0.404309270002083 & 0.797845364998958 \tabularnewline
28 & 0.132629911619431 & 0.265259823238862 & 0.867370088380569 \tabularnewline
29 & 0.125743224182308 & 0.251486448364617 & 0.874256775817692 \tabularnewline
30 & 0.243657331583122 & 0.487314663166245 & 0.756342668416878 \tabularnewline
31 & 0.222896887844923 & 0.445793775689847 & 0.777103112155077 \tabularnewline
32 & 0.350386145961773 & 0.700772291923545 & 0.649613854038227 \tabularnewline
33 & 0.33709719462671 & 0.67419438925342 & 0.66290280537329 \tabularnewline
34 & 0.418191330546188 & 0.836382661092375 & 0.581808669453812 \tabularnewline
35 & 0.353562431300265 & 0.70712486260053 & 0.646437568699735 \tabularnewline
36 & 0.250063340156618 & 0.500126680313236 & 0.749936659843382 \tabularnewline
37 & 0.447882411907555 & 0.89576482381511 & 0.552117588092445 \tabularnewline
38 & 0.397506535548013 & 0.795013071096025 & 0.602493464451987 \tabularnewline
39 & 0.328676430108174 & 0.657352860216347 & 0.671323569891827 \tabularnewline
40 & 0.217148901948877 & 0.434297803897755 & 0.782851098051123 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118038&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]20[/C][C]0.060094783801679[/C][C]0.120189567603358[/C][C]0.939905216198321[/C][/ROW]
[ROW][C]21[/C][C]0.366466569811470[/C][C]0.732933139622939[/C][C]0.63353343018853[/C][/ROW]
[ROW][C]22[/C][C]0.532798660445706[/C][C]0.934402679108588[/C][C]0.467201339554294[/C][/ROW]
[ROW][C]23[/C][C]0.440004002423845[/C][C]0.88000800484769[/C][C]0.559995997576155[/C][/ROW]
[ROW][C]24[/C][C]0.433280297278325[/C][C]0.86656059455665[/C][C]0.566719702721675[/C][/ROW]
[ROW][C]25[/C][C]0.360489582132984[/C][C]0.720979164265968[/C][C]0.639510417867016[/C][/ROW]
[ROW][C]26[/C][C]0.260906436387099[/C][C]0.521812872774199[/C][C]0.739093563612901[/C][/ROW]
[ROW][C]27[/C][C]0.202154635001042[/C][C]0.404309270002083[/C][C]0.797845364998958[/C][/ROW]
[ROW][C]28[/C][C]0.132629911619431[/C][C]0.265259823238862[/C][C]0.867370088380569[/C][/ROW]
[ROW][C]29[/C][C]0.125743224182308[/C][C]0.251486448364617[/C][C]0.874256775817692[/C][/ROW]
[ROW][C]30[/C][C]0.243657331583122[/C][C]0.487314663166245[/C][C]0.756342668416878[/C][/ROW]
[ROW][C]31[/C][C]0.222896887844923[/C][C]0.445793775689847[/C][C]0.777103112155077[/C][/ROW]
[ROW][C]32[/C][C]0.350386145961773[/C][C]0.700772291923545[/C][C]0.649613854038227[/C][/ROW]
[ROW][C]33[/C][C]0.33709719462671[/C][C]0.67419438925342[/C][C]0.66290280537329[/C][/ROW]
[ROW][C]34[/C][C]0.418191330546188[/C][C]0.836382661092375[/C][C]0.581808669453812[/C][/ROW]
[ROW][C]35[/C][C]0.353562431300265[/C][C]0.70712486260053[/C][C]0.646437568699735[/C][/ROW]
[ROW][C]36[/C][C]0.250063340156618[/C][C]0.500126680313236[/C][C]0.749936659843382[/C][/ROW]
[ROW][C]37[/C][C]0.447882411907555[/C][C]0.89576482381511[/C][C]0.552117588092445[/C][/ROW]
[ROW][C]38[/C][C]0.397506535548013[/C][C]0.795013071096025[/C][C]0.602493464451987[/C][/ROW]
[ROW][C]39[/C][C]0.328676430108174[/C][C]0.657352860216347[/C][C]0.671323569891827[/C][/ROW]
[ROW][C]40[/C][C]0.217148901948877[/C][C]0.434297803897755[/C][C]0.782851098051123[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118038&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118038&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
200.0600947838016790.1201895676033580.939905216198321
210.3664665698114700.7329331396229390.63353343018853
220.5327986604457060.9344026791085880.467201339554294
230.4400040024238450.880008004847690.559995997576155
240.4332802972783250.866560594556650.566719702721675
250.3604895821329840.7209791642659680.639510417867016
260.2609064363870990.5218128727741990.739093563612901
270.2021546350010420.4043092700020830.797845364998958
280.1326299116194310.2652598232388620.867370088380569
290.1257432241823080.2514864483646170.874256775817692
300.2436573315831220.4873146631662450.756342668416878
310.2228968878449230.4457937756898470.777103112155077
320.3503861459617730.7007722919235450.649613854038227
330.337097194626710.674194389253420.66290280537329
340.4181913305461880.8363826610923750.581808669453812
350.3535624313002650.707124862600530.646437568699735
360.2500633401566180.5001266803132360.749936659843382
370.4478824119075550.895764823815110.552117588092445
380.3975065355480130.7950130710960250.602493464451987
390.3286764301081740.6573528602163470.671323569891827
400.2171489019488770.4342978038977550.782851098051123







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

\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 & 0 & 0 & OK \tabularnewline
10% type I error level & 0 & 0 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118038&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]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118038&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118038&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 level00OK
10% type I error level00OK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = 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')
}