Home » date » 2008 » Nov » 23 »

Q3 - 1 peak

*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, 23 Nov 2008 11:09:24 -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/t12274638630b1nklnnwyk1kh7.htm/, Retrieved Sun, 23 Nov 2008 18:11:12 +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/t12274638630b1nklnnwyk1kh7.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 «
1671 0 1385 0 1632 0 1313 0 1300 0 1431 0 1398 0 1198 0 1292 0 1434 0 1660 0 1837 0 1455 0 1315 0 1642 0 1069 0 1209 0 1586 0 1122 0 1063 0 1125 0 1414 0 1347 0 1403 0 1299 0 1547 0 1515 0 1247 0 1639 0 1296 0 1063 0 1282 0 1365 0 1268 0 1532 0 1455 0 1393 0 1515 0 1510 0 1225 0 1577 0 1417 0 1224 0 1693 0 1633 0 1639 0 1914 0 1586 0 1552 0 2081 0 1500 0 1437 0 1470 0 1849 0 1387 0 1592 0 1589 0 1798 0 1935 0 1887 0 2027 0 2080 0 1556 0 1682 0 1785 0 1869 0 1781 0 2082 0 2570 1 1862 0 1936 0 1504 0 1765 0 1607 0 1577 0 1493 0 1615 0 1700 0 1335 0 1523 0 1621 0 1539 0 1637 0 1523 0 1418 0 1819 0 1594 0 1359 0 1261 0 1722 0 1407 0 1380 0 1642 0 1681 0 1542 0 1704 0 1431 0
 
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'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Gebouwen[t] = + 1612.375 + 1103.28571428572Dummy[t] -55.5972222222219M1[t] + 56.2499999999999M2[t] -46.6249999999997M3[t] -259.25M4[t] -130.375000000000M5[t] -3.625M6[t] -272.75M7[t] -135.75M8[t] -145.660714285714M9[t] -33M10[t] + 75.5000000000001M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)1612.37577.89592720.699100
Dummy1103.28571428572235.5351444.68421.1e-055e-06
M1-55.5972222222219107.057712-0.51930.6049030.302452
M256.2499999999999110.1614770.51060.6109610.30548
M3-46.6249999999997110.161477-0.42320.67320.3366
M4-259.25110.161477-2.35340.0209410.01047
M5-130.375000000000110.161477-1.18350.2399540.119977
M6-3.625110.161477-0.03290.9738270.486914
M7-272.75110.161477-2.47590.0152980.007649
M8-135.75110.161477-1.23230.2212820.110641
M9-145.660714285714114.027961-1.27740.2049760.102488
M10-33110.161477-0.29960.7652530.382626
M1175.5000000000001110.1614770.68540.4950050.247503


Multiple Linear Regression - Regression Statistics
Multiple R0.588746858772786
R-squared0.346622863714822
Adjusted R-squared0.25328327281694
F-TEST (value)3.71356741957486
F-TEST (DF numerator)12
F-TEST (DF denominator)84
p-value0.000167106157256791
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation220.322953139438
Sum Squared Residuals4077545.10912699


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
116711556.77777777778114.222222222225
213851668.62500000000-283.625000000004
316321565.7566.2500000000005
413131353.125-40.1250000000007
513001482-182.000000000001
614311608.75-177.75
713981339.62558.3749999999998
811981476.625-278.625
912921466.71428571429-174.714285714286
1014341579.375-145.375
1116601687.875-27.8749999999998
1218371612.375224.625
1314551556.77777777778-101.777777777778
1413151668.625-353.624999999999
1516421565.7576.25
1610691353.125-284.125
1712091482-273
1815861608.75-22.7499999999999
1911221339.625-217.625
2010631476.625-413.625
2111251466.71428571429-341.714285714286
2214141579.375-165.375
2313471687.875-340.875
2414031612.375-209.375
2512991556.77777777778-257.777777777778
2615471668.625-121.625000000000
2715151565.75-50.75
2812471353.125-106.125
2916391482157
3012961608.75-312.75
3110631339.625-276.625
3212821476.625-194.625
3313651466.71428571429-101.714285714286
3412681579.375-311.375
3515321687.875-155.875
3614551612.375-157.375
3713931556.77777777778-163.777777777778
3815151668.625-153.625000000000
3915101565.75-55.75
4012251353.125-128.125
411577148295
4214171608.75-191.75
4312241339.625-115.625
4416931476.625216.375
4516331466.71428571429166.285714285714
4616391579.37559.625
4719141687.875226.125
4815861612.375-26.3749999999999
4915521556.77777777778-4.77777777777812
5020811668.625412.375000000001
5115001565.75-65.75
5214371353.12583.8750000000001
5314701482-12
5418491608.75240.25
5513871339.62547.375
5615921476.625115.375
5715891466.71428571429122.285714285714
5817981579.375218.625
5919351687.875247.125
6018871612.375274.625
6120271556.77777777778470.222222222222
6220801668.625411.375000000001
6315561565.75-9.75000000000005
6416821353.125328.875
6517851482303
6618691608.75260.25
6717811339.625441.375
6820821476.625605.375
69257025709.2192919964873e-13
7018621579.375282.625
7119361687.875248.125
7215041612.375-108.375
7317651556.77777777778208.222222222222
7416071668.625-61.6249999999996
7515771565.7511.2500000000000
7614931353.125139.875
7716151482133
7817001608.7591.2500000000001
7913351339.625-4.62499999999996
8015231476.62546.375
8116211466.71428571429154.285714285714
8215391579.375-40.3750000000000
8316371687.875-50.875
8415231612.375-89.375
8514181556.77777777778-138.777777777778
8618191668.625150.375000000000
8715941565.7528.2500000000000
8813591353.1255.87500000000004
8912611482-221
9017221608.75113.25
9114071339.62567.375
9213801476.625-96.625
9316421466.71428571429175.285714285714
9416811579.375101.625
9515421687.875-145.875
9617041612.37591.625
9714311556.77777777778-125.777777777778


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2269428072970020.4538856145940050.773057192702998
170.1264943661283160.2529887322566310.873505633871684
180.0826130911202420.1652261822404840.917386908879758
190.1039904756862870.2079809513725740.896009524313713
200.08041604261960260.1608320852392050.919583957380397
210.06800897978842210.1360179595768440.931991020211578
220.03817459244594390.07634918489188790.961825407554056
230.06870648763290650.1374129752658130.931293512367094
240.1614452170529820.3228904341059640.838554782947018
250.1899533696146190.3799067392292390.81004663038538
260.1817812538760720.3635625077521430.818218746123928
270.1401343386627980.2802686773255950.859865661337202
280.1028017998222180.2056035996444360.897198200177782
290.1725191279868500.3450382559737000.82748087201315
300.193068774331470.386137548662940.80693122566853
310.2030568624402550.4061137248805110.796943137559745
320.2043091414661230.4086182829322450.795690858533877
330.1886310639093150.3772621278186290.811368936090685
340.2140540814537050.4281081629074100.785945918546295
350.1843057369572720.3686114739145450.815694263042728
360.1682397319065830.3364794638131660.831760268093417
370.1475896996053220.2951793992106440.852410300394678
380.1570181843156380.3140363686312750.842981815684362
390.1231159823115030.2462319646230060.876884017688497
400.1078180154029380.2156360308058770.892181984597062
410.09913110222662830.1982622044532570.900868897773372
420.1042498927378370.2084997854756750.895750107262163
430.09228389596121990.1845677919224400.90771610403878
440.2359051985584710.4718103971169430.764094801441529
450.29241470562680.58482941125360.7075852943732
460.2937084007847840.5874168015695680.706291599215216
470.3695782621354040.7391565242708070.630421737864596
480.3106765637690590.6213531275381190.68932343623094
490.2666581507821330.5333163015642650.733341849217867
500.52948385879270.94103228241460.4705161412073
510.46926310631130.93852621262260.5307368936887
520.4374465577075650.874893115415130.562553442292435
530.3768828753822370.7537657507644730.623117124617763
540.416867333562280.833734667124560.58313266643772
550.3792081314727710.7584162629455420.620791868527229
560.3591141743189110.7182283486378230.640885825681089
570.3236124860354220.6472249720708430.676387513964578
580.3268350255758770.6536700511517530.673164974424123
590.342005290651360.684010581302720.65799470934864
600.384028238980110.768056477960220.61597176101989
610.629498638359450.74100272328110.37050136164055
620.743638623068730.5127227538625390.256361376931269
630.680137654169050.6397246916619010.319862345830950
640.7131202068926350.573759586214730.286879793107365
650.7645110045056650.4709779909886710.235488995494335
660.7483178751955070.5033642496089860.251682124804493
670.855484505365790.2890309892684190.144515494634210
680.9902312429071270.01953751418574580.0097687570928729
690.9823584165749880.03528316685002410.0176415834250121
700.9850432875218340.02991342495633290.0149567124781665
710.9936700846401060.01265983071978730.00632991535989367
720.9892957035499920.02140859290001530.0107042964500077
730.9968473606372660.006305278725467860.00315263936273393
740.9964273632449170.007145273510166660.00357263675508333
750.9914413232350080.01711735352998440.0085586767649922
760.9852159230449720.02956815391005510.0147840769550275
770.997668122467770.004663755064461180.00233187753223059
780.9926938594225420.01461228115491620.00730614057745808
790.9809079319252810.03818413614943730.0190920680747186
800.9674278482371920.06514430352561630.0325721517628082
810.9068616467802730.1862767064394540.093138353219727


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.0454545454545455NOK
5% type I error level120.181818181818182NOK
10% type I error level140.212121212121212NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/10e4hi1227463757.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/10e4hi1227463757.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/17ulb1227463757.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/17ulb1227463757.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/25nb11227463757.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/25nb11227463757.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/3jbip1227463757.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/3jbip1227463757.ps (open in new window)


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


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/7npu61227463757.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/7npu61227463757.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/8443e1227463757.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/8443e1227463757.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/9zvx91227463757.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t12274638630b1nklnnwyk1kh7/9zvx91227463757.ps (open in new window)


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





Copyright

Creative Commons License

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

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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


Privacy Policy

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

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

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

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

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

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

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

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

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


FreeStatistics.org is powered by