Home » date » 2008 » Nov » 27 »

hk

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 27 Nov 2008 04:32:49 -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/Nov/27/t1227785755696rkmtj0n6l25f.htm/, Retrieved Thu, 27 Nov 2008 11:36:06 +0000
 
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/Nov/27/t1227785755696rkmtj0n6l25f.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},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
7,5 0 7,2 0 6,9 0 6,7 0 6,4 0 6,3 0 6,8 0 7,3 0 7,1 0 7,1 0 6,8 0 6,5 0 6,3 0 6,1 0 6,1 0 6,3 0 6,3 0 6 0 6,2 0 6,4 0 6,8 0 7,5 0 7,5 0 7,6 0 7,6 0 7,4 0 7,3 0 7,1 0 6,9 0 6,8 0 7,5 0 7,6 0 7,8 0 8,0 0 8,1 0 8,2 0 8,3 0 8,2 0 8,0 0 7,9 0 7,6 0 7,6 0 8,2 0 8,3 0 8,4 0 8,4 0 8,4 0 8,6 0 8,9 0 8,8 0 8,3 0 7,5 0 7,2 0 7,5 0 8,8 0 9,3 0 9,3 0 8,7 1 8,2 1 8,3 1 8,5 1 8,6 1 8,6 1 8,2 1 8,1 1 8,0 1 8,6 1 8,7 1 8,8 1 8,5 1 8,4 1 8,5 1 8,7 1 8,7 1 8,6 1 8,5 1 8,3 1 8,1 1 8,2 1 8,1 1 8,1 1 7,9 1 7,9 1 7,9 1 8,0 1 8,0 1 7,9 1 8,0 1 7,7 1 7,2 1 7,5 1 7,3 1 7,0 1 7,0 1 7,0 1 7,2 1 7,3 1 7,1 1 6,8 1 6,6 1 6,2 1 6,2 1 6,8 1 6,9 1 6.8 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
w[t] = + 7.23222965083163 -0.0486480761562996d[t] + 0.00802353896103895t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7.232229650831630.18028540.115500
d-0.04864807615629960.307403-0.15830.8745690.437284
t0.008023538961038950.0050521.58810.1153670.057684


Multiple Linear Regression - Regression Statistics
Multiple R0.273902779092826
R-squared0.0750227323947734
Adjusted R-squared0.0568859232260436
F-TEST (value)4.1364901453626
F-TEST (DF numerator)2
F-TEST (DF denominator)102
p-value0.0187363089238227
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.793083278944422
Sum Squared Residuals64.1560709088061


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
17.57.240253189792650.259746810207350
27.27.2482767287537-0.0482767287537039
36.97.25630026771474-0.356300267714739
46.77.26432380667578-0.56432380667578
56.47.27234734563682-0.872347345636819
66.37.28037088459786-0.98037088459786
76.87.2883944235589-0.488394423558898
87.37.296417962519940.00358203748006342
97.17.30444150148098-0.204441501480976
107.17.31246504044201-0.212465040442015
116.87.32048857940305-0.520488579403053
126.57.32851211836409-0.828512118364092
136.37.33653565732513-1.03653565732513
146.17.34455919628617-1.24455919628617
156.17.35258273524721-1.25258273524721
166.37.36060627420825-1.06060627420825
176.37.36862981316929-1.06862981316929
1867.37665335213033-1.37665335213033
196.27.38467689109136-1.18467689109136
206.47.3927004300524-0.992700430052404
216.87.40072396901344-0.600723969013443
227.57.408747507974480.091252492025518
237.57.416771046935520.0832289530644791
247.67.424794585896560.175205414103440
257.67.43281812485760.167181875142401
267.47.44084166381864-0.0408416638186374
277.37.44886520277968-0.148865202779677
287.17.45688874174072-0.356888741740716
296.97.46491228070175-0.564912280701754
306.87.4729358196628-0.672935819662794
317.57.480959358623830.0190406413761674
327.67.488982897584870.111017102415128
337.87.497006436545910.302993563454089
3487.505029975506950.494970024493050
358.17.513053514467990.586946485532011
368.27.521077053429030.678922946570972
378.37.529100592390070.770899407609934
388.27.53712413135110.662875868648894
3987.545147670312140.454852329687856
407.97.553171209273180.346828790726817
417.67.561194748234220.0388052517657774
427.67.569218287195260.0307817128047384
438.27.57724182615630.622758173843699
448.37.585265365117340.714734634882662
458.47.593288904078380.806711095921622
468.47.601312443039420.798687556960583
478.47.609335982000460.790664017999544
488.67.61735952096150.982640479038504
498.97.625383059922531.27461694007747
508.87.633406598883571.16659340111643
518.37.641430137844610.658569862155389
527.57.64945367680565-0.149453676805651
537.27.65747721576669-0.45747721576669
547.57.66550075472773-0.165500754727729
558.87.673524293688771.12647570631123
569.37.68154783264981.61845216735019
579.37.689571371610851.61042862838915
588.77.648946834415581.05105316558442
598.27.656970373376620.543029626623376
608.37.664993912337660.635006087662339
618.57.67301745129870.826982548701299
628.67.681040990259740.91895900974026
638.67.689064529220780.91093547077922
648.27.697088068181820.502911931818181
658.17.705111607142860.394888392857143
6687.71313514610390.286864853896104
678.67.721158685064930.878841314935065
688.77.729182224025970.970817775974025
698.87.737205762987011.06279423701299
708.57.745229301948050.754770698051948
718.47.753252840909090.64674715909091
728.57.761276379870130.73872362012987
738.77.769299918831170.93070008116883
748.77.777323457792210.922676542207792
758.67.785346996753250.814653003246753
768.57.793370535714290.706629464285714
778.37.801394074675320.498605925324676
788.17.809417613636360.290582386363636
798.27.81744115259740.382558847402597
808.17.825464691558440.274535308441558
818.17.833488230519480.266511769480519
827.97.841511769480520.058488230519481
837.97.849535308441560.050464691558442
847.97.85755884740260.0424411525974030
8587.865582386363640.134417613636364
8687.873605925324680.126394074675325
877.97.881629464285710.0183705357142861
8887.889653003246750.110346996753247
897.77.89767654220779-0.197676542207792
907.27.90570008116883-0.705700081168831
917.57.91372362012987-0.41372362012987
927.37.92174715909091-0.621747159090909
9377.92977069805195-0.929770698051948
9477.93779423701299-0.937794237012987
9577.94581777597403-0.945817775974026
967.27.95384131493507-0.753841314935065
977.37.9618648538961-0.661864853896104
987.17.96988839285714-0.869888392857143
996.87.97791193181818-1.17791193181818
1006.67.98593547077922-1.38593547077922
1016.27.99395900974026-1.79395900974026
1026.28.0019825487013-1.8019825487013
1036.88.01000608766234-1.21000608766234
1046.98.01802962662338-1.11802962662338
1056.88.02605316558441-1.22605316558442


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.001123684897130840.002247369794261680.99887631510287
70.03684216164813690.07368432329627370.963157838351863
80.1093228920420080.2186457840840150.890677107957992
90.07357839619139030.1471567923827810.92642160380861
100.04243004283509060.08486008567018110.95756995716491
110.02060254703243530.04120509406487070.979397452967565
120.01202606646472100.02405213292944210.98797393353528
130.008250672056415320.01650134411283060.991749327943585
140.006757912519327890.01351582503865580.993242087480672
150.004668591653604380.009337183307208770.995331408346396
160.002745018468406070.005490036936812130.997254981531594
170.001728710866608040.003457421733216080.998271289133392
180.001443257591141740.002886515182283490.998556742408858
190.001220903346593740.002441806693187490.998779096653406
200.001468484958534630.002936969917069260.998531515041465
210.004424600607860050.00884920121572010.99557539939214
220.04941825356918180.09883650713836370.950581746430818
230.1229498253211670.2458996506423340.877050174678833
240.2057806656968000.4115613313936010.7942193343032
250.2626454826745470.5252909653490950.737354517325453
260.2758181528394610.5516363056789220.72418184716054
270.2802383639809790.5604767279619590.71976163601902
280.2963701325730840.5927402651461680.703629867426916
290.3570425028707940.7140850057415880.642957497129206
300.4813566575345510.9627133150691020.518643342465449
310.5425487088775990.9149025822448020.457451291122401
320.6027147640041830.7945704719916340.397285235995817
330.6597854890735760.6804290218528490.340214510926424
340.7112945423125560.5774109153748880.288705457687444
350.7475942816532190.5048114366935610.252405718346781
360.7711750636405160.4576498727189680.228824936359484
370.7845840819523270.4308318360953470.215415918047673
380.7783955594430880.4432088811138240.221604440556912
390.7679201739613550.4641596520772890.232079826038645
400.7649519513523550.470096097295290.235048048647645
410.8142073565721790.3715852868556430.185792643427821
420.8681597594928750.2636804810142510.131840240507125
430.8604916717892040.2790166564215930.139508328210796
440.8473518762090520.3052962475818970.152648123790949
450.828909523851650.3421809522967020.171090476148351
460.8042763675867550.3914472648264890.195723632413245
470.7735678581053170.4528642837893660.226432141894683
480.7419400749614380.5161198500771240.258059925038562
490.7417843965521660.5164312068956680.258215603447834
500.7220288696526330.5559422606947330.277971130347367
510.6761081477939770.6477837044120460.323891852206023
520.8140392044543120.3719215910913750.185960795545688
530.9765064976604240.0469870046791520.023493502339576
540.9992441314268080.001511737146383850.000755868573191924
550.9993022613030710.001395477393857730.000697738696928867
560.9993035503881950.001392899223609260.000696449611804629
570.9992066357936740.001586728412651440.00079336420632572
580.9988224387491520.002355122501696330.00117756125084816
590.9994351498273470.001129700345306560.00056485017265328
600.9996496913158180.0007006173683646740.000350308684182337
610.9996271246064630.0007457507870732080.000372875393536604
620.9995032244062520.000993551187496240.00049677559374812
630.999314063864570.001371872270861240.000685936135430622
640.9997150364870970.0005699270258056860.000284963512902843
650.99995317515669.3649686801446e-054.6824843400723e-05
660.9999990433608611.91327827747949e-069.56639138739747e-07
670.9999989014731582.19705368359351e-061.09852684179675e-06
680.9999980215928433.95681431412567e-061.97840715706284e-06
690.9999956730386738.6539226534627e-064.32696132673135e-06
700.9999944463626961.11072746084123e-055.55363730420614e-06
710.999994989910861.00201782791256e-055.01008913956281e-06
720.9999922174241531.55651516948136e-057.7825758474068e-06
730.9999830460832763.39078334475568e-051.69539167237784e-05
740.9999667101070786.65797858434153e-053.32898929217077e-05
750.9999356000526230.0001287998947541356.43999473770677e-05
760.9998792214122240.0002415571755524720.000120778587776236
770.9997931114793930.0004137770412147550.000206888520607377
780.9997477790142980.0005044419714036170.000252220985701808
790.9995876048117180.0008247903765639220.000412395188281961
800.9993830476805410.001233904638917150.000616952319458577
810.9990296469540730.001940706091853620.000970353045926812
820.9988236661223120.002352667755376560.00117633387768828
830.9984140306492190.003171938701561450.00158596935078072
840.997674765581610.004650468836778160.00232523441838908
850.9963741363795440.007251727240912410.00362586362045620
860.9949197870549670.01016042589006530.00508021294503266
870.993166375189270.01366724962146020.00683362481073009
880.9947926801360.01041463972800030.00520731986400017
890.9942008470031750.01159830599365080.0057991529968254
900.9927664428211250.01446711435774970.00723355717887486
910.9902999512036680.01940009759266490.00970004879633243
920.985296743450990.02940651309801870.0147032565490093
930.9787487810764520.04250243784709540.0212512189235477
940.9670791093613670.06584178127726550.0329208906386328
950.946416125412510.1071677491749790.0535838745874896
960.9119771659090620.1760456681818770.0880228340909384
970.9027139518803860.1945720962392280.097286048119614
980.908971947183830.1820561056323390.0910280528161696
990.899194746904740.2016105061905210.100805253095260


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level400.425531914893617NOK
5% type I error level530.563829787234043NOK
10% type I error level570.606382978723404NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/10p5951227785563.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/10p5951227785563.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/1j5ur1227785563.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/1j5ur1227785563.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/2k2z61227785563.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/2k2z61227785563.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/3b5v71227785563.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/3b5v71227785563.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/4mvww1227785563.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/4mvww1227785563.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/5l0tu1227785563.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/5l0tu1227785563.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/6lroo1227785563.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/6lroo1227785563.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/7fxg01227785563.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/7fxg01227785563.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/8z1xt1227785563.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/8z1xt1227785563.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/9rzyj1227785563.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227785755696rkmtj0n6l25f/9rzyj1227785563.ps (open in new window)


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