Home » date » 2008 » Dec » 14 »

Prof bach regressie zonder trend 1 aug 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: Sun, 14 Dec 2008 11:30:08 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l.htm/, Retrieved Sun, 14 Dec 2008 19:35:48 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l.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 «
13363 0 12530 0 11420 0 10948 0 10173 0 10602 0 16094 0 19631 0 17140 0 14345 0 12632 0 12894 0 11808 0 10673 0 9939 0 9890 0 9283 0 10131 0 15864 0 19283 0 16203 0 13919 0 11937 0 11795 0 11268 0 10522 0 9929 0 9725 0 9372 0 10068 0 16230 0 19115 0 18351 0 16265 0 14103 0 14115 0 13327 0 12618 0 12129 0 11775 0 11493 0 12470 0 20792 0 22337 0 21325 0 18581 0 16475 0 16581 0 15745 0 14453 0 13712 0 13766 0 13336 0 15346 0 24446 0 26178 0 24628 0 21282 0 18850 0 18822 0 18060 0 17536 0 16417 0 15842 0 15188 0 16905 0 25430 0 27962 0 26607 0 23364 0 20827 0 20506 0 19181 0 18016 0 17354 0 16256 0 15770 0 17538 0 26899 0 28915 1 25247 1 22856 1 19980 1 19856 1 16994 1 16839 1 15618 1 15883 1 15513 1 17106 1 25272 1 26731 1 22891 1 19583 1 16939 1 16757 1 15435 1 14786 1 13680 1 13208 1 12707 1 14277 1 22436 1 23229 1 18241 1 16145 1 13994 1 14780 1 13100 1 12329 1 12463 1 11532 1 10784 1 13106 1 19491 1 20418 1 16094 1 14491 1 13067 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 time6 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
NWWZpb[t] = + 15920.3206590621 + 941.038022813692Dummy[t] -1374.53206590622M1[t] -2172.43206590621M2[t] -2936.53206590622M3[t] -3320.13206590620M4[t] -3840.73206590621M5[t] -2447.73206590621M6[t] + 5092.76793409378M7[t] + 7083.16413181242M8[t] + 4375.96413181242M9[t] + 1786.36413181242M10[t] -416.335868187578M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)15920.32065906211081.13702114.725500
Dummy941.038022813692620.7556351.5160.1325070.066254
M1-1374.532065906221462.842406-0.93960.3495430.174772
M2-2172.432065906211462.842406-1.48510.1404920.070246
M3-2936.532065906221462.842406-2.00740.047250.023625
M4-3320.132065906201462.842406-2.26960.0252530.012626
M5-3840.732065906211462.842406-2.62550.0099310.004965
M6-2447.732065906211462.842406-1.67330.0972230.048611
M75092.767934093781462.8424063.48140.0007260.000363
M87083.164131812421463.2813694.84064e-062e-06
M94375.964131812421463.2813692.99050.0034630.001732
M101786.364131812421463.2813691.22080.2248730.112436
M11-416.3358681875781463.281369-0.28450.7765650.388283


Multiple Linear Regression - Regression Statistics
Multiple R0.76332273674713
R-squared0.582661600435129
Adjusted R-squared0.535415743880616
F-TEST (value)12.3325439081168
F-TEST (DF numerator)12
F-TEST (DF denominator)106
p-value2.55351295663786e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3183.45374933728
Sum Squared Residuals1074244044.06198


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11336314545.7885931560-1182.78859315597
21253013747.8885931559-1217.88859315590
31142012983.7885931559-1563.78859315588
41094812600.1885931559-1652.18859315590
51017312079.5885931559-1906.58859315587
61060213472.5885931559-2870.58859315591
71609421013.0885931559-4919.08859315589
81963123003.4847908745-3372.48479087454
91714020296.2847908745-3156.28479087452
101434517706.6847908745-3361.68479087452
111263215503.9847908745-2871.98479087452
121289415920.3206590621-3026.32065906210
131180814545.7885931559-2737.78859315588
141067313747.8885931559-3074.88859315589
15993912983.7885931559-3044.78859315589
16989012600.1885931559-2710.18859315589
17928312079.5885931559-2796.58859315589
181013113472.5885931559-3341.58859315589
191586421013.0885931559-5149.08859315589
201928323003.4847908745-3720.48479087452
211620320296.2847908745-4093.28479087452
221391917706.6847908745-3787.68479087453
231193715503.9847908745-3566.98479087453
241179515920.3206590621-4125.3206590621
251126814545.7885931559-3277.78859315588
261052213747.8885931559-3225.88859315589
27992912983.7885931559-3054.78859315589
28972512600.1885931559-2875.18859315589
29937212079.5885931559-2707.58859315589
301006813472.5885931559-3404.58859315589
311623021013.0885931559-4783.08859315589
321911523003.4847908745-3888.48479087452
331835120296.2847908745-1945.28479087453
341626517706.6847908745-1441.68479087453
351410315503.9847908745-1400.98479087453
361411515920.3206590621-1805.32065906210
371332714545.7885931559-1218.78859315588
381261813747.8885931559-1129.88859315589
391212912983.7885931559-854.788593155894
401177512600.1885931559-825.188593155894
411149312079.5885931559-586.588593155895
421247013472.5885931559-1002.58859315589
432079221013.0885931559-221.088593155892
442233723003.4847908745-666.48479087452
452132520296.28479087451028.71520912548
461858117706.6847908745874.315209125475
471647515503.9847908745971.015209125475
481658115920.3206590621660.679340937897
491574514545.78859315591199.21140684412
501445313747.8885931559705.111406844108
511371212983.7885931559728.211406844106
521376612600.18859315591165.81140684411
531333612079.58859315591256.41140684410
541534613472.58859315591873.41140684411
552444621013.08859315593432.91140684411
562617823003.48479087453174.51520912548
572462820296.28479087454331.71520912547
582128217706.68479087453575.31520912547
591885015503.98479087453346.01520912547
601882215920.32065906212901.67934093790
611806014545.78859315593514.21140684412
621753613747.88859315593788.11140684411
631641712983.78859315593433.21140684411
641584212600.18859315593241.81140684411
651518812079.58859315593108.41140684410
661690513472.58859315593432.41140684411
672543021013.08859315594416.91140684410
682796223003.48479087454958.51520912548
692660720296.28479087456310.71520912547
702336417706.68479087455657.31520912548
712082715503.98479087455323.01520912547
722050615920.32065906214585.6793409379
731918114545.78859315594635.21140684412
741801613747.88859315594268.11140684411
751735412983.78859315594370.21140684411
761625612600.18859315593655.81140684411
771577012079.58859315593690.41140684410
781753813472.58859315594065.41140684411
792689921013.08859315595885.9114068441
802891523944.52281368824970.47718631179
812524721237.32281368824009.67718631178
822285618647.72281368824208.27718631179
831998016445.02281368823534.97718631179
841985616861.35868187582994.64131812421
851699415486.82661596961507.17338403043
861683914688.92661596962150.07338403042
871561813924.82661596961693.17338403042
881588313541.22661596962341.77338403042
891551313020.62661596962492.37338403041
901710614413.62661596962692.37338403042
912527221954.12661596963317.87338403042
922673123944.52281368822786.47718631179
932289121237.32281368821653.67718631179
941958318647.7228136882935.277186311787
951693916445.0228136882493.977186311786
961675716861.3586818758-104.358681875793
971543515486.8266159696-51.8266159695742
981478614688.926615969697.0733840304188
991368013924.8266159696-244.826615969584
1001320813541.2266159696-333.226615969585
1011270713020.6266159696-313.626615969586
1021427714413.6266159696-136.626615969581
1032243621954.1266159696481.873384030419
1042322923944.5228136882-715.52281368821
1051824121237.3228136882-2996.32281368821
1061614518647.7228136882-2502.72281368821
1071399416445.0228136882-2451.02281368821
1081478016861.3586818758-2081.35868187579
1091310015486.8266159696-2386.82661596957
1101232914688.9266159696-2359.92661596958
1111246313924.8266159696-1461.82661596958
1121153213541.2266159696-2009.22661596959
1131078413020.6266159696-2236.62661596959
1141310614413.6266159696-1307.62661596958
1151949121954.1266159696-2463.12661596958
1162041823944.5228136882-3526.52281368821
1171609421237.3228136882-5143.32281368822
1181449118647.7228136882-4156.72281368821
1191306716445.0228136882-3378.02281368822


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.07072497018553530.1414499403710710.929275029814465
170.02598310071495770.05196620142991550.974016899285042
180.008343726959246720.01668745391849340.991656273040753
190.002634618041837030.005269236083674070.997365381958163
200.0007793704135457650.001558740827091530.999220629586454
210.0002975001698112570.0005950003396225140.999702499830189
228.98213881227925e-050.0001796427762455850.999910178611877
232.99824301458857e-055.99648602917714e-050.999970017569854
241.42428780625037e-052.84857561250074e-050.999985757121937
251.00670118582700e-052.01340237165400e-050.999989932988142
265.48297185037026e-061.09659437007405e-050.99999451702815
272.28738851329178e-064.57477702658356e-060.999997712611487
289.22228081990296e-071.84445616398059e-060.999999077771918
293.12079594621253e-076.24159189242507e-070.999999687920405
301.17458927211635e-072.34917854423271e-070.999999882541073
316.55658981978292e-081.31131796395658e-070.999999934434102
323.41483833497277e-086.82967666994554e-080.999999965851617
336.38579973721487e-081.27715994744297e-070.999999936142003
342.16035252372264e-074.32070504744529e-070.999999783964748
353.45393022677313e-076.90786045354627e-070.999999654606977
365.3634308152609e-071.07268616305218e-060.999999463656918
374.34219524337848e-078.68439048675695e-070.999999565780476
384.33731338690846e-078.67462677381692e-070.999999566268661
395.96343416581236e-071.19268683316247e-060.999999403656583
407.03574979852023e-071.40714995970405e-060.99999929642502
411.09157951687510e-062.18315903375020e-060.999998908420483
422.76585199278257e-065.53170398556514e-060.999997234148007
430.0001828994545037210.0003657989090074420.999817100545496
440.0005911935754517110.001182387150903420.999408806424548
450.002571847780074690.005143695560149380.997428152219925
460.006292196738712280.01258439347742460.993707803261288
470.01176414029299710.02352828058599420.988235859707003
480.02171581383577540.04343162767155090.978284186164225
490.03120698197456810.06241396394913620.968793018025432
500.04037508766549110.08075017533098230.95962491233451
510.05116314442995530.1023262888599110.948836855570045
520.06493305539175580.1298661107835120.935066944608244
530.08106757282745620.1621351456549120.918932427172544
540.1309744823509250.261948964701850.869025517649075
550.3261579452168810.6523158904337630.673842054783119
560.4668262226924510.9336524453849010.533173777307549
570.5902377943207830.8195244113584340.409762205679217
580.652209403986270.6955811920274610.347790596013731
590.687673471709530.624653056580940.31232652829047
600.7213761588149870.5572476823700270.278623841185014
610.7431974091397390.5136051817205220.256802590860261
620.7697838736009690.4604322527980620.230216126399031
630.7839183794350960.4321632411298080.216081620564904
640.7878111579454170.4243776841091670.212188842054583
650.7878657089045740.4242685821908530.212134291095426
660.7998283356598850.4003433286802290.200171664340115
670.8339234587192610.3321530825614780.166076541280739
680.8564972331788930.2870055336422130.143502766821107
690.8869230143434320.2261539713131360.113076985656568
700.89839719187810.2032056162438000.101602808121900
710.9021084155779720.1957831688440560.097891584422028
720.8977186848017250.2045626303965500.102281315198275
730.8900043920205060.2199912159589880.109995607979494
740.877559657432920.2448806851341600.122440342567080
750.8642774847464120.2714450305071770.135722515253588
760.8428442480487170.3143115039025670.157155751951283
770.8191446333450870.3617107333098260.180855366654913
780.800990287682420.3980194246351590.199009712317580
790.7996209210897980.4007581578204030.200379078910202
800.8280717843718590.3438564312562820.171928215628141
810.878031800907480.2439363981850410.121968199092521
820.9211559318781520.1576881362436960.0788440681218478
830.9442833275390960.1114333449218070.0557166724609034
840.9465980527056970.1068038945886050.0534019472943027
850.9374544694079260.1250910611841480.062545530592074
860.9314846897108830.1370306205782330.0685153102891165
870.9169764841042190.1660470317915630.0830235158957816
880.912748727950270.1745025440994610.0872512720497305
890.9132515320225260.1734969359549490.0867484679774744
900.9083856920340970.1832286159318060.0916143079659029
910.9224313265842550.1551373468314910.0775686734157455
920.9500076069301220.09998478613975510.0499923930698776
930.9849207910692710.03015841786145710.0150792089307286
940.9931372580872220.01372548382555530.00686274191277763
950.995709603045270.008580793909458360.00429039695472918
960.993276973641830.01344605271633910.00672302635816957
970.990763581238420.01847283752315870.00923641876157937
980.9879442266333140.02411154673337130.0120557733666856
990.975967835535850.04806432892830040.0240321644641502
1000.9578485388056280.08430292238874410.0421514611943721
1010.9310246393642360.1379507212715280.0689753606357638
1020.8663750342035080.2672499315929850.133624965796492
1030.8420262971089870.3159474057820270.157973702891013


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level280.318181818181818NOK
5% type I error level380.431818181818182NOK
10% type I error level430.488636363636364NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/10pkoz1229279399.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/10pkoz1229279399.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/1gq3q1229279399.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/1gq3q1229279399.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/3fkbq1229279399.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/3fkbq1229279399.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/4ov8s1229279399.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/4ov8s1229279399.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/69zaz1229279399.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/69zaz1229279399.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/786kj1229279399.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229279736cc27f28sigxen1l/786kj1229279399.ps (open in new window)


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


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


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

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

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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


Privacy Policy

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

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

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

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

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

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

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

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

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


FreeStatistics.org is powered by