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


Multiple Linear Regression - Estimated Regression Equation
Intrinsic[t] = + 52.995589547492 -0.587791444894091Doubts[t] + 0.0631178119834426PerantalExpectations[t] -0.393267962263190ParentalCriticism[t] + 0.379101730424418Organization[t] + 0.0160581050867852t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)52.99558954749210.7661674.92245e-062e-06
Doubts-0.5877914448940910.454726-1.29260.199860.09993
PerantalExpectations0.06311781198344260.3990240.15820.8747130.437357
ParentalCriticism-0.3932679622631900.55794-0.70490.4829460.241473
Organization0.3791017304244180.3281271.15540.2513860.125693
t0.01605810508678520.049750.32280.7477050.373853


Multiple Linear Regression - Regression Statistics
Multiple R0.222694688895234
R-squared0.049592924462145
Adjusted R-squared-0.00980751775897093
F-TEST (value)0.834891502617728
F-TEST (DF numerator)5
F-TEST (DF denominator)80
p-value0.52878801247544
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.074329671832
Sum Squared Residuals9811.2622144335


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16855.786227315315112.2137726846849
24851.0029997506388-3.00299975063881
34452.6644641048068-8.66446410480682
46752.77842537018314.2215746298170
54653.2626666364622-7.26266663646223
65449.80457933516984.19542066483017
76153.88145078621387.11854921378623
85250.98783318018681.01216681981317
94650.7427576404502-4.74275764045024
105552.23398443430042.76601556569956
115257.0498824003055-5.04988240030553
127653.773275855121422.2267241448786
134954.1040350407014-5.10403504070136
143056.32124562299-26.3212456229901
157551.843328095125223.1566719048748
165149.7816905205551.21830947944499
175052.8178922256725-2.81789222567253
183856.6091237066932-18.6091237066932
194747.8383051755124-0.838305175512415
205255.4786997536012-3.47869975360122
216653.668265712022312.3317342879777
226653.684323817109112.3156761828909
233352.5052882982514-19.5052882982514
244851.0025706367476-3.0025706367476
255753.09153411032933.90846588967072
266454.83268885158349.1673111484166
275854.67355975255863.32644024744136
285949.74436542687259.25563457312745
294251.8839581770704-9.88395817707044
303951.9136283228406-12.9136283228406
315952.43907032368316.56092967631689
323757.3874974656518-20.3874974656518
334951.943020550737-2.94302055073701
348061.178943123448918.8210568765511
356250.34849747618811.651502523812
364454.0263767271327-10.0263767271327
375351.41007048250811.58992951749191
385855.49593811871022.50406188128977
396953.948315418426215.0516845815738
406353.98532642824879.01467357175127
413649.7539814548447-13.7539814548447
423854.1227253576535-16.1227253576535
434654.0314892587689-8.03148925876895
445652.59666459740543.4033354025946
453751.11324571605-14.1132457160500
465151.0185172669564-0.0185172669564133
474455.3927650047143-11.3927650047143
485855.73548090987182.26451909012816
493754.0647200773062-17.0647200773062
506554.474046144656210.5259538553438
514854.9464900239896-6.9464900239896
525354.0352154902206-1.03521549022059
535153.3745751752821-2.37457517528214
543952.6197819515212-13.6197819515212
556456.59502236617477.40497763382533
564755.5869681774324-8.58696817743243
574756.6906512468554-9.69065124685545
586448.033952287432415.9660477125676
595957.45208426304491.54791573695512
605452.95848213950141.04151786049864
615555.4006212230938-0.400621223093818
627255.396614402868916.6033855971311
635854.1150749912023.88492500879800
645952.81992353885186.18007646114824
653648.9625102491916-12.9625102491916
666256.8497352829995.15026471700095
676359.4405437607633.55945623923700
685055.7689915568441-5.76899155684411
697056.052082000227213.9479179997728
705954.2026416133414.79735838665901
717353.257530780945319.7424692190547
726255.8590131403396.14098685966104
734153.2651406659189-12.2651406659189
745655.12298065482630.877019345173695
755255.5229156784943-3.52291567849432
765451.63312338379212.36687661620786
777351.626550887671721.3734491123283
784051.188234703252-11.1882347032519
794155.6357658907175-14.6357658907175
805454.8402275549226-0.840227554922598
814250.4143590988877-8.41435909888767
827054.284552320202115.7154476797979
835152.3805954479669-1.38059544796685
846056.81723235091593.18276764908414
854955.4400216665866-6.4400216665866
865256.1800520753717-4.18005207537175


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.07816938262250860.1563387652450170.921830617377492
100.2446780281568190.4893560563136370.755321971843181
110.3665696420517240.7331392841034490.633430357948276
120.4291930458666030.8583860917332050.570806954133398
130.3870082904732380.7740165809464750.612991709526763
140.7181902735296070.5636194529407860.281809726470393
150.9419787566993740.1160424866012510.0580212433006255
160.9323975234467130.1352049531065740.067602476553287
170.897630479451350.2047390410973010.102369520548651
180.8900294611147490.2199410777705020.109970538885251
190.8521185969104980.2957628061790050.147881403089502
200.7996373481258330.4007253037483340.200362651874167
210.8003105576894430.3993788846211150.199689442310557
220.7846243186659980.4307513626680030.215375681334001
230.9031598938158070.1936802123683860.0968401061841928
240.8666221756416240.2667556487167510.133377824358376
250.8332083211098060.3335833577803880.166791678890194
260.844135779154480.3117284416910420.155864220845521
270.8079837013313010.3840325973373970.192016298668699
280.7804352688097780.4391294623804440.219564731190222
290.754789989249550.49042002150090.24521001075045
300.7721130677032570.4557738645934860.227886932296743
310.732456448579260.535087102841480.26754355142074
320.7716279846732270.4567440306535470.228372015326773
330.7180220101798690.5639559796402620.281977989820131
340.8723516062123160.2552967875753690.127648393787684
350.8854067823930920.2291864352138170.114593217606908
360.8730434886325070.2539130227349850.126956511367493
370.8378509420507370.3242981158985270.162149057949263
380.7978274706398060.4043450587203880.202172529360194
390.84821724496670.3035655100666010.151782755033301
400.8630592701505070.2738814596989860.136940729849493
410.8793031804778620.2413936390442760.120696819522138
420.895972004604110.2080559907917800.104027995395890
430.8725453484991340.2549093030017320.127454651500866
440.850623251875060.298753496249880.14937674812494
450.8678164101479350.2643671797041290.132183589852065
460.8302905309589160.3394189380821670.169709469041084
470.8249643798493860.3500712403012280.175035620150614
480.7877908488224280.4244183023551440.212209151177572
490.8461828898268910.3076342203462180.153817110173109
500.8440906409319930.3118187181360140.155909359068007
510.8236369792570510.3527260414858980.176363020742949
520.7753126018019680.4493747963960630.224687398198032
530.7235239297843790.5529521404312420.276476070215621
540.7885484663047520.4229030673904950.211451533695248
550.7818941093649610.4362117812700780.218105890635039
560.7454246243864340.5091507512271310.254575375613566
570.7530440039392070.4939119921215870.246955996060793
580.7858218248510790.4283563502978420.214178175148921
590.7478715792273240.5042568415453520.252128420772676
600.6862559570563760.6274880858872470.313744042943624
610.6278889603758470.7442220792483050.372111039624153
620.7209694885014470.5580610229971070.279030511498553
630.6537400436365620.6925199127268760.346259956363438
640.6031270559891590.7937458880216820.396872944010841
650.6274491718679470.7451016562641070.372550828132053
660.5609612424972310.8780775150055370.439038757502769
670.5271380554629160.9457238890741670.472861944537084
680.5527321575334030.8945356849331940.447267842466597
690.4839887413309540.9679774826619080.516011258669046
700.4529787334694160.9059574669388320.547021266530584
710.730140242880090.5397195142398200.269859757119910
720.6957471388941480.6085057222117040.304252861105852
730.6022560161116050.795487967776790.397743983888395
740.4854375473976610.9708750947953210.514562452602339
750.3604183131584850.7208366263169710.639581686841515
760.3359251262215540.6718502524431070.664074873778446
770.3602892032298780.7205784064597570.639710796770122


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


http://www.freestatistics.org/blog/date/2010/Nov/22/t1290420863jyg9suy3u54a6bu/142a81290420945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t1290420863jyg9suy3u54a6bu/142a81290420945.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t1290420863jyg9suy3u54a6bu/2etra1290420945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t1290420863jyg9suy3u54a6bu/2etra1290420945.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t1290420863jyg9suy3u54a6bu/3etra1290420945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t1290420863jyg9suy3u54a6bu/3etra1290420945.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/22/t1290420863jyg9suy3u54a6bu/4etra1290420945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/22/t1290420863jyg9suy3u54a6bu/4etra1290420945.ps (open in new window)


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


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


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


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


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


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





Copyright

Creative Commons License

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

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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


Privacy Policy

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

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

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

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

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

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

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

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

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


FreeStatistics.org is powered by