Home » date » 2008 » Dec » 14 »

Master regressie 1 aug 2005 zonder trend

*The author of this computation has been verified*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Sun, 14 Dec 2008 11:44:59 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56.htm/, Retrieved Sun, 14 Dec 2008 19:47:23 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8310 0 7649 0 7279 0 6857 0 6496 0 6280 0 8962 0 11205 0 10363 0 9175 0 8234 0 8121 0 7438 0 6876 0 6489 0 6319 0 5952 0 6055 0 9107 0 11493 0 10213 0 9238 0 8218 0 7995 0 7581 0 7051 0 6668 0 6433 0 6135 0 6365 0 10095 0 12029 0 12184 0 11331 0 9961 0 9739 0 9080 0 8507 0 8097 0 7772 0 7440 0 7902 0 13539 0 14992 0 15436 0 14156 0 12846 0 12302 0 11691 0 10648 0 10064 0 10016 0 9691 0 10260 0 16882 0 18573 0 18227 0 16346 0 14694 0 14453 0 13949 0 13277 0 12726 0 12279 0 11819 0 12207 0 18637 0 20519 0 19974 0 17802 0 15997 0 15430 0 14452 0 13614 0 13080 0 12290 0 11890 0 12292 0 18700 0 20388 1 19170 1 17530 1 15564 1 15163 1 13406 1 12763 1 12083 1 12054 1 11770 1 12266 1 17549 1 18655 1 17279 1 14788 1 13138 1 12494 1 11767 1 10928 1 10104 1 9760 1 9536 1 9978 1 14846 1 15565 1 13587 1 11804 1 10611 1 10915 1 9988 1 9376 1 9319 1 8852 1 8392 1 9050 1 13250 1 14037 1 12486 1 11182 1 10287 1
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


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


Multiple Linear Regression - Estimated Regression Equation
NWWZm[t] = + 11384.9239543726 + 1382.56147021547Dummy[t] -1033.49239543727M1[t] -1730.79239543726M2[t] -2208.79239543727M3[t] -2536.49239543726M4[t] -2887.59239543726M5[t] -2534.19239543726M6[t] + 2357.00760456273M7[t] + 3807.65145754118M8[t] + 2953.95145754119M9[t] + 1397.25145754119M10[t] + 17.0514575411919M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)11384.9239543726983.17114611.579800
Dummy1382.56147021547564.5066412.44920.0159590.007979
M1-1033.492395437271330.288776-0.77690.4389520.219476
M2-1730.792395437261330.288776-1.30110.1960570.098029
M3-2208.792395437271330.288776-1.66040.0997920.049896
M4-2536.492395437261330.288776-1.90670.0592640.029632
M5-2887.592395437261330.288776-2.17070.0321890.016095
M6-2534.192395437261330.288776-1.9050.0594910.029745
M72357.007604562731330.2887761.77180.0793010.039651
M83807.651457541181330.6879632.86140.0050820.002541
M92953.951457541191330.6879632.21990.0285570.014279
M101397.251457541191330.6879631.050.2960960.148048
M1117.05145754119191330.6879630.01280.98980.4949


Multiple Linear Regression - Regression Statistics
Multiple R0.658353306764718
R-squared0.433429076528038
Adjusted R-squared0.369288971984043
F-TEST (value)6.7575361719396
F-TEST (DF numerator)12
F-TEST (DF denominator)106
p-value6.64524435478597e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2894.98908069412
Sum Squared Residuals888381948.397846


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1831010351.4315589354-2041.43155893541
276499654.13155893537-2005.13155893537
372799176.13155893535-1897.13155893535
468578848.43155893537-1991.43155893537
564968497.33155893535-2001.33155893535
662808850.73155893537-2570.73155893537
7896213741.9315589354-4779.93155893536
81120515192.5754119138-3987.57541191383
91036314338.8754119138-3975.87541191381
10917512782.1754119138-3607.1754119138
11823411401.9754119138-3167.97541191381
12812111384.9239543726-3263.92395437262
13743810351.4315589354-2913.43155893535
1468769654.13155893536-2778.13155893536
1564899176.13155893536-2687.13155893536
1663198848.43155893536-2529.43155893536
1759528497.33155893536-2545.33155893536
1860558850.73155893536-2795.73155893536
19910713741.9315589354-4634.93155893536
201149315192.5754119138-3699.57541191381
211021314338.8754119138-4125.87541191382
22923812782.1754119138-3544.17541191382
23821811401.9754119138-3183.97541191381
24799511384.9239543726-3389.92395437262
25758110351.4315589354-2770.43155893536
2670519654.13155893536-2603.13155893536
2766689176.13155893536-2508.13155893536
2864338848.43155893536-2415.43155893536
2961358497.33155893536-2362.33155893536
3063658850.73155893536-2485.73155893536
311009513741.9315589354-3646.93155893536
321202915192.5754119138-3163.57541191381
331218414338.8754119138-2154.87541191382
341133112782.1754119138-1451.17541191382
35996111401.9754119138-1440.97541191381
36973911384.9239543726-1645.92395437262
37908010351.4315589354-1271.43155893536
3885079654.13155893536-1147.13155893536
3980979176.13155893536-1079.13155893536
4077728848.43155893536-1076.43155893536
4174408497.33155893536-1057.33155893536
4279028850.73155893536-948.73155893536
431353913741.9315589354-202.931558935362
441499215192.5754119138-200.575411913815
451543614338.87541191381097.12458808618
461415612782.17541191381373.82458808618
471284611401.97541191381444.02458808619
481230211384.9239543726917.076045627375
491169110351.43155893541339.56844106464
50106489654.13155893536993.86844106464
51100649176.13155893536887.868441064638
52100168848.431558935361167.56844106464
5396918497.331558935361193.66844106464
54102608850.731558935361409.26844106464
551688213741.93155893543140.06844106464
561857315192.57541191383380.42458808619
571822714338.87541191383888.12458808618
581634612782.17541191383563.82458808618
591469411401.97541191383292.02458808619
601445311384.92395437263068.07604562738
611394910351.43155893543597.56844106464
62132779654.131558935363622.86844106464
63127269176.131558935363549.86844106464
64122798848.431558935363430.56844106464
65118198497.331558935363321.66844106464
66122078850.731558935363356.26844106464
671863713741.93155893544895.06844106464
682051915192.57541191385326.42458808619
691997414338.87541191385635.12458808619
701780212782.17541191385019.82458808618
711599711401.97541191384595.02458808618
721543011384.92395437264045.07604562737
731445210351.43155893544100.56844106464
74136149654.131558935363959.86844106464
75130809176.131558935363903.86844106464
76122908848.431558935363441.56844106464
77118908497.331558935363392.66844106464
78122928850.731558935363441.26844106464
791870013741.93155893544958.06844106464
802038816575.13688212933812.86311787072
811917015721.43688212933448.56311787072
821753014164.73688212933365.26311787072
831556412784.53688212932779.46311787072
841516312767.48542458812395.51457541191
851340611733.99302915081672.00697084918
861276311036.69302915081726.30697084918
871208310558.69302915081524.30697084918
881205410230.99302915081823.00697084917
89117709879.893029150831890.10697084917
901226610233.29302915082032.70697084918
911754915124.49302915082424.50697084918
921865516575.13688212932079.86311787072
931727915721.43688212931557.56311787072
941478814164.7368821293623.26311787072
951313812784.5368821293353.463117870722
961249412767.4854245881-273.485424588088
971176711733.993029150833.0069708491811
981092811036.6930291508-108.693029150823
991010410558.6930291508-454.693029150824
100976010230.9930291508-470.993029150825
10195369879.89302915083-343.893029150825
102997810233.2930291508-255.293029150823
1031484615124.4930291508-278.493029150824
1041556516575.1368821293-1010.13688212928
1051358715721.4368821293-2134.43688212928
1061180414164.7368821293-2360.73688212928
1071061112784.5368821293-2173.53688212928
1081091512767.4854245881-1852.48542458809
109998811733.9930291508-1745.99302915082
110937611036.6930291508-1660.69302915082
111931910558.6930291508-1239.69302915082
112885210230.9930291508-1378.99302915082
11383929879.89302915082-1487.89302915082
114905010233.2930291508-1183.29302915082
1151325015124.4930291508-1874.49302915082
1161403716575.1368821293-2538.13688212928
1171248615721.4368821293-3235.43688212928
1181118214164.7368821293-2982.73688212928
1191028712784.5368821293-2497.53688212928


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.01405848769166880.02811697538333750.985941512308331
170.003234090875497030.006468181750994070.996765909124503
180.0006028517453545960.001205703490709190.999397148254645
190.0001134421377749380.0002268842755498760.999886557862225
202.16495834282337e-054.32991668564675e-050.999978350416572
213.92633268354398e-067.85266536708796e-060.999996073667316
226.61342024646314e-071.32268404929263e-060.999999338657975
231.06306978890933e-072.12613957781866e-070.999999893693021
241.78135193401242e-083.56270386802485e-080.99999998218648
253.53883010680272e-097.07766021360545e-090.99999999646117
266.297281479538e-101.2594562959076e-090.999999999370272
271.13055795585362e-102.26111591170725e-100.999999999886944
281.89926809380461e-113.79853618760922e-110.999999999981007
293.03999596620486e-126.07999193240972e-120.99999999999696
305.71024858953053e-131.14204971790611e-120.999999999999429
314.54877122254607e-129.09754244509215e-120.99999999999545
324.30152245200739e-128.60304490401477e-120.999999999995699
335.92221593159693e-101.18444318631939e-090.999999999407778
341.83396088477133e-083.66792176954265e-080.999999981660391
356.65446710192931e-081.33089342038586e-070.99999993345533
361.83361287048308e-073.66722574096615e-070.999999816638713
372.70281667079154e-075.40563334158309e-070.999999729718333
383.91358265750733e-077.82716531501465e-070.999999608641734
395.36794631249903e-071.07358926249981e-060.999999463205369
407.07610472114044e-071.41522094422809e-060.999999292389528
419.7597346208963e-071.95194692417926e-060.999999024026538
422.41514049577081e-064.83028099154162e-060.999997584859504
430.0003615670611760560.0007231341223521110.999638432938824
440.003114336699339330.006228673398678660.99688566330066
450.0270830588602480.0541661177204960.972916941139752
460.08176634749950180.1635326949990040.918233652500498
470.1571179378590720.3142358757181440.842882062140928
480.2420165820901280.4840331641802570.757983417909872
490.3303934148592810.6607868297185620.669606585140719
500.4021912186316950.804382437263390.597808781368305
510.4669011644983540.9338023289967080.533098835501646
520.5326511105549940.9346977788900120.467348889445006
530.5952046641457630.8095906717084740.404795335854237
540.6711511067089010.6576977865821970.328848893291099
550.8472945085278110.3054109829443770.152705491472189
560.924984786185150.1500304276296990.0750152138148494
570.9604111359851060.07917772802978790.0395888640148940
580.9725384466261080.05492310674778390.0274615533738919
590.9778298441612770.04434031167744680.0221701558387234
600.9822470451192480.03550590976150370.0177529548807519
610.9857330781006970.02853384379860620.0142669218993031
620.988062342302140.02387531539571860.0119376576978593
630.9893986789762140.02120264204757100.0106013210237855
640.9899338945095930.02013221098081300.0100661054904065
650.9900677577892010.01986448442159740.0099322422107987
660.990326879699320.01934624060135990.00967312030067996
670.9932395481498270.0135209037003470.0067604518501735
680.9949036061089280.01019278778214340.00509639389107168
690.9961740007909130.007651998418174620.00382599920908731
700.9963743208305260.007251358338947080.00362567916947354
710.996080696640930.007838606718139360.00391930335906968
720.9952963141139720.009407371772055070.00470368588602753
730.9942654363536760.01146912729264780.00573456364632389
740.9928105347161060.01437893056778720.00718946528389362
750.9908625094983040.01827498100339210.00913749050169606
760.987882726938720.02423454612256140.0121172730612807
770.984033416705810.03193316658837930.0159665832941897
780.9799109848369410.04017803032611750.0200890151630588
790.9768070888945230.04638582221095420.0231929111054771
800.9813186653717270.03736266925654550.0186813346282727
810.9878228040120940.02435439197581220.0121771959879061
820.9936987876558260.01260242468834850.00630121234417424
830.9960718394289550.007856321142090210.00392816057104511
840.9964813493778860.007037301244227420.00351865062211371
850.9957560086200160.00848798275996880.0042439913799844
860.9950126377550230.009974724489953220.00498736224497661
870.9937364175319990.01252716493600260.00626358246800128
880.9930220954015330.01395580919693370.00697790459846683
890.9924652793283760.01506944134324810.00753472067162406
900.9918010888533980.01639782229320470.00819891114660233
910.9939098015905340.01218039681893180.00609019840946589
920.9969311832933530.006137633413295090.00306881670664754
930.9993680841147120.001263831770576890.000631915885288446
940.9998195468665080.0003609062669846890.000180453133492345
950.9999363103405280.0001273793189441176.36896594720587e-05
960.999891429455930.000217141088141610.000108570544070805
970.9998517937276670.0002964125446659260.000148206272332963
980.9997533682035890.0004932635928227080.000246631796411354
990.9992284377370190.001543124525962800.000771562262981398
1000.997766329258220.004467341483559360.00223367074177968
1010.9944283348854690.01114333022906230.00557166511453115
1020.9838986170400840.03220276591983140.0161013829599157
1030.9717216299801970.05655674003960540.0282783700198027


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level450.511363636363636NOK
5% type I error level730.829545454545455NOK
10% type I error level770.875NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/1038ls1229280289.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/1038ls1229280289.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/11b4p1229280289.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/11b4p1229280289.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/2iytb1229280289.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/2iytb1229280289.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/34cag1229280289.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/34cag1229280289.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/49rxw1229280289.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/49rxw1229280289.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/5exwt1229280289.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/5exwt1229280289.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/6uvye1229280289.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/6uvye1229280289.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/721ty1229280289.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/721ty1229280289.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/8gi8x1229280289.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/8gi8x1229280289.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/9k7d01229280289.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229280433xt3wyaxci5nuj56/9k7d01229280289.ps (open in new window)


 
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('http://www.xycoon.com/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<br />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<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />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')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by