Home » date » 2010 » Dec » 22 »

*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: Wed, 22 Dec 2010 10:14:12 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5.htm/, Retrieved Wed, 22 Dec 2010 11:12:38 +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/2010/Dec/22/t12930127587sk8tg3dzes9fx5.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
377 370 358 357 349 348 369 381 368 361 351 351 358 354 347 345 343 340 362 370 373 371 354 357 363 364 363 358 357 357 380 378 376 380 379 384 392 394 392 396 392 396 419 421 420 418 410 418 426 428 430 424 423 427 441 449 452 462 455 461 461 463 462 456 455 456 472 472 471 465 459 465 468 467 463 460 462 461 476 476 471 453 443 442 444 438 427 424 416 406 431 434 418 412 404 409 412 406 398 397 385 390 413 413 401 397 397 409 419 424 428 430 424 433 456 459 446 441 439 454 460 457 451 444 437 443 471 469 454 444 436
 
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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 368.565957446808 + 4.88136686009029M1[t] + 2.81418439716312M2[t] -2.07117988394584M3[t] -5.32018052869116M4[t] -10.3873629916183M5[t] -9.81818181818181M6[t] + 10.6600902643456M7[t] + 12.8656350741457M8[t] + 5.61663442940039M9[t] + 0.731270148291424M10[t] -6.97227595099936M11[t] + 0.70354609929078t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)368.56595744680810.36498735.558700
M14.8813668600902912.8964370.37850.7057360.352868
M22.8141843971631212.8948040.21820.8276180.413809
M3-2.0711798839458412.893535-0.16060.8726540.436327
M4-5.3201805286911612.892628-0.41270.680610.340305
M5-10.387362991618312.892083-0.80570.4220270.211014
M6-9.8181818181818112.891902-0.76160.4478320.223916
M710.660090264345612.8920830.82690.4099790.20499
M812.865635074145712.8926280.99790.3203670.160183
M95.6166344294003912.8935350.43560.6639110.331955
M100.73127014829142412.8948040.05670.9548720.477436
M11-6.9722759509993612.896437-0.54060.5897780.294889
t0.703546099290780.06839210.286900


Multiple Linear Regression - Regression Statistics
Multiple R0.702027458729559
R-squared0.492842552810283
Adjusted R-squared0.441267219197769
F-TEST (value)9.55578022069654
F-TEST (DF numerator)12
F-TEST (DF denominator)118
p-value9.71223101942087e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation29.5055485017248
Sum Squared Residuals102728.132301741


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1377374.1508704061892.84912959381061
2370372.787234042553-2.78723404255319
3358368.605415860735-10.605415860735
4357366.059961315280-9.05996131528048
5349361.696324951644-12.6963249516441
6348362.969052224371-14.9690522243714
7369384.150870406190-15.1508704061896
8381387.059961315280-6.05996131528047
9368380.514506769826-12.5145067698259
10361376.332688588008-15.3326885880077
11351369.332688588008-18.3326885880077
12351377.008510638298-26.0085106382979
13358382.593423597679-24.5934235976789
14354381.229787234043-27.2297872340426
15347377.047969052224-30.0479690522244
16345374.50251450677-29.5025145067698
17343370.138878143133-27.1388781431335
18340371.411605415861-31.4116054158607
19362392.593423597679-30.5934235976789
20370395.50251450677-25.5025145067698
21373388.957059961315-15.9570599613153
22371384.775241779497-13.7752417794971
23354377.775241779497-23.7752417794971
24357385.451063829787-28.4510638297872
25363391.035976789168-28.0359767891683
26364389.672340425532-25.6723404255319
27363385.490522243714-22.4905222437137
28358382.945067698259-24.9450676982592
29357378.581431334623-21.5814313346228
30357379.85415860735-22.8541586073501
31380401.035976789168-21.0359767891683
32378403.945067698259-25.9450676982592
33376397.399613152805-21.3996131528046
34380393.217794970986-13.2177949709865
35379386.217794970986-7.21779497098646
36384393.893617021277-9.8936170212766
37392399.478529980658-7.47852998065766
38394398.114893617021-4.11489361702128
39392393.933075435203-1.93307543520310
40396391.3876208897494.61237911025145
41392387.0239845261124.97601547388781
42396388.2967117988397.70328820116054
43419409.4785299806589.52147001934236
44421412.3876208897498.61237911025145
45420405.84216634429414.157833655706
46418401.66034816247616.3396518375242
47410394.66034816247615.3396518375242
48418402.33617021276615.6638297872340
49426407.92108317214718.078916827853
50428406.55744680851121.4425531914894
51430402.37562862669227.6243713733075
52424399.83017408123824.1698259187621
53423395.46653771760227.5334622823984
54427396.73926499032930.2607350096712
55441417.92108317214723.078916827853
56449420.83017408123828.1698259187621
57452414.28471953578337.7152804642166
58462410.10290135396551.8970986460348
59455403.10290135396551.8970986460348
60461410.77872340425550.2212765957447
61461416.36363636363644.6363636363636
6246341548
63462410.81818181818251.1818181818182
64456408.27272727272747.7272727272727
65455403.90909090909151.0909090909091
66456405.18181818181850.8181818181818
67472426.36363636363645.6363636363636
68472429.27272727272742.7272727272727
69471422.72727272727348.2727272727273
70465418.54545454545546.4545454545455
71459411.54545454545547.4545454545455
72465419.22127659574545.7787234042553
73468424.80618955512643.1938104448743
74467423.44255319148943.5574468085106
75463419.26073500967143.7392649903288
76460416.71528046421743.2847195357834
77462412.3516441005849.6483558994197
78461413.62437137330847.3756286266925
79476434.80618955512641.1938104448743
80476437.71528046421738.2847195357834
81471431.16982591876239.8301740812379
82453426.98800773694426.0119922630561
83443419.98800773694423.0119922630561
84442427.66382978723414.3361702127660
85444433.24874274661510.7512572533849
86438431.8851063829796.11489361702128
87427427.703288201161-0.703288201160537
88424425.157833655706-1.15783365570599
89416420.79419729207-4.79419729206962
90406422.066924564797-16.0669245647969
91431443.248742746615-12.2487427466151
92434446.157833655706-12.157833655706
93418439.612379110251-21.6123791102515
94412435.430560928433-23.4305609284333
95404428.430560928433-24.4305609284333
96409436.106382978723-27.1063829787234
97412441.691295938104-29.6912959381045
98406440.327659574468-34.3276595744681
99398436.14584139265-38.1458413926499
100397433.600386847195-36.6003868471953
101385429.236750483559-44.236750483559
102390430.509477756286-40.5094777562863
103413451.691295938104-38.6912959381044
104413454.600386847195-41.6003868471954
105401448.054932301741-47.0549323017408
106397443.873114119923-46.8731141199226
107397436.873114119923-39.8731141199226
108409444.548936170213-35.5489361702128
109419450.133849129594-31.1338491295938
110424448.770212765957-24.7702127659574
111428444.588394584139-16.5883945841393
112430442.042940038685-12.0429400386847
113424437.679303675048-13.6793036750484
114433438.952030947776-5.95203094777563
115456460.133849129594-4.1338491295938
116459463.042940038685-4.04294003868471
117446456.49748549323-10.4974854932302
118441452.315667311412-11.315667311412
119439445.315667311412-6.31566731141199
120454452.9914893617021.00851063829786
121460458.5764023210831.42359767891682
122457457.212765957447-0.212765957446806
123451453.030947775629-2.03094777562862
124444450.485493230174-6.48549323017408
125437446.121856866538-9.12185686653772
126443447.394584139265-4.394584139265
127471468.5764023210832.42359767891683
128469471.485493230174-2.48549323017408
129454464.940038684720-10.9400386847195
130444460.758220502901-16.7582205029014
131436453.758220502901-17.7582205029014


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.0008741514428540660.001748302885708130.999125848557146
170.0003585845275768340.0007171690551536680.999641415472423
185.71634975513657e-050.0001143269951027310.999942836502449
199.86485729001657e-061.97297145800331e-050.99999013514271
201.05222545934078e-062.10445091868156e-060.99999894777454
215.08461663637548e-061.01692332727510e-050.999994915383364
221.31362237338477e-052.62724474676955e-050.999986863776266
235.22077085888763e-061.04415417177753e-050.999994779229141
242.79227820754819e-065.58455641509638e-060.999997207721792
257.3875334628359e-071.47750669256718e-060.999999261246654
263.26407327942931e-076.52814655885861e-070.999999673592672
274.32055334365418e-078.64110668730835e-070.999999567944666
282.35727186369017e-074.71454372738033e-070.999999764272814
291.83494230176992e-073.66988460353985e-070.99999981650577
301.61535072744545e-073.23070145489090e-070.999999838464927
311.46207726936248e-072.92415453872496e-070.999999853792273
326.0136032742238e-081.20272065484476e-070.999999939863967
332.5895879468284e-085.1791758936568e-080.99999997410412
341.99336010797388e-083.98672021594776e-080.999999980066399
359.13488761982276e-081.82697752396455e-070.999999908651124
364.26799227240409e-078.53598454480818e-070.999999573200773
375.99861196048363e-071.19972239209673e-060.999999400138804
381.20026871796821e-062.40053743593643e-060.999998799731282
393.03767812178962e-066.07535624357924e-060.999996962321878
401.0512770544955e-052.102554108991e-050.999989487229455
412.30563622993122e-054.61127245986245e-050.9999769436377
426.23247023586954e-050.0001246494047173910.999937675297641
430.0001334797289606720.0002669594579213440.99986652027104
440.0001830900185211830.0003661800370423670.999816909981479
450.0002508891009913330.0005017782019826660.999749110899009
460.0002980787409479740.0005961574818959470.999701921259052
470.0003718872682076330.0007437745364152670.999628112731792
480.0005603544089214330.001120708817842870.999439645591079
490.0005325610885451820.001065122177090360.999467438911455
500.0005480280193192470.001096056038638490.99945197198068
510.0007035337193090320.001407067438618060.999296466280691
520.000687436924036470.001374873848072940.999312563075964
530.0006858544999106860.001371708999821370.99931414550009
540.0007524504014321130.001504900802864230.999247549598568
550.0006579847494568460.001315969498913690.999342015250543
560.000566116853101690.001132233706203380.999433883146898
570.000527893901427590.001055787802855180.999472106098572
580.0008024729709544590.001604945941908920.999197527029046
590.001172732567290300.002345465134580600.99882726743271
600.001685576902217860.003371153804435720.998314423097782
610.001280190626898520.002560381253797050.998719809373101
620.001043676318064920.002087352636129850.998956323681935
630.0009249743405445180.001849948681089040.999075025659455
640.0007012709734200120.001402541946840020.99929872902658
650.0005768650996951750.001153730199390350.999423134900305
660.0004669582217692670.0009339164435385350.99953304177823
670.0003198080460935770.0006396160921871550.999680191953906
680.0002016909890416950.0004033819780833890.999798309010958
690.0001470118818533820.0002940237637067640.999852988118147
700.0001128331549853620.0002256663099707240.999887166845015
718.9378427583952e-050.0001787568551679040.999910621572416
727.69586584866899e-050.0001539173169733800.999923041341513
736.85470132695938e-050.0001370940265391880.99993145298673
746.72015008095592e-050.0001344030016191180.99993279849919
757.39842771423583e-050.0001479685542847170.999926015722858
768.74207943900195e-050.0001748415887800390.99991257920561
770.0001746642249032070.0003493284498064150.999825335775097
780.0003734237834150540.0007468475668301070.999626576216585
790.0006524585878680820.001304917175736160.999347541412132
800.001411656537139050.002823313074278110.99858834346286
810.006811956157791060.01362391231558210.993188043842209
820.03186875618696130.06373751237392270.968131243813039
830.1150134940339350.2300269880678700.884986505966065
840.2533385379035990.5066770758071970.746661462096401
850.4782027772373290.9564055544746580.521797222762671
860.7058454768007230.5883090463985540.294154523199277
870.8568524956433260.2862950087133490.143147504356674
880.9412218173812370.1175563652375250.0587781826187627
890.984616841093570.03076631781286180.0153831589064309
900.9936232492427850.01275350151442950.00637675075721474
910.9969882074965550.006023585006890510.00301179250344526
920.998967110439890.002065779120220940.00103288956011047
930.9997505885202950.0004988229594108490.000249411479705425
940.9999652378699446.95242601113807e-053.47621300556903e-05
950.9999956186960528.76260789689672e-064.38130394844836e-06
960.9999969277103416.14457931752989e-063.07228965876495e-06
970.9999969640821286.07183574442758e-063.03591787221379e-06
980.9999957235151148.55296977135885e-064.27648488567943e-06
990.9999932143694721.35712610567045e-056.78563052835226e-06
1000.9999878288200462.43423599072663e-051.21711799536332e-05
1010.9999809202828483.81594343037285e-051.90797171518642e-05
1020.9999693440165356.13119669300316e-053.06559834650158e-05
1030.9999559953944068.80092111886052e-054.40046055943026e-05
1040.9999451266025270.0001097467949462145.48733974731068e-05
1050.9999338004288840.0001323991422329266.6199571116463e-05
1060.999909536357310.0001809272853780819.04636426890405e-05
1070.999838929912730.0003221401745391950.000161070087269598
1080.9999273777416340.0001452445167310767.26222583655379e-05
1090.999979948763794.01024724185187e-052.00512362092593e-05
1100.9999943694008581.12611982841705e-055.63059914208525e-06
1110.9999942667960761.14664078473724e-055.73320392368622e-06
1120.999970030646645.99387067186541e-052.99693533593271e-05
1130.9998376511061860.000324697787627810.000162348893813905
1140.9988946460542350.002210707891530450.00110535394576522
1150.9969621450164340.006075709967131980.00303785498356599


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level900.9NOK
5% type I error level930.93NOK
10% type I error level940.94NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/10sd1e1293012842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/10sd1e1293012842.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/1lu421293012842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/1lu421293012842.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/2el3n1293012842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/2el3n1293012842.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/3el3n1293012842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/3el3n1293012842.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/4el3n1293012842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/4el3n1293012842.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/5el3n1293012842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/5el3n1293012842.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/6pd381293012842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/6pd381293012842.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/7hmkb1293012842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/7hmkb1293012842.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/8hmkb1293012842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/8hmkb1293012842.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/9hmkb1293012842.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t12930127587sk8tg3dzes9fx5/9hmkb1293012842.ps (open in new window)


 
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('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