Home » date » 2010 » Dec » 10 »

Multiple Regression WS10

*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, 10 Dec 2010 09:09:44 +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/10/t1291972124b8njc03sjv8xq0e.htm/, Retrieved Fri, 10 Dec 2010 10:08:44 +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/10/t1291972124b8njc03sjv8xq0e.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 «
40399 44164 44496 43110 43880 195722 198563 229139 229527 211868 36763 40399 44164 44496 43110 202196 195722 198563 229139 229527 37903 36763 40399 44164 44496 205816 202196 195722 198563 229139 35532 37903 36763 40399 44164 212588 205816 202196 195722 198563 35533 35532 37903 36763 40399 214320 212588 205816 202196 195722 32110 35533 35532 37903 36763 220375 214320 212588 205816 202196 33374 32110 35533 35532 37903 204442 220375 214320 212588 205816 35462 33374 32110 35533 35532 206903 204442 220375 214320 212588 33508 35462 33374 32110 35533 214126 206903 204442 220375 214320 36080 33508 35462 33374 32110 226899 214126 206903 204442 220375 34560 36080 33508 35462 33374 223532 226899 214126 206903 204442 38737 34560 36080 33508 35462 195309 223532 226899 214126 206903 38144 38737 34560 36080 33508 186005 195309 223532 226899 214126 37594 38144 38737 34560 36080 188906 186005 195309 223532 226899 36424 37594 38144 38737 34560 191563 188906 186005 195309 223532 36843 36424 37594 38144 38737 1892 etc...
 
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 time7 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
OPENVAC[t] = + 2916.22308407620 + 1.20727819032451Y1[t] -0.0769374964679657Y2[t] -0.295020374564640Y3[t] + 0.106069047767341Y4[t] -0.0190621316848944NWWZ[t] + 0.00830310174893315X1[t] + 0.0416925619993690X2[t] -0.0618940493708573X3[t] + 0.0255099935589280X4[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2916.223084076202006.5817251.45330.1488560.074428
Y11.207278190324510.09633912.531500
Y2-0.07693749646796570.152589-0.50420.6150750.307538
Y3-0.2950203745646400.151992-1.9410.0547020.027351
Y40.1060690477673410.1000921.05970.2914950.145747
NWWZ-0.01906213168489440.019078-0.99920.3198040.159902
X10.008303101748933150.0296250.28030.7797680.389884
X20.04169256199936900.0311091.34020.182820.09141
X3-0.06189404937085730.028573-2.16620.032360.01618
X40.02550999355892800.0180461.41360.1601840.080092


Multiple Linear Regression - Regression Statistics
Multiple R0.967504886669294
R-squared0.936065705728964
Adjusted R-squared0.931062152264274
F-TEST (value)187.080184579781
F-TEST (DF numerator)9
F-TEST (DF denominator)115
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2052.68504885078
Sum Squared Residuals484554329.624184


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14039943416.6257715925-3017.62577159253
23676337458.9019670443-695.901967044333
33790335352.74197723282550.25802276717
43553237651.0541878872-2119.05418788717
53553335075.1970698027457.802930197315
63211034659.2299017477-2549.22990174765
73337431446.45515826991927.54484173008
83546233122.82352815372339.17647184635
93350835444.2076110100-1936.20761100996
103608033248.27942116052831.72057883955
113456035934.414637528-1374.41463752797
123873735357.70299987153379.2970001285
133814438747.7204399171-603.72043991706
143759437656.6730424655-62.6730424655093
153642436891.2441405552-467.244140555227
163684336182.4951281615660.504871838538
173724636605.818769037640.181230962978
183866137295.37520520281365.62479479720
194045438964.23869590521489.76130409485
204492840569.44558591934358.55441408066
214844145363.79029286453077.20970713551
224814049266.1249332942-1126.12493329416
234599847383.0213269791-1385.02132697914
244736945083.82987942912285.17012057089
254955446580.67115887372973.32884112627
264751048663.4924361199-1153.49243611992
274487346872.1237603823-1999.12376038229
284534443396.84843448801947.15156551195
294241344298.3247197018-1885.32471970177
303691241471.8652169968-4559.86521699679
314345234891.6828451198560.31715488099
324214243733.6434903281-1591.64349032808
334438242686.69502491641695.30497508356
344363643309.39243646326.60756354
354416743301.1296895678865.870310432216
364442344300.2625006992122.737499300848
374286843753.0939557405-885.093955740535
384390840597.45383958363310.54616041637
394201343978.84058619-1965.84058619004
403884641392.1656887526-2546.16568875256
413508737017.791381644-1930.79138164398
423302633577.3314554256-551.331455425634
433464632090.34412099962555.65587900044
443713534441.56101231502693.43898768496
453798537570.8246549117414.175345088343
464312137946.01291742785174.98708257222
474372243933.5722035703-211.572203570289
484363044165.625836671-535.625836671008
494223442260.6748667514-26.6748667514262
503935139978.9543501525-627.954350152471
513932738509.470399822817.529600178023
523570438400.1228517099-2696.12285170990
533046634464.0669654113-3998.06696541131
542815528387.0565314575-232.056531457502
552925726747.66487459632509.33512540367
562999829864.9582644656133.041735534424
573252929873.30163250182655.69836749819
583478733008.64833362491778.3516663751
593385535273.5694529508-1418.56945295083
603455634489.646968095966.3530319041103
613134833480.6622956257-2132.66229562572
623080529441.27271114121363.72728885883
632835330613.2074945979-2260.20749459794
642451428089.1841309380-3575.18413093796
652110623286.0262818105-2180.02628181046
662134620042.83505660981303.16494339020
672333521701.19015317221633.80984682783
682437924305.068426347573.931573652472
692629024942.87901026591347.12098973408
703008427004.75981858443079.24018141564
712942931027.0994862747-1598.09948627472
723063231111.81975047-479.819750469983
732734929584.1452670640-2235.14526706404
742726426045.06683431141218.93316568857
752747427415.822232785258.1777672147815
762448228144.9581758419-3662.95817584193
772145324080.0249398751-2627.02493987509
781878820595.9473655206-1807.94736552062
791928218570.8307214822711.169278517825
801971319550.329341445162.670658555016
812191720462.96042781711454.0395721829
822381223014.9130903398797.086909660217
832378525109.2281343581-1324.22813435808
842469625347.8728647611-651.872864761088
852456224668.8620498617-106.862049861737
862358023907.6542605707-327.654260570681
872493924510.9756013969428.024398603075
882389925745.7757619179-1846.77576191786
892145424263.4356575387-2809.43565753869
901976121200.928372505-1439.92837250498
911981519784.145161903030.8548380970458
922078020190.8470845858589.152915414245
932346221734.88233170121727.11766829877
942500524633.3948383678371.605161632174
952472526385.8202111246-1660.82021112457
962619826124.173812971073.8261870290377
972754326382.59509113171160.40490886832
982647127354.8210694773-883.8210694773
992655827570.8488477490-1012.84884774904
1002531726697.1700996389-1380.17009963886
1012289625629.7474073438-2733.74740734385
1022224822564.7013919538-316.701391953801
1032340622518.8537379387887.146262061253
1042507324151.2808331886921.719166811442
1052769125976.0431098441714.95689015598
1063059929143.48306098181455.51693901824
1073194832000.0952743487-52.0952743486932
1083294633302.1774809776-356.177480977608
1093401232806.47671955551205.52328044449
1103293633711.8992424468-775.899242446798
1113297433581.4363516315-607.436351631457
1123095132843.4550054186-1892.45500541863
1132981230656.9684964223-844.968496422295
1142901029531.7407406632-521.740740663159
1153106829236.06140169331831.93859830666
1163244731437.03277636781009.96722363224
1173484433218.29032690121625.70967309881
1183567635234.8157557156441.184244284417
1193538736307.0378494799-920.03784947986
1203648836337.6141961388150.385803861180
1213565235409.3136557818242.686344218198
1223348834934.6546951543-1446.65469515425
1233291433430.2448256227-516.244825622688
1242978132487.0279540819-2706.02795408193
1252795129138.8169170118-1187.81691701180


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
130.263961055385850.52792211077170.73603894461415
140.1699359209641450.3398718419282900.830064079035855
150.12204144429550.2440828885910.8779585557045
160.09155696638031960.1831139327606390.90844303361968
170.08870043585533610.1774008717106720.911299564144664
180.06917355277898370.1383471055579670.930826447221016
190.04569638400222560.09139276800445120.954303615997774
200.2829873718505060.5659747437010120.717012628149494
210.4694592808756370.9389185617512740.530540719124363
220.4187296900153850.837459380030770.581270309984615
230.3395869903452830.6791739806905670.660413009654717
240.2954495800147080.5908991600294150.704550419985292
250.3303109495610310.6606218991220630.669689050438969
260.2684672705156530.5369345410313070.731532729484346
270.4419248347659260.8838496695318520.558075165234074
280.3838865913869480.7677731827738960.616113408613052
290.364012432259990.728024864519980.63598756774001
300.685266633249980.6294667335000410.314733366750021
310.9796664210377370.04066715792452560.0203335789622628
320.9739996848063780.05200063038724420.0260003151936221
330.9725081932566250.05498361348674930.0274918067433746
340.963308108625390.0733837827492210.0366918913746105
350.9689826838457460.06203463230850730.0310173161542536
360.9590564591897920.08188708162041560.0409435408102078
370.9507251128604620.09854977427907570.0492748871395378
380.9718126878757470.05637462424850590.0281873121242530
390.9662819645597720.06743607088045530.0337180354402276
400.9740514261854370.05189714762912590.0259485738145630
410.9798454957506630.04030900849867460.0201545042493373
420.9764622801237430.04707543975251320.0235377198762566
430.9790376511738440.04192469765231150.0209623488261557
440.9850624568997520.02987508620049650.0149375431002483
450.9828176969517630.03436460609647370.0171823030482368
460.999404575863990.001190848272018930.000595424136009464
470.9992076391891220.001584721621755390.000792360810877696
480.9987740767449310.002451846510137380.00122592325506869
490.998268227328150.003463545343700620.00173177267185031
500.9975004353237560.004999129352487320.00249956467624366
510.9977601192029820.004479761594035990.00223988079701800
520.9975170784400040.004965843119992370.00248292155999618
530.9989940884028420.00201182319431660.0010059115971583
540.9986348592580370.002730281483925970.00136514074196299
550.9993424209922950.001315158015409170.000657579007704587
560.9989691708781370.002061658243725810.00103082912186291
570.9993302226499290.001339554700142000.000669777350071002
580.9993764597529460.001247080494108090.000623540247054047
590.999151363621850.001697272756299400.000848636378149701
600.9991058334108530.001788333178294460.00089416658914723
610.9991719627217380.001656074556523670.000828037278261835
620.9994606546944050.001078690611189480.000539345305594742
630.9995353487832860.0009293024334282920.000464651216714146
640.9998820839208740.0002358321582528430.000117916079126422
650.9999165953246050.0001668093507909508.34046753954748e-05
660.9999327418124820.0001345163750358046.72581875179022e-05
670.9999220627401870.0001558745196253687.79372598126838e-05
680.9998812419114060.0002375161771876850.000118758088593843
690.999882045506080.0002359089878404030.000117954493920201
700.999975551064214.88978715793147e-052.44489357896574e-05
710.9999679805631666.40388736684042e-053.20194368342021e-05
720.9999507542338569.84915322875772e-054.92457661437886e-05
730.9999639881150477.20237699050586e-053.60118849525293e-05
740.9999906867411181.86265177638103e-059.31325888190513e-06
750.999984841726083.03165478389833e-051.51582739194917e-05
760.999999461184421.07763116139596e-065.38815580697978e-07
770.9999994906218321.01875633693122e-065.0937816846561e-07
780.999999218082181.56383563932901e-067.81917819664507e-07
790.9999988815889022.23682219511868e-061.11841109755934e-06
800.9999977721872984.45562540433131e-062.22781270216566e-06
810.9999971580734515.68385309759361e-062.84192654879680e-06
820.9999954722421849.05551563160702e-064.52775781580351e-06
830.999991807442281.63851154396464e-058.19255771982318e-06
840.9999836509314753.26981370495917e-051.63490685247958e-05
850.9999689911038256.20177923500867e-053.10088961750433e-05
860.9999457550402940.0001084899194117295.42449597058644e-05
870.999921764511060.0001564709778815027.82354889407512e-05
880.999967126477436.57470451418735e-053.28735225709367e-05
890.9999881099992.37800020006994e-051.18900010003497e-05
900.9999768298096934.63403806148295e-052.31701903074148e-05
910.9999525109274849.497814503213e-054.7489072516065e-05
920.9998963786042740.0002072427914521320.000103621395726066
930.99985093724770.0002981255045995540.000149062752299777
940.9996833412334950.0006333175330094450.000316658766504723
950.9996597390458860.00068052190822730.00034026095411365
960.999319819522280.001360360955440360.000680180477720181
970.9986485554555950.002702889088810220.00135144454440511
980.9977379328277120.004524134344575420.00226206717228771
990.996540009963480.006919980073038890.00345999003651945
1000.9943891772876840.01122164542463220.00561082271231611
1010.9994405839389050.001118832122190930.000559416061095465
1020.9986708203557310.002658359288537110.00132917964426855
1030.9975603962056370.004879207588726020.00243960379436301
1040.9965263144519480.006947371096104810.00347368554805240
1050.99270720680610.01458558638779970.00729279319389984
1060.9842806126119730.0314387747760540.015719387388027
1070.9741587367920420.05168252641591560.0258412632079578
1080.9920600048907790.01587999021844240.00793999510922121
1090.9855864690581960.02882706188360890.0144135309418044
1100.981537693471690.03692461305662130.0184623065283106
1110.9667736096728550.06645278065428960.0332263903271448
1120.9169131783814750.1661736432370510.0830868216185254


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level580.58NOK
5% type I error level700.7NOK
10% type I error level820.82NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/10nr1m1291972174.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/10nr1m1291972174.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/1nxjy1291972173.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/1nxjy1291972173.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/2y70j1291972173.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/2y70j1291972173.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/3y70j1291972173.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/3y70j1291972173.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/4y70j1291972173.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/4y70j1291972173.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/5jq2g1291972174.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/5jq2g1291972174.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/6jq2g1291972174.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/6jq2g1291972174.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/7uhjj1291972174.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/7uhjj1291972174.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/8uhjj1291972174.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/8uhjj1291972174.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/9nr1m1291972174.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1291972124b8njc03sjv8xq0e/9nr1m1291972174.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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