Home » date » 2010 » Dec » 19 »

paper - 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: Sun, 19 Dec 2010 19:38:22 +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/Dec/19/t12927873724741ustsx2cpd95.htm/, Retrieved Sun, 19 Dec 2010 20:36:23 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95.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 «
99.2 96.7 101.0 99.0 98.1 100.1 631 923 -12 -10,8 654 294 -13 -12,2 671 833 -16 -14,1 586 840 -10 -15,2 600 969 -4 -15,8 625 568 -9 -15,8 558 110 -8 -14,9 630 577 -9 -12,6 628 654 -3 -9,9 603 184 -13 -7,8 656 255 -3 -6 600 730 -1 -5 670 326 -2 -4,5 678 423 0 -3,9 641 502 0 -2,9 625 311 -3 -1,5 628 177 0 -0,5 589 767 5 0 582 471 3 0,5 636 248 4 0,9 599 885 3 0,8 621 694 1 0,1 637 406 -1 -1 595 994 0 -2 696 308 -2 -3 674 201 -1 -3,7 648 861 2 -4,7 649 605 0 -6,4 672 392 -6 -7,5 598 396 -7 -7,8 613 177 -6 -7,7 638 104 -4 -6,6 615 632 -9 -4,2 634 465 -2 -2 638 686 -3 -0,7 604 243 2 0,1 706 669 3 0,9 677 185 1 2,1 644 328 0 3,5 644 825 1 4,9 605 707 1 5,7 600 136 3 6,2 612 166 5 6,5 599 659 5 6,5 634 210 4 6,3 618 234 11 6,2 613 576 8 6,4 627 200 -1 6,3 668 973 4 5,8 651 479 4 5,1 619 661 4 5,1 644 260 6 5,8 579 936 6 6,7 601 752 6 7,1 595 376 6 6,7 588 902 4 5,5 634 341 1 4,2 594 305 6 3 606 200 0 2,2 610 926 2 2 633 685 -2 1,8 639 696 0 1,8 659 451 etc...
 
Output produced by software:

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


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 548.485695515317 -0.0824479631015943Consumenten[t] -0.85218979218082Ondernemers[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)548.48569551531733.92408916.16800
Consumenten-0.08244796310159430.068467-1.20420.2319360.115968
Ondernemers-0.852189792180820.069102-12.332300


Multiple Linear Regression - Regression Statistics
Multiple R0.805482329234559
R-squared0.648801782709131
Adjusted R-squared0.640339175063568
F-TEST (value)76.6668868370961
F-TEST (DF numerator)2
F-TEST (DF denominator)83
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation196.783926478273
Sum Squared Residuals3214084.83877714


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
199.2454.441808473131-355.241808473131
299455.09335213775-356.09335213775
3631482.612503078714148.387496921286
4-10.8244.020928745713-254.820928745714
5-13-22.32778988817339.3277898881733
6833561.820738994692271.179261005308
7586487.75130443178698.248695568214
8-15.2-326.754990968853311.554990968853
9-417.1697532193101-21.1697532193101
10568562.6923258996885.30767410031193
11558546.23393791158811.766062088412
12-14.94.82996867297985-19.7299686729799
13-914.3493503608425-23.3493503608425
14654557.16971834721296.8302816527883
15603544.39373760297458.6062623970259
16-7.8277.091434714562-284.891434714562
17-337.6665079854349-40.6665079854349
18730552.829092439322177.170907560678
19670523.312039128559146.687960871441
20-4.5132.109694439950-136.609694439950
2102.55358578350801-2.55358578350801
22502550.957045912641-48.9570459126411
23625525.40094836726399.5990516327366
24-1.5345.870781471511-347.370781471511
25046.5871319023652-46.5871319023652
26767548.073455699809218.926544300191
27582507.09613551792474.9038644820765
280.5284.70572252186-284.20572252186
29437.9498068322147-33.9498068322147
30885547.556599792267337.443400207733
31621490.41461933063130.585380669370
320.1149.977287394189-149.877287394189
33-141.5152171308311-42.5152171308311
34994550.190075099678443.809924900322
35696524.796102464387171.203897535613
36-3321.625620156498-324.625620156498
37-1-3.428232354378042.42823235437804
38861552.326091612363308.673908387637
39649498.604677838852150.395322161148
40-6.4159.022265776164-165.422265776164
41-639.4945595144490-45.4945595144490
42396555.709911636038-159.709911636038
43613539.0055447994273.9944552005804
44-7.7407.256156669695-414.956156669695
45-424.9331298805837-28.9331298805837
46632552.8069243103979.1930756896095
47634511.851772257437122.148227742563
48-2-88.718302379542186.7183023795421
49-333.8207746122733-36.8207746122733
50243548.235580609896-305.235580609896
51706490.771438823808215.228561176192
520.9335.013312942086-334.113312942086
531-0.4976713716439751.49767137164397
54328545.503031242684-217.503031242684
55644479.613936164321164.386063835679
564.9-103.893505232987108.793505232987
57136.7018668171463-35.7018668171463
58136542.954774914491-406.954774914491
59612530.53838467954881.4616153204519
606.5-62.493707429697868.9937074296978
6157.66145551251715-2.66145551251715
62210542.787107972171-332.787107972171
63618519.81878443555598.1812155644452
646.27.08377383788783-0.88377383788783
65813.6350288540931-5.63502885409308
66200543.199347787679-343.199347787679
67668464.855068248742203.144931751258
685.886.6131610815667-80.8131610815667
69420.5597295435717-16.5597295435717
70661543.809735722788117.190264277212
71644521.936086355817122.063913644183
725.8-296.901320601753302.701320601753
73635.7672290618639-29.7672290618639
74752541.940460212223210.059539787777
75595512.37212263603282.6278773639675
766.7-268.668899335519275.368899335519
7747.74390347561879-3.74390347561879
78341544.824050425056-203.824050425056
79594518.22592801624675.7740719837543
803328.084271439587-325.084271439587
81028.4685367661936-28.4685367661936
82926546.616420004752379.383579995248
83633493.713220375086139.286779624914
841.8-97.322648264451899.1226482644518
850-13.255783865425813.2557838654258
86451547.124962863944-96.124962863944


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.9748959487107340.05020810257853090.0251040512892654
70.9524709711192040.09505805776159250.0475290288807962
80.9562782204453960.08744355910920740.0437217795546037
90.9216363550136970.1567272899726060.0783636449863031
100.8912587165642340.2174825668715330.108741283435766
110.844777688376870.3104446232462600.155222311623130
120.7891702178789130.4216595642421750.210829782121088
130.7125939426346030.5748121147307950.287406057365397
140.6790275441500970.6419449116998060.320972455849903
150.6095334686152420.7809330627695150.390466531384758
160.6938552177056880.6122895645886230.306144782294311
170.6180208706276040.7639582587447930.381979129372396
180.6171712024057850.7656575951884290.382828797594215
190.5831203927031750.833759214593650.416879607296825
200.5391736991204340.9216526017591330.460826300879566
210.4615115664583110.9230231329166210.538488433541689
220.3898781213331070.7797562426662150.610121878666893
230.338537212849930.677074425699860.66146278715007
240.4666716316191810.9333432632383610.533328368380819
250.3984325570665490.7968651141330970.601567442933451
260.4113348014582980.8226696029165960.588665198541702
270.3560183047739550.712036609547910.643981695226045
280.4045901007664830.8091802015329670.595409899233517
290.340628436206260.681256872412520.65937156379374
300.4482382302774540.8964764605549080.551761769722546
310.4187098066281810.8374196132563630.581290193371819
320.3813202595661680.7626405191323350.618679740433832
330.3216405003406940.6432810006813870.678359499659306
340.5496828823748150.9006342352503710.450317117625185
350.5286752093806890.9426495812386220.471324790619311
360.6258384388285470.7483231223429070.374161561171453
370.5634106108479560.8731787783040890.436589389152044
380.6485211428609250.702957714278150.351478857139075
390.6265158117396160.7469683765207670.373484188260384
400.6110755769728280.7778488460543440.388924423027172
410.5510558324889580.8978883350220840.448944167511042
420.5515320733773210.8969358532453580.448467926622679
430.5015782605656470.9968434788687070.498421739434353
440.7325555330149990.5348889339700030.267444466985001
450.6777997027185270.6444005945629460.322200297281473
460.6427147495691310.7145705008617370.357285250430869
470.6067087944987950.786582411002410.393291205501205
480.5797496944830570.8405006110338850.420250305516943
490.5170989631371050.965802073725790.482901036862895
500.6061974687358660.7876050625282680.393802531264134
510.6147813386827470.7704373226345050.385218661317253
520.7688278595962450.462344280807510.231172140403755
530.7155881170355140.5688237659289720.284411882964486
540.7220661307408150.5558677385183690.277933869259185
550.6921395050898230.6157209898203550.307860494910177
560.6505881345290060.6988237309419890.349411865470994
570.5867668347926170.8264663304147660.413233165207383
580.7711854816324770.4576290367350460.228814518367523
590.7258024108020980.5483951783958040.274197589197902
600.6722262119726330.6555475760547330.327773788027367
610.605100064242930.789799871514140.39489993575707
620.7208364876538340.5583270246923320.279163512346166
630.6674852960554240.6650294078891530.332514703944576
640.6118803199649560.7762393600700870.388119680035044
650.5382082173476260.9235835653047480.461791782652374
660.7048919565838040.5902160868323920.295108043416196
670.6688040947180070.6623918105639870.331195905281993
680.6441434618314670.7117130763370660.355856538168533
690.573597749672630.852804500654740.42640225032737
700.508413478087430.983173043825140.49158652191257
710.4391541489378730.8783082978757470.560845851062127
720.45740114548020.91480229096040.5425988545198
730.3760102974643070.7520205949286140.623989702535693
740.3684443959593860.7368887919187720.631555604040614
750.2863140639665880.5726281279331750.713685936033412
760.3065887042162880.6131774084325770.693411295783712
770.2130226701605120.4260453403210240.786977329839488
780.2428366732728860.4856733465457710.757163326727114
790.1506801746362200.3013603492724410.84931982536378
800.3917954236531510.7835908473063020.608204576346849


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 level30.04OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/10elkh1292787493.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/10elkh1292787493.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/1pkm51292787493.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/1pkm51292787493.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/2pkm51292787493.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/2pkm51292787493.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/30bm81292787493.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/30bm81292787493.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/40bm81292787493.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/40bm81292787493.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/50bm81292787493.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/50bm81292787493.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/6t23t1292787493.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/6t23t1292787493.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/73bkw1292787493.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/73bkw1292787493.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/83bkw1292787493.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/83bkw1292787493.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/93bkw1292787493.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927873724741ustsx2cpd95/93bkw1292787493.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