Home » date » 2010 » Nov » 28 »

multiple linear regression met seiz en met trend

*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, 28 Nov 2010 10:07:54 +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/Nov/28/t1290938833xj43j5i5khbxbm7.htm/, Retrieved Sun, 28 Nov 2010 11:07:23 +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/Nov/28/t1290938833xj43j5i5khbxbm7.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 «
1.579 9.769 2.146 9.321 2.462 9.939 3.695 9.336 4.831 10.195 5.134 9.464 6.250 10.010 5.760 10.213 6.249 9.563 2.917 9.890 1.741 9.305 2.359 9.391 1.511 9.928 2.059 8.686 2.635 9.843 2.867 9.627 4.403 10.074 5.720 9.503 4.502 10.119 5.749 10.000 5.627 9.313 2.846 9.866 1.762 9.172 2.429 9.241 1.169 9.659 2.154 8.904 2.249 9.755 2.687 9.080 4.359 9.435 5.382 8.971 4.459 10.063 6.398 9.793 4.596 9.454 3.024 9.759 1.887 8.820 2.070 9.403 1.351 9.676 2.218 8.642 2.461 9.402 3.028 9.610 4.784 9.294 4.975 9.448 4.607 10.319 6.249 9.548 4.809 9.801 3.157 9.596 1.910 8.923 2.228 9.746 1.594 9.829 2.467 9.125 2.222 9.782 3.607 9.441 4.685 9.162 4.962 9.915 5.770 10.444 5.480 10.209 5.000 9.985 3.228 9.842 1.993 9.429 2.288 10.132 1.580 9.849 2.111 9.172 2.192 10.313 3.601 9.819 4.665 9.955 4.876 10.048 5.813 10.082 5.589 10.541 5.331 10.208 3.075 10.233 2.002 9.439 2.306 9.963 1.507 10.158 1.992 9.225 2.487 10.474 3.490 9.757 4.647 10.490 5.5 etc...
 
Output produced by software:

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


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
huwelijken[t] = + 2.02339519389154 + 0.0206906598277340geboortes[t] -0.838996818852548M1[t] -0.143411722839301M2[t] + 0.107295750823278M3[t] + 0.927473554199439M4[t] + 2.28832384063904M5[t] + 3.0371022378412M6[t] + 3.09509021922129M7[t] + 3.49918571539286M8[t] + 3.14300565779907M9[t] + 0.71777680606665M10[t] -0.418680426327679M11[t] + 0.00197522726513127t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2.023395193891541.2840631.57580.1189280.059464
geboortes0.02069065982773400.1381890.14970.8813470.440674
M1-0.8389968188525480.190709-4.39943.2e-051.6e-05
M2-0.1434117228393010.20217-0.70940.4801130.240056
M30.1072957508232780.1923870.55770.5785640.289282
M40.9274735541994390.1869924.964e-062e-06
M52.288323840639040.18896112.1100
M63.03710223784120.18633816.298900
M73.095090219221290.20472915.11800
M83.499185715392860.20229117.297800
M93.143005657799070.18864516.660900
M100.717776806066650.1937043.70550.0003820.000191
M11-0.4186804263276790.192952-2.16990.032910.016455
t0.001975227265131270.0018871.04670.2983080.149154


Multiple Linear Regression - Regression Statistics
Multiple R0.976305094874342
R-squared0.953171638277599
Adjusted R-squared0.945747629711852
F-TEST (value)128.390428140858
F-TEST (DF numerator)13
F-TEST (DF denominator)82
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.372111359493414
Sum Squared Residuals11.354282836851


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11.5791.388500658161250.190499341838751
22.1462.076791565836810.0692084341631907
32.4622.342261094538050.119738905461946
43.6953.151937657303230.543062342696772
54.8314.532536447799990.298463552200014
65.1345.2681651999332-0.134165199933197
76.255.339425508844360.910574491155643
85.765.74969643622610.010303563773903
96.2495.382042677009410.866957322990587
102.9172.9655548983058-0.0485548983057997
111.7411.81896885717737-0.0779688571773661
122.3592.241403907515360.117596092484637
131.5111.415493200255440.0955067997445597
142.0592.08735572402777-0.0283557240277711
152.6352.363977518376170.271022481623830
162.8673.18166136649467-0.314661366494673
174.4034.5537356051424-0.150735605142403
185.725.292674862848060.427325137151944
194.5025.36538351794716-0.863383517947156
205.7495.76899205286436-0.0199920528643632
215.6275.400572739234050.226427260765947
222.8462.9887610496515-0.1427610496515
231.7621.83991972660185-0.077919726601854
242.4292.262003035722780.166996964277222
251.1691.43363013994336-0.264630139943355
262.1542.115569015051790.0384309849482069
272.2492.38585946749290-0.136859467492904
282.6873.19404630275048-0.507046302750478
294.3594.56421700069406-0.205217000694056
305.3825.305370159001280.0766298409987232
314.4595.38792756817838-0.928927568178378
326.3985.78841181346160.609588186538403
334.5965.42719284945134-0.831192849451339
343.0243.010249876231510.013750123768492
351.8871.856339341524070.0306606584759322
362.072.28905764979645-0.219057649796447
371.3511.45768460834200-0.106684608342002
382.2182.13385078935850.0841492106414983
392.4612.402258391755290.0587416082447105
403.0283.22871507964075-0.200715079640752
414.7844.585002344839920.198997655160079
424.9755.33894233092068-0.363942330920681
434.6075.41692710427585-0.809927104275853
446.2495.807045328985380.441954671014623
454.8095.45807523559314-0.649075235593138
463.1573.030580025861160.126419974138838
471.911.88217320666790.0278267933321007
482.2282.31985727329893-0.0918572732989346
491.5941.484553006477220.109446993522780
502.4672.167547105236870.299452894763127
512.2222.43382356967140-0.211823569671404
523.6073.248921085311440.35807891468856
534.6854.605973904924230.0790260950757647
544.9625.37230759624181-0.410307596241809
555.775.443216163935890.326783836064105
565.485.84442458231308-0.364424582313085
5755.48558504418302-0.485585044183017
583.2283.059372655360360.168627344639640
591.9931.916345407722310.0766545922776923
602.2882.35154659517401-0.0635465951740152
611.581.508669546855350.0713304531446496
622.1112.19222229343035-0.0812222934303513
632.1922.46851303722151-0.276513037221506
643.6013.28044488190790.320555118092101
654.6654.646084325349200.0189156746507965
664.8765.39876218118047-0.522762181180472
675.8135.459428872259830.353571127740169
685.5895.87499660855747-0.285996608557468
695.3315.51390178850618-0.182901788506176
703.0753.09116543053458-0.0161654305345795
712.0021.940255041502160.0617449584978393
722.3062.37175260084470-0.0657526008447032
731.5071.53876568792370-0.0317656879236954
741.9922.21702162558280-0.225021625582797
752.4872.49554696063535-0.00854696063534637
763.493.302864788180150.187135211819845
774.6474.68085655553862-0.0338565555386166
785.5945.427285832101910.166714167898090
795.6115.490621618299050.120378381700954
805.7885.90074771106199-0.112747711061989
816.2045.547680867023860.656319132976143
823.0133.12631009260089-0.113310092600892
831.9311.97208919799604-0.0410891979960358
842.5492.390986145503490.158013854496512
851.5041.56770315204169-0.0637031520416876
862.092.24664188147510-0.156641881475104
872.7022.517759960309320.184240039690675
882.9393.32540883841138-0.386408838411377
894.54.70559381571158-0.205593815711579
906.2085.44749183777260.760508162227402
916.4155.524069646259480.890930353740516
925.6575.93568546653002-0.278685466530024
935.9645.564948798999010.399051201000993
943.1633.15100597145420.0119940285458016
951.9971.996909220808319.07791916912176e-05
962.4222.42439279214427-0.00239279214426983


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.4099810862200620.8199621724401230.590018913779938
180.6842689985054330.6314620029891350.315731001494567
190.9755852771546630.04882944569067420.0244147228453371
200.9567089883134680.08658202337306420.0432910116865321
210.9486380656468760.1027238687062470.0513619343531237
220.923299603518340.1534007929633180.0767003964816592
230.8928485645402050.2143028709195900.107151435459795
240.86505975916960.2698804816608010.134940240830400
250.808282345237460.3834353095250810.191717654762541
260.7965522223369870.4068955553260270.203447777663013
270.7334368110151180.5331263779697640.266563188984882
280.7228673267333640.5542653465332720.277132673266636
290.6534589247312710.6930821505374580.346541075268729
300.585918615788270.828162768423460.41408138421173
310.6716587662281240.6566824675437520.328341233771876
320.8740971512035620.2518056975928750.125902848796438
330.9455206961035420.1089586077929160.054479303896458
340.945689982135040.1086200357299210.0543100178649606
350.9292299922246310.1415400155507370.0707700077753687
360.905393965477810.189212069044380.09460603452219
370.8920526215620770.2158947568758470.107947378437924
380.8776679162042060.2446641675915890.122332083795794
390.8446873321376430.3106253357247150.155312667862357
400.842172379668350.3156552406632990.157827620331649
410.8204679439229940.3590641121540130.179532056077006
420.7808999000857130.4382001998285740.219100099914287
430.8809370910565670.2381258178868650.119062908943433
440.921593410008470.1568131799830610.0784065899915305
450.939464267759490.1210714644810190.0605357322405097
460.932284150891980.1354316982160420.067715849108021
470.9161952997850970.1676094004298060.0838047002149031
480.9063711036099920.1872577927800160.0936288963900079
490.9072712489124060.1854575021751890.0927287510875945
500.9474819128601080.1050361742797850.0525180871398923
510.9263841291941120.1472317416117750.0736158708058877
520.953111219140840.09377756171832120.0468887808591606
530.939547252377110.1209054952457780.0604527476228892
540.9331531488719450.1336937022561110.0668468511280553
550.955110740274530.08977851945094050.0448892597254702
560.9403664107879810.1192671784240380.0596335892120189
570.961810350889460.07637929822107870.0381896491105394
580.957717601133640.08456479773271910.0422823988663596
590.9464866644669920.1070266710660160.0535133355330079
600.9246233105211040.1507533789577930.0753766894788963
610.9055785418104220.1888429163791570.0944214581895784
620.8786842100806330.2426315798387340.121315789919367
630.8467961956405450.306407608718910.153203804359455
640.8885564725270840.2228870549458320.111443527472916
650.8665329521940930.2669340956118150.133467047805907
660.9578052546703870.08438949065922580.0421947453296129
670.947367227741590.1052655445168190.0526327722584094
680.9193131190383870.1613737619232260.080686880961613
690.960045983933780.0799080321324390.0399540160662195
700.9361043773002960.1277912453994080.0638956226997042
710.9071277015503310.1857445968993370.0928722984496685
720.8599191281887750.2801617436224500.140080871811225
730.7939077432007310.4121845135985380.206092256799269
740.7056003014509380.5887993970981230.294399698549062
750.6183979630546210.7632040738907590.381602036945379
760.6763719895964770.6472560208070460.323628010403523
770.5889379187038870.8221241625922260.411062081296113
780.6529760220534180.6940479558931640.347023977946582
790.9404178053288050.1191643893423910.0595821946711955


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.0158730158730159OK
10% type I error level80.126984126984127NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/10x9k61290938866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/10x9k61290938866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/1jhmx1290938866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/1jhmx1290938866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/2jhmx1290938866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/2jhmx1290938866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/3jhmx1290938866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/3jhmx1290938866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/4brmi1290938866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/4brmi1290938866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/5brmi1290938866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/5brmi1290938866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/6brmi1290938866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/6brmi1290938866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/740ll1290938866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/740ll1290938866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/8x9k61290938866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/8x9k61290938866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/9x9k61290938866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290938833xj43j5i5khbxbm7/9x9k61290938866.ps (open in new window)


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