Home » date » 2008 » Dec » 12 »

regressie master 1 juli 2005

*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: Fri, 12 Dec 2008 11:24:20 -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/12/t12291063880xk5fp64wskjjz1.htm/, Retrieved Fri, 12 Dec 2008 19:26: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/2008/Dec/12/t12291063880xk5fp64wskjjz1.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 1 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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
NWWZm[t] = + 7816.03693677434 -3678.67929976539Dummy[t] -764.203148248423M1[t] -1549.10260281939M2[t] -2114.70205739036M3[t] -2530.00151196134M4[t] -2968.70096653232M5[t] -2702.90042110329M6[t] + 2468.56805430227M7[t] + 3969.8685997313M8[t] + 3028.56914516032M9[t] + 1384.26969058934M10[t] -83.5297639816325M11[t] + 87.599454570976t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7816.03693677434873.76448.945200
Dummy-3678.67929976539766.875765-4.7975e-063e-06
M1-764.2031482484231033.345158-0.73950.4612280.230614
M2-1549.102602819391033.071836-1.49950.1367420.068371
M3-2114.702057390361032.907154-2.04730.0431220.021561
M4-2530.001511961341032.851164-2.44950.0159590.007979
M5-2968.700966532321032.903884-2.87410.0049050.002452
M6-2702.900421103291033.065298-2.61640.0101960.005098
M72468.568054302271033.6367852.38820.0187160.009358
M83969.86859973131033.3684423.84170.0002090.000105
M93028.569145160321033.208712.93120.0041440.002072
M101384.269690589341033.157641.33980.1831890.091594
M11-83.52976398163251033.215247-0.08080.935720.46786
t87.59945457097610.5964188.266900


Multiple Linear Regression - Regression Statistics
Multiple R0.813439715126318
R-squared0.661684170144785
Adjusted R-squared0.619797448353187
F-TEST (value)15.7969910712256
F-TEST (DF numerator)13
F-TEST (DF denominator)105
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2247.70458376204
Sum Squared Residuals530478469.065812


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
183107139.433243096981170.56675690302
276496442.13324309691206.86675690310
372795964.13324309691314.86675690310
468575636.433243096911220.56675690309
564965285.333243096911210.66675690309
662805638.73324309691641.266756903087
7896210897.8011730735-1935.80117307345
81120512486.7011730735-1281.70117307345
91036311633.0011730734-1270.00117307344
10917510076.3011730735-901.301173073462
1182348696.10117307344-462.101173073444
1281218867.23039162606-746.230391626054
1374388190.62669794862-752.626697948617
1468767493.32669794863-617.326697948635
1564897015.32669794863-526.326697948625
1663196687.62669794862-368.626697948623
1759526336.52669794862-384.526697948623
1860556689.92669794862-634.926697948623
19910711948.9946279252-2841.99462792516
201149313537.8946279252-2044.89462792516
211021312684.1946279252-2471.19462792516
22923811127.4946279252-1889.49462792516
2382189747.29462792516-1529.29462792516
2479959918.42384647777-1923.42384647777
2575819241.82015280033-1660.82015280033
2670518544.52015280034-1493.52015280034
2766688066.52015280034-1398.52015280034
2864337738.82015280033-1305.82015280033
2961357387.72015280033-1252.72015280033
3063657741.12015280033-1376.12015280033
311009513000.1880827769-2905.18808277688
321202914589.0880827769-2560.08808277688
331218413735.3880827769-1551.38808277688
341133112178.6880827769-847.688082776873
35996110798.4880827769-837.488082776876
36973910969.6173013295-1230.61730132948
37908010293.0136076520-1213.01360765204
3885079595.71360765205-1088.71360765205
3980979117.71360765205-1020.71360765205
4077728790.01360765205-1018.01360765205
4174408438.91360765205-998.913607652048
4279028792.31360765205-890.313607652047
431353914051.3815376286-512.381537628587
441499215640.2815376286-648.281537628586
451543614786.5815376286649.418462371412
461415613229.8815376286926.118462371414
471284611849.6815376286996.318462371412
481230212020.8107561812281.189243818804
491169111344.2070625038346.792937496247
501064810646.90706250381.09293749623943
511006410168.9070625038-104.907062503762
52100169841.20706250376174.792937496239
5396919490.10706250376200.89293749624
54102609843.50706250376416.492937496240
551688215102.57499248031779.42500751970
561857316691.47499248031881.52500751970
571822715837.77499248032389.2250075197
581634614281.07499248032064.92500751970
591469412900.87499248031793.1250075197
601445313072.00421103291380.99578896709
611394912395.40051735551553.59948264453
621327711698.10051735551578.89948264453
631272611220.10051735551505.89948264453
641227910892.40051735551386.59948264453
651181910541.30051735551277.69948264453
661220710894.70051735551312.29948264453
671863716153.7684473322483.23155266799
682051917742.6684473322776.33155266799
691997416888.9684473323085.03155266799
701780215332.2684473322469.73155266799
711599713952.0684473322044.93155266799
721543014123.19766588461306.80233411538
731445213446.59397220721005.40602779282
741361412749.2939722072864.706027792816
751308012271.2939722072808.706027792814
761229011943.5939722072346.406027792815
771189011592.4939722072297.506027792815
781229211945.8939722072346.106027792815
791870013526.28260241835173.71739758166
802038815115.18260241835272.81739758166
811917014261.48260241834908.51739758167
821753012704.78260241834825.21739758167
831556411324.58260241834239.41739758166
841516311495.71182097093667.28817902906
851340610819.10812729352586.8918727065
861276310121.80812729352641.19187270649
87120839643.808127293512439.19187270649
88120549316.108127293512737.89187270649
89117708965.00812729352804.99187270649
90122669318.40812729352947.59187270649
911754914577.47605727002971.52394272995
921865516166.37605727002488.62394272995
931727915312.67605727001966.32394272995
941478813755.97605727001032.02394272995
951313812375.7760572700762.223942729952
961249412546.9052758227-52.9052758226561
971176711870.3015821452-103.301582145214
981092811173.0015821452-245.001582145221
991010410695.0015821452-591.001582145223
100976010367.3015821452-607.301582145221
101953610016.2015821452-480.201582145221
102997810369.6015821452-391.601582145221
1031484615628.6695121218-782.66951212176
1041556517217.5695121218-1652.56951212176
1051358716363.8695121218-2776.86951212176
1061180414807.1695121218-3003.16951212176
1071061113426.9695121218-2815.96951212176
1081091513598.0987306744-2683.09873067437
109998812921.4950369969-2933.49503699693
110937612224.1950369969-2848.19503699693
111931911746.1950369969-2427.19503699693
112885211418.4950369969-2566.49503699693
113839211067.3950369969-2675.39503699693
114905011420.7950369969-2370.79503699693
1151325016679.8629669735-3429.86296697347
1161403718268.7629669735-4231.76296697347
1171248617415.0629669735-4929.06296697347
1181118215858.3629669735-4676.36296697347
1191028714478.1629669735-4191.16296697347


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.0001933604570032660.0003867209140065310.999806639542997
187.43633602070481e-050.0001487267204140960.999925636639793
196.55516804436995e-050.0001311033608873990.999934448319556
203.39654362305023e-056.79308724610045e-050.99996603456377
215.24860541334412e-061.04972108266882e-050.999994751394587
221.06178968403694e-062.12357936807389e-060.999998938210316
231.73065401566452e-073.46130803132905e-070.999999826934598
242.42042642816732e-084.84085285633465e-080.999999975795736
253.19008377876306e-096.38016755752613e-090.999999996809916
264.3944843215048e-108.7889686430096e-100.999999999560552
275.69488007043488e-111.13897601408698e-100.999999999943051
287.75886050600847e-121.55177210120169e-110.99999999999224
291.15389571285764e-122.30779142571528e-120.999999999998846
304.26218080433194e-138.52436160866388e-130.999999999999574
311.90810674152520e-113.81621348305041e-110.999999999980919
322.12625095138846e-114.25250190277692e-110.999999999978737
331.91982382107480e-093.83964764214961e-090.999999998080176
342.76043272840395e-085.52086545680791e-080.999999972395673
355.1549637526799e-081.03099275053598e-070.999999948450363
367.39639704807198e-081.47927940961440e-070.99999992603603
375.07383054602123e-081.01476610920425e-070.999999949261695
383.42843116590167e-086.85686233180334e-080.999999965715688
392.30097276720339e-084.60194553440679e-080.999999976990272
401.61414788075985e-083.22829576151971e-080.99999998385852
411.28990314155169e-082.57980628310338e-080.999999987100969
421.84014763084534e-083.68029526169068e-080.999999981598524
435.86759133835745e-061.17351826767149e-050.999994132408662
445.90544509016369e-050.0001181089018032740.999940945549098
450.0009229747363379820.001845949472675960.999077025263662
460.003766583378965340.007533166757930670.996233416621035
470.009121297185730130.01824259437146030.99087870281427
480.01821901233684380.03643802467368760.981780987663156
490.02667233260470810.05334466520941620.973327667395292
500.04212133115305150.0842426623061030.957878668846949
510.07538094149043050.1507618829808610.92461905850957
520.1362907394534350.2725814789068710.863709260546565
530.2683538819985500.5367077639970990.73164611800145
540.5418707555623400.9162584888753190.458129244437660
550.8757480287622470.2485039424755050.124251971237753
560.97111855252780.05776289494439920.0288814474721996
570.9902957608598160.01940847828036740.0097042391401837
580.9955545788901750.008890842219650290.00444542110982514
590.9982690099843550.003461980031289690.00173099001564484
600.999373772257690.001252455484618770.000626227742309385
610.9995950866331750.0008098267336502420.000404913366825121
620.9997579941405580.0004840117188830990.000242005859441549
630.9998834587885650.0002330824228704960.000116541211435248
640.9999611960539027.76078921968571e-053.88039460984286e-05
650.9999947009921621.05980156763187e-055.29900783815933e-06
660.9999998961470572.07705886784182e-071.03852943392091e-07
670.9999999568670458.62659093134305e-084.31329546567153e-08
680.9999999496320441.00735911925264e-075.03679559626318e-08
690.9999999666215486.67569039384631e-083.33784519692316e-08
700.9999999486011.02798002068444e-075.13990010342219e-08
710.999999881556262.36887482238968e-071.18443741119484e-07
720.9999997216315755.56736850459848e-072.78368425229924e-07
730.9999994677716381.06445672509370e-065.32228362546852e-07
740.9999989660459652.06790807045368e-061.03395403522684e-06
750.9999981961066123.60778677510643e-061.80389338755322e-06
760.9999963844456497.23110870299769e-063.61555435149884e-06
770.9999927610255741.44779488527420e-057.23897442637102e-06
780.9999849803222963.00393554088654e-051.50196777044327e-05
790.9999711236323455.77527353103505e-052.88763676551753e-05
800.999942759124430.0001144817511404245.72408755702121e-05
810.9999307803958240.0001384392083517776.92196041758887e-05
820.9999518233297129.6353340576327e-054.81766702881635e-05
830.9999220823126450.0001558353747095487.79176873547738e-05
840.999892512723240.0002149745535183010.000107487276759150
850.9998261685422170.0003476629155651960.000173831457782598
860.9996853617656160.0006292764687685150.000314638234384257
870.999469917512460.001060164975080020.00053008248754001
880.9989548682996190.002090263400761960.00104513170038098
890.9979391977600420.004121604479915740.00206080223995787
900.9959233528582050.008153294283589770.00407664714179489
910.9944317388400180.01113652231996350.00556826115998173
920.9960978894873390.007804221025322850.00390211051266143
930.9997221190447840.000555761910432760.00027788095521638
940.9999495102057630.0001009795884746645.04897942373322e-05
950.9999743925967925.12148064161872e-052.56074032080936e-05
960.999945103354190.0001097932916213385.4896645810669e-05
970.9999336816192270.0001326367615459616.63183807729805e-05
980.9998679192313730.0002641615372538420.000132080768626921
990.999512970695510.0009740586089801130.000487029304490057
1000.998011144387070.003977711225859960.00198885561292998
1010.9919008231660250.01619835366794980.00809917683397489
1020.968038059447640.06392388110471780.0319619405523589


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level720.837209302325581NOK
5% type I error level770.895348837209302NOK
10% type I error level810.94186046511628NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/10bp7e1229106254.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/10bp7e1229106254.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/19vdi1229106254.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/19vdi1229106254.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/2hqmu1229106254.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/2hqmu1229106254.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/3tvcc1229106254.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/3tvcc1229106254.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/4ie0z1229106254.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/4ie0z1229106254.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/5zmqe1229106254.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/5zmqe1229106254.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/6alhb1229106254.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/6alhb1229106254.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/7ikwd1229106254.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/7ikwd1229106254.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/88adm1229106254.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/88adm1229106254.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/926nl1229106254.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t12291063880xk5fp64wskjjz1/926nl1229106254.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