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 10:58:28 +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/t129673066513h8wi0olysyv2j.htm/, Retrieved Sun, 19 May 2024 13:20:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=118037, Retrieved Sun, 19 May 2024 13:20:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact176
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2011-02-03 10:58:28] [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'Herman Ole Andreas Wold' @ www.yougetit.org

\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 & 'Herman Ole Andreas Wold' @ www.yougetit.org \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118037&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]'Herman Ole Andreas Wold' @ www.yougetit.org[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118037&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118037&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'Herman Ole Andreas Wold' @ www.yougetit.org







Multiple Linear Regression - Estimated Regression Equation
Nieuwe_woningen[t] = -368.704882813088 + 0.0108542066944278Bewoonbare_opp[t] -18.9409113862806Rentevoet[t] -5.39488006602951Inflatie[t] -0.000424993211229427Werkloosheid[t] + 23.8207869773999M1[t] + 116.809162250339M2[t] + 150.989897599058M3[t] + 338.352307679011M4[t] + 290.816527018872M5[t] + 278.038545345547M6[t] + 36.5263718942795M7[t] + 22.5934611318237M8[t] + 0.326019864122348M9[t] + 27.0627574642159M10[t] + 197.459552174564M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Nieuwe_woningen[t] =  -368.704882813088 +  0.0108542066944278Bewoonbare_opp[t] -18.9409113862806Rentevoet[t] -5.39488006602951Inflatie[t] -0.000424993211229427Werkloosheid[t] +  23.8207869773999M1[t] +  116.809162250339M2[t] +  150.989897599058M3[t] +  338.352307679011M4[t] +  290.816527018872M5[t] +  278.038545345547M6[t] +  36.5263718942795M7[t] +  22.5934611318237M8[t] +  0.326019864122348M9[t] +  27.0627574642159M10[t] +  197.459552174564M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118037&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Nieuwe_woningen[t] =  -368.704882813088 +  0.0108542066944278Bewoonbare_opp[t] -18.9409113862806Rentevoet[t] -5.39488006602951Inflatie[t] -0.000424993211229427Werkloosheid[t] +  23.8207869773999M1[t] +  116.809162250339M2[t] +  150.989897599058M3[t] +  338.352307679011M4[t] +  290.816527018872M5[t] +  278.038545345547M6[t] +  36.5263718942795M7[t] +  22.5934611318237M8[t] +  0.326019864122348M9[t] +  27.0627574642159M10[t] +  197.459552174564M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118037&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118037&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] = -368.704882813088 + 0.0108542066944278Bewoonbare_opp[t] -18.9409113862806Rentevoet[t] -5.39488006602951Inflatie[t] -0.000424993211229427Werkloosheid[t] + 23.8207869773999M1[t] + 116.809162250339M2[t] + 150.989897599058M3[t] + 338.352307679011M4[t] + 290.816527018872M5[t] + 278.038545345547M6[t] + 36.5263718942795M7[t] + 22.5934611318237M8[t] + 0.326019864122348M9[t] + 27.0627574642159M10[t] + 197.459552174564M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-368.7048828130881369.314759-0.26930.7889870.394493
Bewoonbare_opp0.01085420669442780.00034531.472200
Rentevoet-18.9409113862806120.135793-0.15770.8754440.437722
Inflatie-5.3948800660295111.38254-0.4740.6378710.318936
Werkloosheid-0.0004249932112294270.001374-0.30930.7585530.379277
M123.820786977399973.0019230.32630.7457420.372871
M2116.80916225033977.925931.4990.1410210.07051
M3150.98989759905888.4492331.70710.0948560.047428
M4338.35230767901195.5706633.54030.0009580.000479
M5290.81652701887292.1871633.15460.0028960.001448
M6278.03854534554795.7025432.90520.0057230.002862
M736.5263718942795106.1728540.3440.7324640.366232
M822.5934611318237112.9979180.19990.8424440.421222
M90.326019864122348128.1473760.00250.9979820.498991
M1027.0627574642159125.2592220.21610.8299440.414972
M11197.45955217456487.7179512.25110.0294270.014713

\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) & -368.704882813088 & 1369.314759 & -0.2693 & 0.788987 & 0.394493 \tabularnewline
Bewoonbare_opp & 0.0108542066944278 & 0.000345 & 31.4722 & 0 & 0 \tabularnewline
Rentevoet & -18.9409113862806 & 120.135793 & -0.1577 & 0.875444 & 0.437722 \tabularnewline
Inflatie & -5.39488006602951 & 11.38254 & -0.474 & 0.637871 & 0.318936 \tabularnewline
Werkloosheid & -0.000424993211229427 & 0.001374 & -0.3093 & 0.758553 & 0.379277 \tabularnewline
M1 & 23.8207869773999 & 73.001923 & 0.3263 & 0.745742 & 0.372871 \tabularnewline
M2 & 116.809162250339 & 77.92593 & 1.499 & 0.141021 & 0.07051 \tabularnewline
M3 & 150.989897599058 & 88.449233 & 1.7071 & 0.094856 & 0.047428 \tabularnewline
M4 & 338.352307679011 & 95.570663 & 3.5403 & 0.000958 & 0.000479 \tabularnewline
M5 & 290.816527018872 & 92.187163 & 3.1546 & 0.002896 & 0.001448 \tabularnewline
M6 & 278.038545345547 & 95.702543 & 2.9052 & 0.005723 & 0.002862 \tabularnewline
M7 & 36.5263718942795 & 106.172854 & 0.344 & 0.732464 & 0.366232 \tabularnewline
M8 & 22.5934611318237 & 112.997918 & 0.1999 & 0.842444 & 0.421222 \tabularnewline
M9 & 0.326019864122348 & 128.147376 & 0.0025 & 0.997982 & 0.498991 \tabularnewline
M10 & 27.0627574642159 & 125.259222 & 0.2161 & 0.829944 & 0.414972 \tabularnewline
M11 & 197.459552174564 & 87.717951 & 2.2511 & 0.029427 & 0.014713 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118037&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]-368.704882813088[/C][C]1369.314759[/C][C]-0.2693[/C][C]0.788987[/C][C]0.394493[/C][/ROW]
[ROW][C]Bewoonbare_opp[/C][C]0.0108542066944278[/C][C]0.000345[/C][C]31.4722[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Rentevoet[/C][C]-18.9409113862806[/C][C]120.135793[/C][C]-0.1577[/C][C]0.875444[/C][C]0.437722[/C][/ROW]
[ROW][C]Inflatie[/C][C]-5.39488006602951[/C][C]11.38254[/C][C]-0.474[/C][C]0.637871[/C][C]0.318936[/C][/ROW]
[ROW][C]Werkloosheid[/C][C]-0.000424993211229427[/C][C]0.001374[/C][C]-0.3093[/C][C]0.758553[/C][C]0.379277[/C][/ROW]
[ROW][C]M1[/C][C]23.8207869773999[/C][C]73.001923[/C][C]0.3263[/C][C]0.745742[/C][C]0.372871[/C][/ROW]
[ROW][C]M2[/C][C]116.809162250339[/C][C]77.92593[/C][C]1.499[/C][C]0.141021[/C][C]0.07051[/C][/ROW]
[ROW][C]M3[/C][C]150.989897599058[/C][C]88.449233[/C][C]1.7071[/C][C]0.094856[/C][C]0.047428[/C][/ROW]
[ROW][C]M4[/C][C]338.352307679011[/C][C]95.570663[/C][C]3.5403[/C][C]0.000958[/C][C]0.000479[/C][/ROW]
[ROW][C]M5[/C][C]290.816527018872[/C][C]92.187163[/C][C]3.1546[/C][C]0.002896[/C][C]0.001448[/C][/ROW]
[ROW][C]M6[/C][C]278.038545345547[/C][C]95.702543[/C][C]2.9052[/C][C]0.005723[/C][C]0.002862[/C][/ROW]
[ROW][C]M7[/C][C]36.5263718942795[/C][C]106.172854[/C][C]0.344[/C][C]0.732464[/C][C]0.366232[/C][/ROW]
[ROW][C]M8[/C][C]22.5934611318237[/C][C]112.997918[/C][C]0.1999[/C][C]0.842444[/C][C]0.421222[/C][/ROW]
[ROW][C]M9[/C][C]0.326019864122348[/C][C]128.147376[/C][C]0.0025[/C][C]0.997982[/C][C]0.498991[/C][/ROW]
[ROW][C]M10[/C][C]27.0627574642159[/C][C]125.259222[/C][C]0.2161[/C][C]0.829944[/C][C]0.414972[/C][/ROW]
[ROW][C]M11[/C][C]197.459552174564[/C][C]87.717951[/C][C]2.2511[/C][C]0.029427[/C][C]0.014713[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118037&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118037&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)-368.7048828130881369.314759-0.26930.7889870.394493
Bewoonbare_opp0.01085420669442780.00034531.472200
Rentevoet-18.9409113862806120.135793-0.15770.8754440.437722
Inflatie-5.3948800660295111.38254-0.4740.6378710.318936
Werkloosheid-0.0004249932112294270.001374-0.30930.7585530.379277
M123.820786977399973.0019230.32630.7457420.372871
M2116.80916225033977.925931.4990.1410210.07051
M3150.98989759905888.4492331.70710.0948560.047428
M4338.35230767901195.5706633.54030.0009580.000479
M5290.81652701887292.1871633.15460.0028960.001448
M6278.03854534554795.7025432.90520.0057230.002862
M736.5263718942795106.1728540.3440.7324640.366232
M822.5934611318237112.9979180.19990.8424440.421222
M90.326019864122348128.1473760.00250.9979820.498991
M1027.0627574642159125.2592220.21610.8299440.414972
M11197.45955217456487.7179512.25110.0294270.014713







Multiple Linear Regression - Regression Statistics
Multiple R0.99053889917122
R-squared0.981167310771334
Adjusted R-squared0.974747075807015
F-TEST (value)152.824206002489
F-TEST (DF numerator)15
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation113.311643492556
Sum Squared Residuals564939.256243305

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.99053889917122 \tabularnewline
R-squared & 0.981167310771334 \tabularnewline
Adjusted R-squared & 0.974747075807015 \tabularnewline
F-TEST (value) & 152.824206002489 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 44 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 113.311643492556 \tabularnewline
Sum Squared Residuals & 564939.256243305 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118037&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.99053889917122[/C][/ROW]
[ROW][C]R-squared[/C][C]0.981167310771334[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.974747075807015[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]152.824206002489[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]44[/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]113.311643492556[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]564939.256243305[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118037&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118037&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.99053889917122
R-squared0.981167310771334
Adjusted R-squared0.974747075807015
F-TEST (value)152.824206002489
F-TEST (DF numerator)15
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation113.311643492556
Sum Squared Residuals564939.256243305







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
153935294.8646142603198.1353857396855
251475009.61213981573137.38786018427
348464735.71347603247110.286523967529
439954008.05565024662-13.0556502466196
544914567.84708223993-76.8470822399338
646764703.68293291556-27.6829329155645
754615663.5035532093-202.503553209296
847584850.2871371524-92.2871371524021
953025284.3113776849917.6886223150133
1050665020.6196033716645.3803966283359
1134913497.24795549833-6.24795549832794
1249445039.48974762685-95.4897476268459
1351485136.3843068325111.6156931674878
1453515390.97445085112-39.9744508511252
1551785102.9547197577475.0452802422617
1640253932.1927606157892.8072393842163
1744494399.2063324860149.793667513987
1845944520.8084995802773.1915004197298
1946034655.2997940941-52.2997940940972
2049114721.36668010732189.633319892678
2152365186.5576131259949.4423868740125
2246524744.36849686195-92.3684968619465
2334793543.28389392879-64.2838939287853
2445564577.12217756483-21.1221775648256
2548154701.38849546964113.611504530361
2649494896.5624161448552.4375838551532
2744994501.84436960486-2.84436960486112
2838653857.543827704217.45617229578556
2936573687.71239090524-30.7123909052422
3048144670.68548808703143.314511912966
3146144457.82470757371156.175292426285
3245394574.03926951362-35.0392695136196
3344924560.11604098873-68.1160409887302
3447794711.0163112360767.9836887639305
3531933101.0515610383591.9484389616544
3638943745.7452244251148.254775574905
3745314691.71193599459-160.711935994595
3840084111.88776244622-103.887762446222
3937643899.98387681197-135.983876811966
4032903323.71638505147-33.7163850514663
4136443559.1063334423184.8936665576945
4234383794.83435728623-356.834357286234
4338333781.410833213951.5891667861003
4439223977.97200629759-55.9720062975854
4535243426.0932198219297.9067801780836
4634933434.4121038176158.5878961823902
4728142764.9173901127549.082609887248
4838993902.45286326828-3.45286326827837
4936533715.65064744294-62.650647442939
5039694014.96323074208-45.963230742076
5134273473.50355779296-46.5035577929637
5230673120.49137638192-53.4913763819161
5333013328.12786092651-27.1278609265056
5432113042.9887221309168.011277869102
5533823334.9611119089947.0388880910076
5636133619.33490692907-6.33490692907135
5737833879.92174837838-96.921748378379
5839714050.58348471271-79.5834847127102
5928422912.49919942179-70.4991994217892
6041614189.18998711496-28.1899871149551

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 5393 & 5294.86461426031 & 98.1353857396855 \tabularnewline
2 & 5147 & 5009.61213981573 & 137.38786018427 \tabularnewline
3 & 4846 & 4735.71347603247 & 110.286523967529 \tabularnewline
4 & 3995 & 4008.05565024662 & -13.0556502466196 \tabularnewline
5 & 4491 & 4567.84708223993 & -76.8470822399338 \tabularnewline
6 & 4676 & 4703.68293291556 & -27.6829329155645 \tabularnewline
7 & 5461 & 5663.5035532093 & -202.503553209296 \tabularnewline
8 & 4758 & 4850.2871371524 & -92.2871371524021 \tabularnewline
9 & 5302 & 5284.31137768499 & 17.6886223150133 \tabularnewline
10 & 5066 & 5020.61960337166 & 45.3803966283359 \tabularnewline
11 & 3491 & 3497.24795549833 & -6.24795549832794 \tabularnewline
12 & 4944 & 5039.48974762685 & -95.4897476268459 \tabularnewline
13 & 5148 & 5136.38430683251 & 11.6156931674878 \tabularnewline
14 & 5351 & 5390.97445085112 & -39.9744508511252 \tabularnewline
15 & 5178 & 5102.95471975774 & 75.0452802422617 \tabularnewline
16 & 4025 & 3932.19276061578 & 92.8072393842163 \tabularnewline
17 & 4449 & 4399.20633248601 & 49.793667513987 \tabularnewline
18 & 4594 & 4520.80849958027 & 73.1915004197298 \tabularnewline
19 & 4603 & 4655.2997940941 & -52.2997940940972 \tabularnewline
20 & 4911 & 4721.36668010732 & 189.633319892678 \tabularnewline
21 & 5236 & 5186.55761312599 & 49.4423868740125 \tabularnewline
22 & 4652 & 4744.36849686195 & -92.3684968619465 \tabularnewline
23 & 3479 & 3543.28389392879 & -64.2838939287853 \tabularnewline
24 & 4556 & 4577.12217756483 & -21.1221775648256 \tabularnewline
25 & 4815 & 4701.38849546964 & 113.611504530361 \tabularnewline
26 & 4949 & 4896.56241614485 & 52.4375838551532 \tabularnewline
27 & 4499 & 4501.84436960486 & -2.84436960486112 \tabularnewline
28 & 3865 & 3857.54382770421 & 7.45617229578556 \tabularnewline
29 & 3657 & 3687.71239090524 & -30.7123909052422 \tabularnewline
30 & 4814 & 4670.68548808703 & 143.314511912966 \tabularnewline
31 & 4614 & 4457.82470757371 & 156.175292426285 \tabularnewline
32 & 4539 & 4574.03926951362 & -35.0392695136196 \tabularnewline
33 & 4492 & 4560.11604098873 & -68.1160409887302 \tabularnewline
34 & 4779 & 4711.01631123607 & 67.9836887639305 \tabularnewline
35 & 3193 & 3101.05156103835 & 91.9484389616544 \tabularnewline
36 & 3894 & 3745.7452244251 & 148.254775574905 \tabularnewline
37 & 4531 & 4691.71193599459 & -160.711935994595 \tabularnewline
38 & 4008 & 4111.88776244622 & -103.887762446222 \tabularnewline
39 & 3764 & 3899.98387681197 & -135.983876811966 \tabularnewline
40 & 3290 & 3323.71638505147 & -33.7163850514663 \tabularnewline
41 & 3644 & 3559.10633344231 & 84.8936665576945 \tabularnewline
42 & 3438 & 3794.83435728623 & -356.834357286234 \tabularnewline
43 & 3833 & 3781.4108332139 & 51.5891667861003 \tabularnewline
44 & 3922 & 3977.97200629759 & -55.9720062975854 \tabularnewline
45 & 3524 & 3426.09321982192 & 97.9067801780836 \tabularnewline
46 & 3493 & 3434.41210381761 & 58.5878961823902 \tabularnewline
47 & 2814 & 2764.91739011275 & 49.082609887248 \tabularnewline
48 & 3899 & 3902.45286326828 & -3.45286326827837 \tabularnewline
49 & 3653 & 3715.65064744294 & -62.650647442939 \tabularnewline
50 & 3969 & 4014.96323074208 & -45.963230742076 \tabularnewline
51 & 3427 & 3473.50355779296 & -46.5035577929637 \tabularnewline
52 & 3067 & 3120.49137638192 & -53.4913763819161 \tabularnewline
53 & 3301 & 3328.12786092651 & -27.1278609265056 \tabularnewline
54 & 3211 & 3042.9887221309 & 168.011277869102 \tabularnewline
55 & 3382 & 3334.96111190899 & 47.0388880910076 \tabularnewline
56 & 3613 & 3619.33490692907 & -6.33490692907135 \tabularnewline
57 & 3783 & 3879.92174837838 & -96.921748378379 \tabularnewline
58 & 3971 & 4050.58348471271 & -79.5834847127102 \tabularnewline
59 & 2842 & 2912.49919942179 & -70.4991994217892 \tabularnewline
60 & 4161 & 4189.18998711496 & -28.1899871149551 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118037&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]5294.86461426031[/C][C]98.1353857396855[/C][/ROW]
[ROW][C]2[/C][C]5147[/C][C]5009.61213981573[/C][C]137.38786018427[/C][/ROW]
[ROW][C]3[/C][C]4846[/C][C]4735.71347603247[/C][C]110.286523967529[/C][/ROW]
[ROW][C]4[/C][C]3995[/C][C]4008.05565024662[/C][C]-13.0556502466196[/C][/ROW]
[ROW][C]5[/C][C]4491[/C][C]4567.84708223993[/C][C]-76.8470822399338[/C][/ROW]
[ROW][C]6[/C][C]4676[/C][C]4703.68293291556[/C][C]-27.6829329155645[/C][/ROW]
[ROW][C]7[/C][C]5461[/C][C]5663.5035532093[/C][C]-202.503553209296[/C][/ROW]
[ROW][C]8[/C][C]4758[/C][C]4850.2871371524[/C][C]-92.2871371524021[/C][/ROW]
[ROW][C]9[/C][C]5302[/C][C]5284.31137768499[/C][C]17.6886223150133[/C][/ROW]
[ROW][C]10[/C][C]5066[/C][C]5020.61960337166[/C][C]45.3803966283359[/C][/ROW]
[ROW][C]11[/C][C]3491[/C][C]3497.24795549833[/C][C]-6.24795549832794[/C][/ROW]
[ROW][C]12[/C][C]4944[/C][C]5039.48974762685[/C][C]-95.4897476268459[/C][/ROW]
[ROW][C]13[/C][C]5148[/C][C]5136.38430683251[/C][C]11.6156931674878[/C][/ROW]
[ROW][C]14[/C][C]5351[/C][C]5390.97445085112[/C][C]-39.9744508511252[/C][/ROW]
[ROW][C]15[/C][C]5178[/C][C]5102.95471975774[/C][C]75.0452802422617[/C][/ROW]
[ROW][C]16[/C][C]4025[/C][C]3932.19276061578[/C][C]92.8072393842163[/C][/ROW]
[ROW][C]17[/C][C]4449[/C][C]4399.20633248601[/C][C]49.793667513987[/C][/ROW]
[ROW][C]18[/C][C]4594[/C][C]4520.80849958027[/C][C]73.1915004197298[/C][/ROW]
[ROW][C]19[/C][C]4603[/C][C]4655.2997940941[/C][C]-52.2997940940972[/C][/ROW]
[ROW][C]20[/C][C]4911[/C][C]4721.36668010732[/C][C]189.633319892678[/C][/ROW]
[ROW][C]21[/C][C]5236[/C][C]5186.55761312599[/C][C]49.4423868740125[/C][/ROW]
[ROW][C]22[/C][C]4652[/C][C]4744.36849686195[/C][C]-92.3684968619465[/C][/ROW]
[ROW][C]23[/C][C]3479[/C][C]3543.28389392879[/C][C]-64.2838939287853[/C][/ROW]
[ROW][C]24[/C][C]4556[/C][C]4577.12217756483[/C][C]-21.1221775648256[/C][/ROW]
[ROW][C]25[/C][C]4815[/C][C]4701.38849546964[/C][C]113.611504530361[/C][/ROW]
[ROW][C]26[/C][C]4949[/C][C]4896.56241614485[/C][C]52.4375838551532[/C][/ROW]
[ROW][C]27[/C][C]4499[/C][C]4501.84436960486[/C][C]-2.84436960486112[/C][/ROW]
[ROW][C]28[/C][C]3865[/C][C]3857.54382770421[/C][C]7.45617229578556[/C][/ROW]
[ROW][C]29[/C][C]3657[/C][C]3687.71239090524[/C][C]-30.7123909052422[/C][/ROW]
[ROW][C]30[/C][C]4814[/C][C]4670.68548808703[/C][C]143.314511912966[/C][/ROW]
[ROW][C]31[/C][C]4614[/C][C]4457.82470757371[/C][C]156.175292426285[/C][/ROW]
[ROW][C]32[/C][C]4539[/C][C]4574.03926951362[/C][C]-35.0392695136196[/C][/ROW]
[ROW][C]33[/C][C]4492[/C][C]4560.11604098873[/C][C]-68.1160409887302[/C][/ROW]
[ROW][C]34[/C][C]4779[/C][C]4711.01631123607[/C][C]67.9836887639305[/C][/ROW]
[ROW][C]35[/C][C]3193[/C][C]3101.05156103835[/C][C]91.9484389616544[/C][/ROW]
[ROW][C]36[/C][C]3894[/C][C]3745.7452244251[/C][C]148.254775574905[/C][/ROW]
[ROW][C]37[/C][C]4531[/C][C]4691.71193599459[/C][C]-160.711935994595[/C][/ROW]
[ROW][C]38[/C][C]4008[/C][C]4111.88776244622[/C][C]-103.887762446222[/C][/ROW]
[ROW][C]39[/C][C]3764[/C][C]3899.98387681197[/C][C]-135.983876811966[/C][/ROW]
[ROW][C]40[/C][C]3290[/C][C]3323.71638505147[/C][C]-33.7163850514663[/C][/ROW]
[ROW][C]41[/C][C]3644[/C][C]3559.10633344231[/C][C]84.8936665576945[/C][/ROW]
[ROW][C]42[/C][C]3438[/C][C]3794.83435728623[/C][C]-356.834357286234[/C][/ROW]
[ROW][C]43[/C][C]3833[/C][C]3781.4108332139[/C][C]51.5891667861003[/C][/ROW]
[ROW][C]44[/C][C]3922[/C][C]3977.97200629759[/C][C]-55.9720062975854[/C][/ROW]
[ROW][C]45[/C][C]3524[/C][C]3426.09321982192[/C][C]97.9067801780836[/C][/ROW]
[ROW][C]46[/C][C]3493[/C][C]3434.41210381761[/C][C]58.5878961823902[/C][/ROW]
[ROW][C]47[/C][C]2814[/C][C]2764.91739011275[/C][C]49.082609887248[/C][/ROW]
[ROW][C]48[/C][C]3899[/C][C]3902.45286326828[/C][C]-3.45286326827837[/C][/ROW]
[ROW][C]49[/C][C]3653[/C][C]3715.65064744294[/C][C]-62.650647442939[/C][/ROW]
[ROW][C]50[/C][C]3969[/C][C]4014.96323074208[/C][C]-45.963230742076[/C][/ROW]
[ROW][C]51[/C][C]3427[/C][C]3473.50355779296[/C][C]-46.5035577929637[/C][/ROW]
[ROW][C]52[/C][C]3067[/C][C]3120.49137638192[/C][C]-53.4913763819161[/C][/ROW]
[ROW][C]53[/C][C]3301[/C][C]3328.12786092651[/C][C]-27.1278609265056[/C][/ROW]
[ROW][C]54[/C][C]3211[/C][C]3042.9887221309[/C][C]168.011277869102[/C][/ROW]
[ROW][C]55[/C][C]3382[/C][C]3334.96111190899[/C][C]47.0388880910076[/C][/ROW]
[ROW][C]56[/C][C]3613[/C][C]3619.33490692907[/C][C]-6.33490692907135[/C][/ROW]
[ROW][C]57[/C][C]3783[/C][C]3879.92174837838[/C][C]-96.921748378379[/C][/ROW]
[ROW][C]58[/C][C]3971[/C][C]4050.58348471271[/C][C]-79.5834847127102[/C][/ROW]
[ROW][C]59[/C][C]2842[/C][C]2912.49919942179[/C][C]-70.4991994217892[/C][/ROW]
[ROW][C]60[/C][C]4161[/C][C]4189.18998711496[/C][C]-28.1899871149551[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118037&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118037&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
153935294.8646142603198.1353857396855
251475009.61213981573137.38786018427
348464735.71347603247110.286523967529
439954008.05565024662-13.0556502466196
544914567.84708223993-76.8470822399338
646764703.68293291556-27.6829329155645
754615663.5035532093-202.503553209296
847584850.2871371524-92.2871371524021
953025284.3113776849917.6886223150133
1050665020.6196033716645.3803966283359
1134913497.24795549833-6.24795549832794
1249445039.48974762685-95.4897476268459
1351485136.3843068325111.6156931674878
1453515390.97445085112-39.9744508511252
1551785102.9547197577475.0452802422617
1640253932.1927606157892.8072393842163
1744494399.2063324860149.793667513987
1845944520.8084995802773.1915004197298
1946034655.2997940941-52.2997940940972
2049114721.36668010732189.633319892678
2152365186.5576131259949.4423868740125
2246524744.36849686195-92.3684968619465
2334793543.28389392879-64.2838939287853
2445564577.12217756483-21.1221775648256
2548154701.38849546964113.611504530361
2649494896.5624161448552.4375838551532
2744994501.84436960486-2.84436960486112
2838653857.543827704217.45617229578556
2936573687.71239090524-30.7123909052422
3048144670.68548808703143.314511912966
3146144457.82470757371156.175292426285
3245394574.03926951362-35.0392695136196
3344924560.11604098873-68.1160409887302
3447794711.0163112360767.9836887639305
3531933101.0515610383591.9484389616544
3638943745.7452244251148.254775574905
3745314691.71193599459-160.711935994595
3840084111.88776244622-103.887762446222
3937643899.98387681197-135.983876811966
4032903323.71638505147-33.7163850514663
4136443559.1063334423184.8936665576945
4234383794.83435728623-356.834357286234
4338333781.410833213951.5891667861003
4439223977.97200629759-55.9720062975854
4535243426.0932198219297.9067801780836
4634933434.4121038176158.5878961823902
4728142764.9173901127549.082609887248
4838993902.45286326828-3.45286326827837
4936533715.65064744294-62.650647442939
5039694014.96323074208-45.963230742076
5134273473.50355779296-46.5035577929637
5230673120.49137638192-53.4913763819161
5333013328.12786092651-27.1278609265056
5432113042.9887221309168.011277869102
5533823334.9611119089947.0388880910076
5636133619.33490692907-6.33490692907135
5737833879.92174837838-96.921748378379
5839714050.58348471271-79.5834847127102
5928422912.49919942179-70.4991994217892
6041614189.18998711496-28.1899871149551







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.06374921445098420.1274984289019680.936250785549016
200.05300232385797180.1060046477159440.946997676142028
210.2518349144643620.5036698289287240.748165085535638
220.462776602652790.925553205305580.53722339734721
230.3585800623818230.7171601247636450.641419937618177
240.2585345194180150.517069038836030.741465480581985
250.2244368630795610.4488737261591220.775563136920439
260.1708227263830420.3416454527660850.829177273616958
270.142991186541470.2859823730829390.85700881345853
280.09320205456551830.1864041091310370.906797945434482
290.05913555821620450.1182711164324090.940864441783795
300.2161099868785850.432219973757170.783890013121415
310.3509704128994690.7019408257989370.649029587100531
320.3232304513982350.646460902796470.676769548601765
330.2996379054911470.5992758109822930.700362094508853
340.45565426099780.91130852199560.5443457390022
350.4060959049647680.8121918099295350.593904095035232
360.3076391031291780.6152782062583550.692360896870822
370.494305270577620.9886105411552410.50569472942238
380.4613410718569250.922682143713850.538658928143075
390.4029359528871790.8058719057743580.597064047112821
400.3024924921126530.6049849842253070.697507507887347
410.8619358132436560.2761283735126880.138064186756344

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.0637492144509842 & 0.127498428901968 & 0.936250785549016 \tabularnewline
20 & 0.0530023238579718 & 0.106004647715944 & 0.946997676142028 \tabularnewline
21 & 0.251834914464362 & 0.503669828928724 & 0.748165085535638 \tabularnewline
22 & 0.46277660265279 & 0.92555320530558 & 0.53722339734721 \tabularnewline
23 & 0.358580062381823 & 0.717160124763645 & 0.641419937618177 \tabularnewline
24 & 0.258534519418015 & 0.51706903883603 & 0.741465480581985 \tabularnewline
25 & 0.224436863079561 & 0.448873726159122 & 0.775563136920439 \tabularnewline
26 & 0.170822726383042 & 0.341645452766085 & 0.829177273616958 \tabularnewline
27 & 0.14299118654147 & 0.285982373082939 & 0.85700881345853 \tabularnewline
28 & 0.0932020545655183 & 0.186404109131037 & 0.906797945434482 \tabularnewline
29 & 0.0591355582162045 & 0.118271116432409 & 0.940864441783795 \tabularnewline
30 & 0.216109986878585 & 0.43221997375717 & 0.783890013121415 \tabularnewline
31 & 0.350970412899469 & 0.701940825798937 & 0.649029587100531 \tabularnewline
32 & 0.323230451398235 & 0.64646090279647 & 0.676769548601765 \tabularnewline
33 & 0.299637905491147 & 0.599275810982293 & 0.700362094508853 \tabularnewline
34 & 0.4556542609978 & 0.9113085219956 & 0.5443457390022 \tabularnewline
35 & 0.406095904964768 & 0.812191809929535 & 0.593904095035232 \tabularnewline
36 & 0.307639103129178 & 0.615278206258355 & 0.692360896870822 \tabularnewline
37 & 0.49430527057762 & 0.988610541155241 & 0.50569472942238 \tabularnewline
38 & 0.461341071856925 & 0.92268214371385 & 0.538658928143075 \tabularnewline
39 & 0.402935952887179 & 0.805871905774358 & 0.597064047112821 \tabularnewline
40 & 0.302492492112653 & 0.604984984225307 & 0.697507507887347 \tabularnewline
41 & 0.861935813243656 & 0.276128373512688 & 0.138064186756344 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=118037&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]19[/C][C]0.0637492144509842[/C][C]0.127498428901968[/C][C]0.936250785549016[/C][/ROW]
[ROW][C]20[/C][C]0.0530023238579718[/C][C]0.106004647715944[/C][C]0.946997676142028[/C][/ROW]
[ROW][C]21[/C][C]0.251834914464362[/C][C]0.503669828928724[/C][C]0.748165085535638[/C][/ROW]
[ROW][C]22[/C][C]0.46277660265279[/C][C]0.92555320530558[/C][C]0.53722339734721[/C][/ROW]
[ROW][C]23[/C][C]0.358580062381823[/C][C]0.717160124763645[/C][C]0.641419937618177[/C][/ROW]
[ROW][C]24[/C][C]0.258534519418015[/C][C]0.51706903883603[/C][C]0.741465480581985[/C][/ROW]
[ROW][C]25[/C][C]0.224436863079561[/C][C]0.448873726159122[/C][C]0.775563136920439[/C][/ROW]
[ROW][C]26[/C][C]0.170822726383042[/C][C]0.341645452766085[/C][C]0.829177273616958[/C][/ROW]
[ROW][C]27[/C][C]0.14299118654147[/C][C]0.285982373082939[/C][C]0.85700881345853[/C][/ROW]
[ROW][C]28[/C][C]0.0932020545655183[/C][C]0.186404109131037[/C][C]0.906797945434482[/C][/ROW]
[ROW][C]29[/C][C]0.0591355582162045[/C][C]0.118271116432409[/C][C]0.940864441783795[/C][/ROW]
[ROW][C]30[/C][C]0.216109986878585[/C][C]0.43221997375717[/C][C]0.783890013121415[/C][/ROW]
[ROW][C]31[/C][C]0.350970412899469[/C][C]0.701940825798937[/C][C]0.649029587100531[/C][/ROW]
[ROW][C]32[/C][C]0.323230451398235[/C][C]0.64646090279647[/C][C]0.676769548601765[/C][/ROW]
[ROW][C]33[/C][C]0.299637905491147[/C][C]0.599275810982293[/C][C]0.700362094508853[/C][/ROW]
[ROW][C]34[/C][C]0.4556542609978[/C][C]0.9113085219956[/C][C]0.5443457390022[/C][/ROW]
[ROW][C]35[/C][C]0.406095904964768[/C][C]0.812191809929535[/C][C]0.593904095035232[/C][/ROW]
[ROW][C]36[/C][C]0.307639103129178[/C][C]0.615278206258355[/C][C]0.692360896870822[/C][/ROW]
[ROW][C]37[/C][C]0.49430527057762[/C][C]0.988610541155241[/C][C]0.50569472942238[/C][/ROW]
[ROW][C]38[/C][C]0.461341071856925[/C][C]0.92268214371385[/C][C]0.538658928143075[/C][/ROW]
[ROW][C]39[/C][C]0.402935952887179[/C][C]0.805871905774358[/C][C]0.597064047112821[/C][/ROW]
[ROW][C]40[/C][C]0.302492492112653[/C][C]0.604984984225307[/C][C]0.697507507887347[/C][/ROW]
[ROW][C]41[/C][C]0.861935813243656[/C][C]0.276128373512688[/C][C]0.138064186756344[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=118037&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118037&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
190.06374921445098420.1274984289019680.936250785549016
200.05300232385797180.1060046477159440.946997676142028
210.2518349144643620.5036698289287240.748165085535638
220.462776602652790.925553205305580.53722339734721
230.3585800623818230.7171601247636450.641419937618177
240.2585345194180150.517069038836030.741465480581985
250.2244368630795610.4488737261591220.775563136920439
260.1708227263830420.3416454527660850.829177273616958
270.142991186541470.2859823730829390.85700881345853
280.09320205456551830.1864041091310370.906797945434482
290.05913555821620450.1182711164324090.940864441783795
300.2161099868785850.432219973757170.783890013121415
310.3509704128994690.7019408257989370.649029587100531
320.3232304513982350.646460902796470.676769548601765
330.2996379054911470.5992758109822930.700362094508853
340.45565426099780.91130852199560.5443457390022
350.4060959049647680.8121918099295350.593904095035232
360.3076391031291780.6152782062583550.692360896870822
370.494305270577620.9886105411552410.50569472942238
380.4613410718569250.922682143713850.538658928143075
390.4029359528871790.8058719057743580.597064047112821
400.3024924921126530.6049849842253070.697507507887347
410.8619358132436560.2761283735126880.138064186756344







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=118037&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=118037&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=118037&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 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; 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')
}