Home » date » 2010 » Dec » 18 »

Paper Multiple Regression

*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: Sat, 18 Dec 2010 18:58:17 +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/18/t1292698578yd1rwxof7q9t0zg.htm/, Retrieved Sat, 18 Dec 2010 19:56:18 +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/18/t1292698578yd1rwxof7q9t0zg.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 «
97.06 21.454 631.923 130.678 97.73 23.899 654.294 120.877 98 24.939 671.833 137.114 97.76 23.580 586.840 134.406 97.48 24.562 600.969 120.262 97.77 24.696 625.568 130.846 97.96 23.785 558.110 120.343 98.22 23.812 630.577 98.881 98.51 21.917 628.654 115.678 98.19 19.713 603.184 120.796 98.37 19.282 656.255 94.261 98.31 18.788 600.730 89.151 98.6 21.453 670.326 119.880 98.96 24.482 678.423 131.468 99.11 27.474 641.502 155.089 99.64 27.264 625.311 149.581 100.02 27.349 628.177 122.788 99.98 30.632 589.767 143.900 100.32 29.429 582.471 112.115 100.44 30.084 636.248 109.600 100.51 26.290 599.885 117.446 101 24.379 621.694 118.456 100.88 23.335 637.406 101.901 100.55 21.346 595.994 89.940 100.82 21.106 696.308 129.143 101.5 24.514 674.201 126.102 102.15 28.353 648.861 143.048 102.39 30.805 649.605 142.258 102.54 31.348 672.392 131.011 102.85 34.556 598.396 146.471 103.47 33.855 613.177 114.073 103.56 34.787 638.104 114.642 103.69 32.529 615.632 118.226 103.49 29.998 634.465 111.338 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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
werklozen[t] = -229.959847776113 + 9.08718983433678CPI[t] -5.11489725323218vacatures[t] + 0.71790755702576inschrijvingen[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-229.959847776113121.51843-1.89240.0620570.031028
CPI9.087189834336781.2724367.141600
vacatures-5.114897253232180.76071-6.723800
inschrijvingen0.717907557025760.1957963.66660.0004410.00022


Multiple Linear Regression - Regression Statistics
Multiple R0.639302254189665
R-squared0.408707372211987
Adjusted R-squared0.386533898669936
F-TEST (value)18.4322664393065
F-TEST (DF numerator)3
F-TEST (DF denominator)80
p-value3.48979267705829e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation32.5867879364038
Sum Squared Residuals84951.8998409722


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1631.923636.122515610784-4.19951561078404
2654.294622.66879704922731.6252029507731
3671.833631.45951016456440.3734898354363
4586.84634.28563630704-47.4456363070397
5600.969616.564309564179-15.5953095641790
6625.568626.112531967764-0.544531967764153
7558.11624.958586362541-66.848586362541
8630.577611.77542150474418.8015784952555
9628.654636.162130086939-7.50813008693892
10603.184648.201713762933-45.0177137629327
11656.255632.99225162357823.2627483764221
12600.73631.305271860213-30.5752718602127
13670.326642.36993705215127.9560629478489
14678.423638.46741438328739.9555856167134
15641.502641.4844146812720.017585318727991
16625.311643.420518892551-18.1095188925513
17628.177627.2039875876830.973012412316698
18589.767625.204756655877-35.4377566558765
19582.471611.628930895125-29.1579308951254
20636.248607.56359846845928.684401531541
21599.885633.23832462805-33.3533246280497
22621.694648.190702930397-26.4967029303974
23637.406640.55523327609-3.14923327608991
24595.994639.143098977852-43.1490989778524
25696.308670.9683455319825.3396544680201
26674.201657.53290789939816.6680921006016
27648.861655.969152197918-7.10815219791755
28649.605645.0412027231834.56379727681734
29672.392635.5525856959636.8394143040406
30598.396633.059874987853-34.6638749878532
31613.177619.020706627137-5.84370662713714
32638.104615.47995887216322.6240411278373
33615.632630.783712232805-15.1517122328051
34634.465636.967131961075-2.50213196107487
35638.686638.6824048011560.00359519884371367
36604.243623.900181652532-19.6571816525323
37706.669659.98758992667346.6814100733268
38677.185630.33134094234346.8536590576569
39644.328632.51219275211511.8158072478854
40664.825615.87003795822848.9549620417723
41605.707597.5030757934348.20392420656637
42600.136599.4247131354980.711286864501609
43612.166589.50205529539522.6639447046054
44599.659584.3198304783915.3391695216096
45634.21613.24378505304120.9662149469592
46618.234612.3613795867195.87262041328069
47613.576625.868452505915-12.2924525059149
48627.2612.34965421236514.8503457876349
49668.973645.9368346043923.0361653956104
50651.479624.32001675378227.1589832462179
51619.661628.826006643577-9.16500664357696
52644.26606.73126810507537.5287318949249
53579.936618.233004382386-38.2970043823858
54601.752616.375394581715-14.6233945817146
55595.376606.97366150835-11.5976615083504
56588.902595.874600082814-6.97260008281352
57634.341573.2754014261261.0655985738805
58594.305619.530048105428-25.2250481054281
59606.2606.941170898473-0.741170898473318
60610.926622.801254113527-11.8752541135269
61633.685641.422577762173-7.73757776217325
62639.696637.7975510236061.89844897639414
63659.451647.0751091729712.3758908270298
64593.248647.527074099121-54.2790740991208
65606.677629.448264196804-22.7712641968042
66599.434654.436775282043-55.0027752820429
67569.578650.657821385403-81.0798213854033
68629.873619.0016085870710.8713914129302
69613.438631.181538683885-17.7435386838851
70604.172651.381733389248-47.2097333892476
71658.328644.07146656139214.2565334386082
72612.633644.676481964009-32.0434819640092
73707.372678.70663516793128.6653648320686
74739.77686.78615459928552.9838454007151
75777.535697.40344497701180.1315550229886
76685.03691.45657114709-6.42657114709059
77730.234675.06083184740655.1731681525944
78714.154684.61681311760729.5371868823935
79630.872691.535247981449-60.6632479814492
80719.492675.4333648208344.0586351791699
81677.023695.348851702982-18.3258517029816
82679.272685.977410237784-6.70541023778377
83718.317686.65240239793831.6645976020622
84645.672684.386741572752-38.7147415727519


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.904101303034990.1917973939300190.0958986969650096
80.9228299735681070.1543400528637870.0771700264318933
90.86835918813830.2632816237233980.131640811861699
100.8148193502808040.3703612994383930.185180649719196
110.8104938916991030.3790122166017930.189506108300897
120.7737851140812950.4524297718374110.226214885918705
130.769336016538970.4613279669220590.230663983461030
140.7175783066677030.5648433866645940.282421693332297
150.6874403229061460.6251193541877070.312559677093854
160.6808796566822830.6382406866354340.319120343317717
170.615069788643840.769860422712320.38493021135616
180.644545948218430.7109081035631390.355454051781570
190.6120895645714230.7758208708571540.387910435428577
200.5995510843133050.8008978313733910.400448915686695
210.5877557510390090.8244884979219820.412244248960991
220.5395040575494540.9209918849010920.460495942450546
230.4743026009435330.9486052018870670.525697399056467
240.5133896961468490.9732206077063010.486610303853151
250.5361190163550270.9277619672899450.463880983644973
260.491258769102620.982517538205240.50874123089738
270.4340622917279170.8681245834558350.565937708272083
280.3725576587027770.7451153174055530.627442341297223
290.3756900928551180.7513801857102350.624309907144882
300.4174034520604770.8348069041209550.582596547939523
310.3612760284866820.7225520569733630.638723971513318
320.3255886469418130.6511772938836260.674411353058187
330.2972728354084690.5945456708169390.70272716459153
340.2555068911741790.5110137823483580.744493108825821
350.219608397036030.439216794072060.78039160296397
360.2362940820763830.4725881641527660.763705917923617
370.2464219122625250.4928438245250490.753578087737475
380.2574079899919280.5148159799838570.742592010008072
390.2077203170263890.4154406340527790.79227968297361
400.2223476119011170.4446952238022350.777652388098883
410.1774987149579380.3549974299158760.822501285042062
420.1426435945194050.2852871890388110.857356405480595
430.1165769413670620.2331538827341230.883423058632938
440.08971430520751470.1794286104150290.910285694792485
450.0679471632592480.1358943265184960.932052836740752
460.04947903176597360.09895806353194720.950520968234026
470.04495077472277050.0899015494455410.95504922527723
480.03418443090729100.06836886181458210.965815569092709
490.02375583341593000.04751166683186010.97624416658407
500.01696773825784250.03393547651568500.983032261742158
510.01426642323546690.02853284647093390.985733576764533
520.01365916323842710.02731832647685410.986340836761573
530.02318550081186490.04637100162372980.976814499188135
540.01946331774340510.03892663548681020.980536682256595
550.01515924054925890.03031848109851780.984840759450741
560.01101776487523590.02203552975047170.988982235124764
570.02694398485144800.05388796970289590.973056015148552
580.0261385782920360.0522771565840720.973861421707964
590.0178522331333160.0357044662666320.982147766866684
600.01338989880175870.02677979760351750.986610101198241
610.009889800237459720.01977960047491940.99011019976254
620.006145933543968350.01229186708793670.993854066456032
630.003804358236562710.007608716473125420.996195641763437
640.01173544594729620.02347089189459230.988264554052704
650.009227231378026690.01845446275605340.990772768621973
660.01197953751779330.02395907503558670.988020462482207
670.02710989814456470.05421979628912950.972890101855435
680.02097014462705460.04194028925410930.979029855372945
690.01279093308473550.0255818661694710.987209066915265
700.1306026673878960.2612053347757910.869397332612104
710.09567003294240830.1913400658848170.904329967057592
720.09409669777774550.1881933955554910.905903302222254
730.07518025794643910.1503605158928780.92481974205356
740.06263320420751580.1252664084150320.937366795792484
750.4726133811426570.9452267622853140.527386618857343
760.3832244027908210.7664488055816420.616775597209179
770.257224854807940.514449709615880.74277514519206


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0140845070422535NOK
5% type I error level180.253521126760563NOK
10% type I error level240.338028169014085NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/10wfwo1292698687.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/10wfwo1292698687.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/1inyf1292698687.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/1inyf1292698687.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/2inyf1292698687.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/2inyf1292698687.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/3inyf1292698687.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/3inyf1292698687.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/4bwf01292698687.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/4bwf01292698687.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/5bwf01292698687.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/5bwf01292698687.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/6bwf01292698687.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/6bwf01292698687.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/74oxl1292698687.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/74oxl1292698687.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/8wfwo1292698687.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/8wfwo1292698687.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/9wfwo1292698687.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292698578yd1rwxof7q9t0zg/9wfwo1292698687.ps (open in new window)


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