Home » date » 2008 » Dec » 16 »

multiple regression

*The author of this computation has been verified*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Tue, 16 Dec 2008 12:38:07 -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/Dec/16/t1229456387i4scdjv4tx4rvh6.htm/, Retrieved Tue, 16 Dec 2008 20:39:57 +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/2008/Dec/16/t1229456387i4scdjv4tx4rvh6.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},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
524 0 552 0 532 0 511 0 492 0 492 0 493 0 481 0 462 0 457 0 442 0 439 0 488 0 521 0 501 0 485 0 464 0 460 0 467 0 460 0 448 0 443 0 436 0 431 0 484 0 510 0 513 0 503 0 471 0 471 0 476 0 475 0 470 0 461 0 455 0 456 0 517 0 525 0 523 0 519 0 509 0 512 0 519 0 517 0 510 0 509 0 501 0 507 0 569 1 580 1 578 1 565 1 547 1 555 1 562 1 561 1 555 1 544 1 537 1 543 1 594 1 611 1 613 1 611 1 594 1 595 1 591 1 589 1 584 1 573 1 567 1 569 1 621 1 629 1 628 1 612 1 595 1 597 1 593 1 590 1 580 1 574 1 573 1 573 1 620 1 626 1 620 1 588 1 566 1 557 1 561 1 549 1 532 1 526 1 511 1 499 1
 
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
Aantal_werklozen_(*1000)[t] = + 487.375 + 89.8541666666667dummyvariabele[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)487.3754.355789111.891300
dummyvariabele89.85416666666676.16001614.586700


Multiple Linear Regression - Regression Statistics
Multiple R0.832816091460077
R-squared0.693582642194839
Adjusted R-squared0.690322883069252
F-TEST (value)212.771132919209
F-TEST (DF numerator)1
F-TEST (DF denominator)94
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation30.1777939295420
Sum Squared Residuals85605.7291666666


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1524487.37500000000136.6249999999989
2552487.37564.625
3532487.37544.625
4511487.37523.6250000000000
5492487.3754.62500000000003
6492487.3754.62500000000003
7493487.3755.62500000000003
8481487.375-6.37499999999997
9462487.375-25.3750000000000
10457487.375-30.375
11442487.375-45.375
12439487.375-48.375
13488487.3750.625000000000026
14521487.37533.625
15501487.37513.6250000000000
16485487.375-2.37499999999997
17464487.375-23.3750000000000
18460487.375-27.3750000000000
19467487.375-20.3750000000000
20460487.375-27.3750000000000
21448487.375-39.375
22443487.375-44.375
23436487.375-51.375
24431487.375-56.375
25484487.375-3.37499999999997
26510487.37522.6250000000000
27513487.37525.6250000000000
28503487.37515.6250000000000
29471487.375-16.3750000000000
30471487.375-16.3750000000000
31476487.375-11.3750000000000
32475487.375-12.3750000000000
33470487.375-17.3750000000000
34461487.375-26.3750000000000
35455487.375-32.375
36456487.375-31.375
37517487.37529.625
38525487.37537.625
39523487.37535.625
40519487.37531.625
41509487.37521.6250000000000
42512487.37524.6250000000000
43519487.37531.625
44517487.37529.625
45510487.37522.6250000000000
46509487.37521.6250000000000
47501487.37513.6250000000000
48507487.37519.6250000000000
49569577.229166666667-8.22916666666667
50580577.2291666666672.77083333333333
51578577.2291666666670.770833333333333
52565577.229166666667-12.2291666666667
53547577.229166666667-30.2291666666667
54555577.229166666667-22.2291666666667
55562577.229166666667-15.2291666666667
56561577.229166666667-16.2291666666667
57555577.229166666667-22.2291666666667
58544577.229166666667-33.2291666666667
59537577.229166666667-40.2291666666667
60543577.229166666667-34.2291666666667
61594577.22916666666716.7708333333333
62611577.22916666666733.7708333333333
63613577.22916666666735.7708333333333
64611577.22916666666733.7708333333333
65594577.22916666666716.7708333333333
66595577.22916666666717.7708333333333
67591577.22916666666713.7708333333333
68589577.22916666666711.7708333333333
69584577.2291666666676.77083333333333
70573577.229166666667-4.22916666666667
71567577.229166666667-10.2291666666667
72569577.229166666667-8.22916666666667
73621577.22916666666743.7708333333333
74629577.22916666666751.7708333333333
75628577.22916666666750.7708333333333
76612577.22916666666734.7708333333333
77595577.22916666666717.7708333333333
78597577.22916666666719.7708333333333
79593577.22916666666715.7708333333333
80590577.22916666666712.7708333333333
81580577.2291666666672.77083333333333
82574577.229166666667-3.22916666666667
83573577.229166666667-4.22916666666667
84573577.229166666667-4.22916666666667
85620577.22916666666742.7708333333333
86626577.22916666666748.7708333333333
87620577.22916666666742.7708333333333
88588577.22916666666710.7708333333333
89566577.229166666667-11.2291666666667
90557577.229166666667-20.2291666666667
91561577.229166666667-16.2291666666667
92549577.229166666667-28.2291666666667
93532577.229166666667-45.2291666666667
94526577.229166666667-51.2291666666667
95511577.229166666667-66.2291666666667
96499577.229166666667-78.2291666666667


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.4929388739750670.9858777479501340.507061126024933
60.4706026818835440.9412053637670880.529397318116456
70.4087758652331230.8175517304662450.591224134766877
80.4195547468618580.8391094937237150.580445253138142
90.5588914553441810.8822170893116370.441108544655819
100.6598289979760460.6803420040479080.340171002023954
110.8034783632042760.3930432735914490.196521636795724
120.883594485346370.2328110293072600.116405514653630
130.8335176501430120.3329646997139760.166482349856988
140.8275477936486370.3449044127027260.172452206351363
150.7746062334212270.4507875331575460.225393766578773
160.7107447511171270.5785104977657460.289255248882873
170.6883891968167370.6232216063665250.311610803183262
180.676779345161520.6464413096769590.323220654838480
190.637038511688990.7259229766220190.362961488311009
200.6188409173810230.7623181652379540.381159082618977
210.6524641493536050.6950717012927890.347535850646395
220.705296566123670.589406867752660.29470343387633
230.7844743003315570.4310513993368870.215525699668443
240.867940170288040.2641196594239200.132059829711960
250.831417579075340.3371648418493220.168582420924661
260.8198926434884220.3602147130231570.180107356511578
270.8128180125918670.3743639748162660.187181987408133
280.7824711902629210.4350576194741570.217528809737079
290.7472348986807240.5055302026385510.252765101319276
300.710914173183950.5781716536321010.289085826816051
310.6659144775165560.6681710449668890.334085522483444
320.6219268136425720.7561463727148570.378073186357428
330.5895086709534780.8209826580930450.410491329046522
340.590146109445750.81970778110850.40985389055425
350.6266376400035280.7467247199929440.373362359996472
360.6727413961535490.6545172076929020.327258603846451
370.674193976591070.6516120468178590.325806023408930
380.6975116575401280.6049766849197450.302488342459872
390.7071962142915220.5856075714169570.292803785708478
400.7005068122841660.5989863754316680.299493187715834
410.6690343560281140.6619312879437720.330965643971886
420.6402940479469080.7194119041061840.359705952053092
430.6257829946700090.7484340106599820.374217005329991
440.6040416052434280.7919167895131450.395958394756572
450.5653196037427080.8693607925145850.434680396257293
460.5235161087870730.9529677824258530.476483891212927
470.4713039568629080.9426079137258150.528696043137092
480.4251339446141460.8502678892282920.574866055385854
490.3698440648950890.7396881297901770.630155935104912
500.3171605887041630.6343211774083270.682839411295837
510.2663681823880880.5327363647761760.733631817611912
520.2254403293395430.4508806586790860.774559670660457
530.2162171794522820.4324343589045640.783782820547718
540.1895931847160650.379186369432130.810406815283935
550.1575140403797670.3150280807595340.842485959620233
560.1301264340614590.2602528681229180.869873565938541
570.1115426550459470.2230853100918940.888457344954053
580.1095647944399590.2191295888799190.89043520556004
590.1225451718234120.2450903436468230.877454828176588
600.1251057981159420.2502115962318830.874894201884058
610.1145959394731640.2291918789463290.885404060526836
620.1326291235472540.2652582470945070.867370876452746
630.1521051070557960.3042102141115920.847894892944204
640.1629843756872610.3259687513745220.837015624312739
650.1383014724022740.2766029448045480.861698527597726
660.1166224154626080.2332448309252170.883377584537392
670.09351272050342580.1870254410068520.906487279496574
680.07254121952935080.1450824390587020.92745878047065
690.0535830018718820.1071660037437640.946416998128118
700.03836275041579660.07672550083159330.961637249584203
710.02771464222974870.05542928445949750.972285357770251
720.01932905984307830.03865811968615650.980670940156922
730.02623592841423630.05247185682847270.973764071585764
740.04653677303617110.09307354607234210.953463226963829
750.07937114246738440.1587422849347690.920628857532616
760.0883108826406480.1766217652812960.911689117359352
770.07323260204980530.1464652040996110.926767397950195
780.06287137313294390.1257427462658880.937128626867056
790.05107321016375130.1021464203275030.948926789836249
800.03976811945162170.07953623890324350.960231880548378
810.02729983238457660.05459966476915310.972700167615423
820.01749404293246510.03498808586493010.982505957067535
830.01072330451941470.02144660903882930.989276695480585
840.006289180444213690.01257836088842740.993710819555786
850.01523961710211610.03047923420423220.984760382897884
860.07028315745323120.1405663149064620.929716842546769
870.3192735790616510.6385471581233020.680726420938349
880.4897744583758830.9795489167517660.510225541624117
890.5100216754334280.9799566491331430.489978324566572
900.485936892293270.971873784586540.51406310770673
910.5859775695804320.8280448608391360.414022430419568


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level50.0574712643678161NOK
10% type I error level110.126436781609195NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/10jddn1229456282.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/10jddn1229456282.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/13vjy1229456281.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/13vjy1229456281.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/21w071229456281.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/21w071229456281.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/3yj041229456281.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/3yj041229456281.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/4erpz1229456281.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/4erpz1229456281.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/5d34v1229456281.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/5d34v1229456281.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/6ia861229456281.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/6ia861229456281.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/7t6x01229456281.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/7t6x01229456281.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/8xnhq1229456282.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/8xnhq1229456282.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/9zr1s1229456282.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229456387i4scdjv4tx4rvh6/9zr1s1229456282.ps (open in new window)


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