Home » date » 2008 » Nov » 23 »

iraq en bel20

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Sun, 23 Nov 2008 05:49:18 -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/23/t1227445016q1u7slmp0b9hwh9.htm/, Retrieved Sun, 23 Nov 2008 12:56:56 +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/23/t1227445016q1u7slmp0b9hwh9.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 «
3045.78 3110.52 3013.24 2987.1 2995.55 2833.18 2848.96 2794.83 2845.26 2915.02 2892.63 2604.42 2641.65 2659.81 2638.53 2720.25 2745.88 2735.7 2811.7 2799.43 2555.28 2304.98 2214.95 2065.81 1940.49 2042 1995.37 1946.81 1765.9 1635.25 1833.42 1910.43 1959.67 1969.6 2061.41 2093.48 2120.88 2174.56 2196.72 2350.44 2440.25 2408.64 2472.81 2407.6 2454.62 2448.05 2497.84 2645.64 2756.76 2849.27 2921.44 2981.85 3080.58 3106.22 3119.31 3061.26 3097.31 3161.69 3257.16 3277.01 3295.32 3363.99 3494.17 3667.03 3813.06 3917.96 3895.51 3801.06 3570.12 3701.61 3862.27 3970.1 4138.52 4199.75 4290.89 4443.91 4502.64 4356.98 4591.27 4696.96 4621.4 4562.84 4202.52 4296.49 4435.23 4105.18 4116.68 3844.49 3720.98 3674.4 3857.62 3801.06 3504.37 3032.6 3047.03 2962.34
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
bel20[t] = + 2111.55555263158 + 19.9465672137819t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2111.55555263158117.47961817.973800
t19.94656721378192.1031669.484100


Multiple Linear Regression - Regression Statistics
Multiple R0.699274346948648
R-squared0.488984612300459
Adjusted R-squared0.483548278388762
F-TEST (value)89.9474940728568
F-TEST (DF numerator)1
F-TEST (DF denominator)94
p-value2.33146835171283e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation571.039688639098
Sum Squared Residuals30652114.6440976


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13045.782131.50211984536914.277880154644
23110.522151.44868705914959.071312940857
33013.242171.39525427292841.844745727075
42987.12191.34182148671795.758178513293
52995.552211.28838870049784.261611299512
62833.182231.23495591427601.94504408573
72848.962251.18152312805597.778476871948
82794.832271.12809034183523.701909658166
92845.262291.07465755562554.185342444384
102915.022311.0212247694603.998775230602
112892.632330.96779198318561.66220801682
122604.422350.91435919696253.505640803039
132641.652370.86092641074270.789073589257
142659.812390.80749362453269.002506375475
152638.532410.75406083831227.775939161693
162720.252430.70062805209289.549371947911
172745.882450.64719526587295.232804734129
182735.72470.59376247965265.106237520347
192811.72490.54032969343321.159670306565
202799.432510.48689690722288.943103092783
212555.282530.43346412124.8465358790017
222304.982550.38003133478-245.400031334780
232214.952570.32659854856-355.376598548563
242065.812590.27316576234-524.463165762344
251940.492610.21973297613-669.729732976126
2620422630.16630018991-588.166300189908
271995.372650.11286740369-654.74286740369
281946.812670.05943461747-723.249434617472
291765.92690.00600183125-924.106001831253
301635.252709.95256904504-1074.70256904504
311833.422729.89913625882-896.479136258817
321910.432749.8457034726-839.415703472599
331959.672769.79227068638-810.122270686381
341969.62789.73883790016-820.138837900163
352061.412809.68540511394-748.275405113945
362093.482829.63197232773-736.151972327727
372120.882849.57853954151-728.698539541508
382174.562869.52510675529-694.96510675529
392196.722889.47167396907-692.751673969072
402350.442909.41824118285-558.978241182854
412440.252929.36480839664-489.114808396636
422408.642949.31137561042-540.671375610418
432472.812969.2579428242-496.4479428242
442407.62989.20451003798-581.604510037982
452454.623009.15107725176-554.531077251764
462448.053029.09764446555-581.047644465545
472497.843049.04421167933-551.204211679327
482645.643068.99077889311-423.350778893109
492756.763088.93734610689-332.177346106891
502849.273108.88391332067-259.613913320673
512921.443128.83048053445-207.390480534455
522981.853148.77704774824-166.927047748237
533080.583168.72361496202-88.1436149620186
543106.223188.6701821758-82.4501821758006
553119.313208.61674938958-89.3067493895823
563061.263228.56331660336-167.303316603364
573097.313248.50988381715-151.199883817146
583161.693268.45645103093-106.766451030928
593257.163288.40301824471-31.2430182447099
603277.013308.34958545849-31.3395854584914
613295.323328.29615267227-32.9761526722734
623363.993348.2427198860615.7472801139444
633494.173368.18928709984125.980712900163
643667.033388.13585431362278.894145686381
653813.063408.0824215274404.977578472599
663917.963428.02898874118489.931011258817
673895.513447.97555595496447.534444045035
683801.063467.92212316875333.137876831253
693570.123487.8686903825382.2513096174713
703701.613507.81525759631193.794742403690
713862.273527.76182481009334.508175189908
723970.13547.70839202387422.391607976126
734138.523567.65495923766570.865040762344
744199.753587.60152645144612.148473548562
754290.893607.54809366522683.34190633478
764443.913627.494660879816.415339120998
774502.643647.44122809278855.198771907217
784356.983667.38779530657689.592204693434
794591.273687.33436252035903.935637479653
804696.963707.28092973413989.679070265871
814621.43727.22749694791894.172503052089
824562.843747.17406416169815.665935838307
834202.523767.12063137547435.399368624526
844296.493787.06719858926509.422801410743
854435.233807.01376580304628.216234196961
864105.183826.96033301682278.21966698318
874116.683846.9069002306269.773099769398
883844.493866.85346744438-22.3634674443844
893720.983886.80003465817-165.820034658166
903674.43906.74660187195-232.346601871948
913857.623926.69316908573-69.0731690857299
923801.063946.63973629951-145.579736299512
933504.373966.58630351329-462.216303513294
943032.63986.53287072708-953.932870727075
953047.034006.47943794086-959.449437940857
962962.344026.42600515464-1064.08600515464


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.0006002832579931210.001200566515986240.999399716742007
60.0002588338394939340.0005176676789878690.999741166160506
72.49977377467723e-054.99954754935446e-050.999975002262253
82.32636987289196e-064.65273974578393e-060.999997673630127
95.55822520641877e-071.11164504128375e-060.99999944417748
107.75368488592025e-071.55073697718405e-060.999999224631511
112.80210347721051e-075.60420695442103e-070.999999719789652
123.78192751899761e-077.56385503799522e-070.999999621807248
138.22557341690124e-081.64511468338025e-070.999999917744266
141.42488962808499e-082.84977925616999e-080.999999985751104
152.44987591334826e-094.89975182669652e-090.999999997550124
161.25989317025791e-092.51978634051583e-090.999999998740107
171.03594394083590e-092.07188788167180e-090.999999998964056
186.44966101492039e-101.28993220298408e-090.999999999355034
191.42991072736787e-092.85982145473575e-090.99999999857009
201.65850969298617e-093.31701938597234e-090.99999999834149
216.00210829695387e-101.20042165939077e-090.99999999939979
223.43329995552012e-096.86659991104024e-090.9999999965667
231.32718814721881e-082.65437629443762e-080.999999986728119
248.15572293057562e-081.63114458611512e-070.99999991844277
254.0802400476543e-078.1604800953086e-070.999999591975995
262.71215633838407e-075.42431267676814e-070.999999728784366
271.57676498524009e-073.15352997048018e-070.999999842323501
288.39834953541934e-081.67966990708387e-070.999999916016505
299.80868405187019e-081.96173681037404e-070.99999990191316
301.78215220297132e-073.56430440594263e-070.99999982178478
317.50180394609104e-081.50036078921821e-070.99999992498196
323.08973305669547e-086.17946611339093e-080.99999996910267
331.58108849018924e-083.16217698037848e-080.999999984189115
349.65234076102028e-091.93046815220406e-080.99999999034766
351.10101812419155e-082.20203624838310e-080.999999988989819
361.62541497349022e-083.25082994698044e-080.99999998374585
372.86019787583343e-085.72039575166687e-080.999999971398021
386.76882320576793e-081.35376464115359e-070.999999932311768
391.61776120930283e-073.23552241860565e-070.99999983822388
408.53859232697465e-071.70771846539493e-060.999999146140767
414.79956057469606e-069.59912114939211e-060.999995200439425
421.40061168772118e-052.80122337544236e-050.999985993883123
434.0738837929889e-058.1477675859778e-050.99995926116207
447.62357068094616e-050.0001524714136189230.99992376429319
450.0001485825446718680.0002971650893437370.999851417455328
460.0002677795587009880.0005355591174019770.9997322204413
470.0005141709881940960.001028341976388190.999485829011806
480.001206560053840610.002413120107681210.99879343994616
490.002943545359210560.005887090718421120.99705645464079
500.00678962329011360.01357924658022720.993210376709886
510.01401897978653530.02803795957307070.985981020213465
520.02573928573255690.05147857146511380.974260714267443
530.04425197563600270.08850395127200530.955748024363997
540.06690763082528190.1338152616505640.933092369174718
550.09238455772525730.1847691154505150.907615442274743
560.1199513834022430.2399027668044850.880048616597757
570.1549119073936360.3098238147872730.845088092606364
580.1989964478313390.3979928956626770.801003552168661
590.2518103258162020.5036206516324040.748189674183798
600.3153566994625280.6307133989250560.684643300537472
610.3948009425858320.7896018851716640.605199057414168
620.487287799845820.974575599691640.51271220015418
630.5787231838866510.8425536322266980.421276816113349
640.6553228187823190.6893543624353620.344677181217681
650.714450284640860.5710994307182790.285549715359140
660.7570557049281440.4858885901437120.242944295071856
670.7896233857010930.4207532285978130.210376614298907
680.8277497765846790.3445004468306420.172250223415321
690.909267891856170.1814642162876600.0907321081438298
700.9615793642529490.07684127149410270.0384206357470514
710.9858769983850240.02824600322995290.0141230016149764
720.9960117823080350.007976435383930680.00398821769196534
730.9987814442954330.002437111409134210.00121855570456710
740.9997154072495530.0005691855008936390.000284592750446819
750.9999387566326050.0001224867347896966.1243367394848e-05
760.9999740368104235.19263791540698e-052.59631895770349e-05
770.99998381596593.2368068200675e-051.61840341003375e-05
780.9999980175566693.96488666300752e-061.98244333150376e-06
790.9999977711813424.45763731653723e-062.22881865826861e-06
800.9999941099693621.17800612759533e-055.89003063797666e-06
810.999982875949443.42481011180742e-051.71240505590371e-05
820.9999479112422640.0001041775154719845.20887577359919e-05
830.9999471252815360.0001057494369279025.2874718463951e-05
840.9998660361703990.0002679276592020340.000133963829601017
850.9996285117357420.0007429765285162710.000371488264258136
860.998904130780790.002191738438418300.00109586921920915
870.9965068539067950.006986292186410750.00349314609320537
880.9921121648031520.0157756703936950.0078878351968475
890.9888706947142560.02225861057148710.0111293052857435
900.9912906418293220.01741871634135520.00870935817067761
910.9650292160930040.06994156781399140.0349707839069957


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level610.701149425287356NOK
5% type I error level670.770114942528736NOK
10% type I error level710.816091954022989NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/10w20u1227444546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/10w20u1227444546.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/1cod01227444546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/1cod01227444546.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/2vna91227444546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/2vna91227444546.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/31pns1227444546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/31pns1227444546.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/4k6wx1227444546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/4k6wx1227444546.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/5c7re1227444546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/5c7re1227444546.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/6l9ya1227444546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/6l9ya1227444546.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/74gjq1227444546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/74gjq1227444546.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/8a8bc1227444546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/8a8bc1227444546.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/9er9r1227444546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445016q1u7slmp0b9hwh9/9er9r1227444546.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