Home » date » 2010 » Nov » 22 »

*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: Mon, 22 Nov 2010 10:46:43 +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/22/t12904227988tjk1t2dmqppl2z.htm/, Retrieved Mon, 22 Nov 2010 11:46:51 +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/22/t12904227988tjk1t2dmqppl2z.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 «
9 15 6 25 68 0 14 10 8 23 48 0 8 10 7 17 44 0 8 12 9 19 67 1 14 9 8 29 46 1 15 18 11 23 54 1 9 14 9 23 61 0 11 11 11 21 52 0 14 11 12 26 46 1 14 9 6 24 55 0 6 17 8 25 52 0 10 21 12 26 76 0 9 16 9 23 49 0 11 21 7 29 30 1 14 14 8 24 75 1 8 24 20 20 51 1 11 7 8 23 50 1 10 9 6 29 38 0 16 18 16 24 47 0 8 14 6 22 52 1 11 13 6 22 66 0 11 13 6 22 66 1 7 18 11 17 33 0 13 14 12 24 48 0 10 12 8 21 57 0 9 12 8 24 64 1 9 9 7 23 58 1 15 11 9 21 59 1 13 8 9 24 42 0 16 5 4 24 39 0 11 9 6 19 59 0 6 11 8 26 37 1 14 11 8 24 49 1 4 15 4 28 80 1 12 16 14 22 62 0 10 12 8 23 44 0 14 14 10 24 53 1 9 13 6 23 58 1 10 10 8 23 69 1 14 18 10 30 63 1 14 17 11 20 36 1 10 12 8 23 38 0 9 13 8 21 46 0 14 13 10 27 56 0 8 11 8 12 37 1 9 13 10 15 51 0 8 12 7 22 44 1 10 12 8 27 58 1 9 12 8 21 37 0 9 12 7 21 65 0 9 13 6 21 48 0 9 17 9 21 53 1 11 18 5 18 51 1 15 7 5 24 39 1 8 17 7 24 64 1 12 14 7 28 47 1 8 12 7 25 47 1 14 9 9 14 64 0 11 9 5 30 59 0 10 13 8 19 54 1 12 10 8 29 55 0 9 12 9 2 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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
intrinsic[t] = + 54.3924753054961 -0.606890253799587Doubts[t] + 0.0642016921348219Parentalexpectations[t] -0.429106442448299Parentalcriticism[t] + 0.396721573130468organization[t] -1.23923857358372geslacht[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)54.392475305496110.048495.4131e-060
Doubts-0.6068902537995870.455825-1.33140.1868360.093418
Parentalexpectations0.06420169213482190.3979340.16130.8722340.436117
Parentalcriticism-0.4291064424482990.549566-0.78080.4372190.21861
organization0.3967215731304680.3306391.19990.2337330.116867
geslacht-1.239238573583722.426081-0.51080.6108990.305449


Multiple Linear Regression - Regression Statistics
Multiple R0.226823336640143
R-squared0.0514488260445678
Adjusted R-squared-0.00783562232764679
F-TEST (value)0.867830054208296
F-TEST (DF numerator)5
F-TEST (DF denominator)80
p-value0.506544612128841
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.0635117234388
Sum Squared Residuals9792.10333237338


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16857.236889076894310.7631109231057
24852.2297733160645-4.22977331606453
34453.9198918425276-9.91989184252756
46752.744286914577814.2557130854222
54653.3066624891288-7.30666248912881
65449.60993869841494.39006130158509
76155.09192491115355.90807508884654
85252.0338832959923-0.0338832959922875
94650.5284753842138-4.52847538421385
105553.42050608195681.57949391804322
115258.3277503376659-6.32775033766592
127654.837291894344121.1627081056559
134955.2203282954231-6.2203282954231
143056.3268599985937-26.3268599985937
157551.644063084150623.3559369158494
165149.19125792639491.80874207360515
175052.6186004274751-2.61860042747511
183857.8316749628075-19.8316749628075
194748.493476379088-1.49347637908802
205255.3501743455838-3.35017434558375
216654.704540465633911.2954595343661
226653.465301892050212.5346981079498
233353.3239698636125-20.3239698636125
244851.7737661417407-3.77376614174068
255753.99229456927163.00770543072841
266454.55011096887899.44988903112114
275854.38989076179223.61010923820777
285949.22529659210689.77470340789318
294252.6758753162767-10.6758753162767
303952.8081316907149-13.8081316907149
315953.25756897770325.7424310222968
323757.1000231844037-20.1000231844037
334951.4514580077461-2.45145800774610
348061.080479376596318.9195206234037
356250.857403748652411.1425962513476
364454.7857377155325-10.7857377155325
375350.7858501992542.21414980074603
385855.07580397277982.92419602722019
396953.418095757679215.5819042423208
406353.42298640657619.57701359342393
413648.9624625406883-12.9624625406883
423854.7857377155325-16.7857377155325
434654.663386515206-8.663386515206
445653.15105180009432.84894819990572
453750.332140652978-13.332140652978
465151.4248441915266-0.424844191526596
474454.7926645188658-10.7926645188658
485855.13338543447072.86661456552932
493754.5991848230712-17.5991848230712
506555.02829126551959.97170873448052
514855.5215994001026-7.5215994001026
525353.2518482677133-0.251848267713267
535152.6285305026507-1.62853050265070
543951.8750803127521-12.8750803127521
556455.90711612580098.09288387419915
564754.8738363267199-7.87383632671991
574755.9828292382572-8.98282923825722
586448.165971023307215.8340289766928
595958.05061272458660.949387275413355
605452.02381454156181.97618545843824
615555.8238832624465-0.823883262446517
627254.51772609956117.4822739004390
635854.48831960102173.51168039897835
645953.08741815446035.9125818455397
653649.0384371267561-13.0384371267561
666257.26596410148034.7340358985197
676358.7461950781194.25380492188101
685054.8656352921107-4.86563529211069
697056.40557692387313.5944230761269
705953.20849512351095.79150487648912
717353.329429099990919.6705709000091
726254.81786111123887.18213888876115
734153.3266867607795-12.3266867607795
745654.06557191540581.9344280845942
755254.4359608031616-2.43596080316155
765451.63713628081732.36286371918271
777351.671250731682221.3287492683178
784049.9375424884691-9.93754248846911
794154.429934061263-13.4299340612630
805453.66885034227530.331149657724668
814249.0305426650362-7.03054266503625
827054.301198662059515.6988013379405
835152.3148484571957-1.31484845719565
846056.93675406521633.06324593478370
854954.2263601689933-5.22636016899328
865256.1597384302183-4.15973843021834


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.2908504612462450.581700922492490.709149538753755
100.2770462291969930.5540924583939860.722953770803007
110.3650751223395220.7301502446790440.634924877660478
120.4277061667075160.8554123334150330.572293833292484
130.4332562629824470.8665125259648940.566743737017553
140.7788293360138840.4423413279722320.221170663986116
150.9368773416929870.1262453166140270.0631226583070135
160.923837096857310.1523258062853800.0761629031426902
170.8862075235239240.2275849529521520.113792476476076
180.8934840346225490.2130319307549020.106515965377451
190.8684369277908660.2631261444182670.131563072209134
200.8242887365705380.3514225268589240.175711263429462
210.798783481822970.4024330363540600.201216518177030
220.7798916435396980.4402167129206040.220108356460302
230.919362002011990.1612759959760190.0806379979880094
240.8899636147200870.2200727705598270.110036385279913
250.8530625677231690.2938748645536620.146937432276831
260.8461207791781020.3077584416437950.153879220821898
270.8045694121133090.3908611757733820.195430587886691
280.7753603535592340.4492792928815320.224639646440766
290.756913871270550.4861722574588990.243086128729450
300.789493902648380.4210121947032410.210506097351620
310.7436438706709020.5127122586581960.256356129329098
320.8055062790320560.3889874419358880.194493720967944
330.7623813745633950.475237250873210.237618625436605
340.8754141164420230.2491717671159530.124585883557977
350.8833811405946280.2332377188107440.116618859405372
360.8785328913141950.2429342173716110.121467108685805
370.8451754451462650.309649109707470.154824554853735
380.8056502977857610.3886994044284770.194349702214239
390.8470534133937480.3058931732125040.152946586606252
400.8564960911131810.2870078177736370.143503908886819
410.8816057502741830.2367884994516350.118394249725817
420.9215109560021650.1569780879956690.0784890439978344
430.9155453876640420.1689092246719150.0844546123359575
440.8918349656238780.2163300687522440.108165034376122
450.9088777638214410.1822444723571170.0911222361785586
460.8818135227524060.2363729544951870.118186477247594
470.881916374181520.2361672516369620.118083625818481
480.8510151655101330.2979696689797340.148984834489867
490.9320327102379710.1359345795240580.067967289762029
500.922055837207920.1558883255841600.0779441627920798
510.9306237189152070.1387525621695850.0693762810847925
520.9058017058699680.1883965882600640.094198294130032
530.8757803196634860.2484393606730270.124219680336514
540.8889126751069450.2221746497861090.111087324893055
550.9019944584119760.1960110831760470.0980055415880237
560.8753637731209770.2492724537580460.124636226879023
570.8601406412212680.2797187175574650.139859358778732
580.8753966663565930.2492066672868150.124603333643407
590.857284169560820.2854316608783610.142715830439180
600.8206346765113080.3587306469773850.179365323488693
610.7982439997013830.4035120005972340.201756000298617
620.9245154475364860.1509691049270290.0754845524635143
630.9070821703003670.1858356593992660.0929178296996332
640.8711978409115660.2576043181768690.128802159088434
650.9212260472905290.1575479054189420.078773952709471
660.967155193203610.06568961359278020.0328448067963901
670.975170434123910.04965913175217870.0248295658760894
680.9572896835159120.08542063296817670.0427103164840883
690.9495227874747620.1009544250504760.0504772125252382
700.9170046971560030.1659906056879930.0829953028439966
710.9644898074873010.07102038502539720.0355101925126986
720.9848650120863270.03026997582734600.0151349879136730
730.9712658167257980.05746836654840330.0287341832742017
740.9433218409308930.1133563181382140.0566781590691069
750.9769543478211990.04609130435760230.0230456521788011
760.9413283399294820.1173433201410370.0586716600705183
770.8673000790107040.2653998419785920.132699920989296


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level30.0434782608695652OK
10% type I error level70.101449275362319NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/10wlf71290422793.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/10wlf71290422793.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/172id1290422793.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/172id1290422793.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/20t0g1290422793.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/20t0g1290422793.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/30t0g1290422793.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/30t0g1290422793.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/40t0g1290422793.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/40t0g1290422793.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/5t3z11290422793.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/5t3z11290422793.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/6t3z11290422793.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/6t3z11290422793.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/7mug41290422793.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/7mug41290422793.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/8mug41290422793.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/8mug41290422793.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/9mug41290422793.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t12904227988tjk1t2dmqppl2z/9mug41290422793.ps (open in new window)


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