Home » date » 2010 » Dec » 21 »

paper - dummies

*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, 21 Dec 2010 14:30:00 +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/21/t1292941699f8gy734a8hvywut.htm/, Retrieved Tue, 21 Dec 2010 15:28:31 +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/21/t1292941699f8gy734a8hvywut.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 «
631923 -12 -10.8 654294 -13 -12.2 671833 -16 -14.1 586840 -10 -15.2 600969 -4 -15.8 625568 -9 -15.8 558110 -8 -14.9 630577 -9 -12.6 628654 -3 -9.9 603184 -13 -7.8 656255 -3 -6 600730 -1 -5 670326 -2 -4.5 678423 0 -3.9 641502 0 -2.9 625311 -3 -1.5 628177 0 -0.5 589767 5 0 582471 3 0.5 636248 4 0.9 599885 3 0.8 621694 1 0.1 637406 -1 -1 595994 0 -2 696308 -2 -3 674201 -1 -3.7 648861 2 -4.7 649605 0 -6.4 672392 -6 -7.5 598396 -7 -7.8 613177 -6 -7.7 638104 -4 -6.6 615632 -9 -4.2 634465 -2 -2 638686 -3 -0.7 604243 2 0.1 706669 3 0.9 677185 1 2.1 644328 0 3.5 644825 1 4.9 605707 1 5.7 600136 3 6.2 612166 5 6.5 599659 5 6.5 634210 4 6.3 618234 11 6.2 613576 8 6.4 627200 -1 6.3 668973 4 5.8 651479 4 5.1 619661 4 5.1 644260 6 5.8 579936 6 6.7 601752 6 7.1 595376 6 6.7 588902 4 5.5 634341 1 4.2 594305 6 3 606200 0 2.2 610926 2 2 633685 -2 1.8 639696 0 1.8 659451 1 1.5 593248 -3 0.4 606677 -3 -0.9 599434 -5 -1.7 569578 -7 -2.6 629873 -7 -4.4 613438 -5 - 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'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 606667.763126078 + 2747.68791214968X1[t] -3701.9255707074X2[t] + 57698.5014731723M1[t] + 56686.3131057879M2[t] + 48406.8244021041M3[t] + 13929.5635338339M4[t] + 12359.3641249392M5[t] -1.62318935044884M6[t] -23122.5659196615M7[t] + 16085.6814453896M8[t] + 12600.6417769315M9[t] + 5839.14642974934M10[t] + 30555.4742742018M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)606667.76312607810718.24979356.601400
X12747.68791214968953.0008142.88320.0052250.002613
X2-3701.9255707074657.891389-5.62700
M157698.501473172314984.6428753.85050.0002580.000129
M256686.313105787914987.7231733.78220.0003240.000162
M348406.824402104114992.6676193.22870.0018940.000947
M413929.563533833915010.4533640.9280.3566010.178301
M512359.364124939215045.4506440.82150.4141690.207084
M6-1.6231893504488415033.796281-1e-040.9999140.499957
M7-23122.565919661515034.904828-1.53790.1285750.064288
M816085.681445389615106.2019881.06480.2906080.145304
M912600.641776931515045.2839960.83750.4051540.202577
M105839.1464297493415037.4012740.38830.6989660.349483
M1130555.474274201815025.5800932.03360.0457880.022894


Multiple Linear Regression - Regression Statistics
Multiple R0.784394954125589
R-squared0.615275444057685
Adjusted R-squared0.543826597954112
F-TEST (value)8.61141190671963
F-TEST (DF numerator)13
F-TEST (DF denominator)70
p-value4.0369796394657e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation28028.9728030983
Sum Squared Residuals54993632147.7777


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1631923671374.805817093-39451.8058170931
2654294672797.62533655-18503.6253365504
3671833663308.7314807628524.2685192383
4586840649389.716213168-62549.7162131679
5600969666526.799619596-65557.7996195956
6625568640427.372744558-14859.3727445576
7558110616722.38491276-58612.3849127596
8630577644668.515553034-14091.5155530339
9628654647674.404316564-19020.4043165639
10603184605661.9861494-2477.98614939942
11656255651191.7270880755063.27291192455
12600730622429.703067466-21699.7030674656
13670326675529.553843134-5203.55384313442
14678423677791.585957625631.414042375005
15641502665810.171683234-24308.1716832338
16625311617907.1512795247403.84872047581
17628177620878.0900363717298.90996362885
18589767620404.579497476-30637.5794974762
19582471589937.298157512-7466.29815751215
20636248630412.463206435835.53679357008
21599885624549.928182893-24664.9281828929
22621694614884.4049109076809.59508909345
23637406638177.475058838-771.475058837813
24595994614071.614267493-18077.6142674930
25696308669976.66548707326331.3345129267
26674201674303.512931334-102.512931333818
27648861677969.013534806-29108.0135348065
28649605644289.650312445315.34968756053
29672392630305.44155842542086.5584415752
30598396616307.344003198-17911.3440031977
31613177595563.89662796617613.1033720344
32638104636195.4016895381908.59831046207
33615632610087.3010906345544.69890936637
34634465614415.38487294320049.6151270570
35638686631571.5215633267114.47843667377
36604243611792.946393307-7549.94639330689
37706669669277.59532206337391.4046779371
38677185658327.7204455318857.2795544697
39644328642117.8480307072210.15196929354
40644825605205.57927559639619.4207244044
41605707600673.8394101355033.16058986502
42600136591957.2651347918178.73486520898
43612166573221.12055756738944.8794424329
44599659612429.367922618-12770.3679226182
45634210606937.02545615227272.9745438481
46618234619779.538051088-1545.53805108827
47613576635512.41704495-21936.4170449502
48627200580597.94411847246602.055881528
49668973653885.84793774615087.1520622537
50651479655465.007469857-3986.00746985716
51619661647185.518766173-27524.5187661734
52644260615612.28582270728647.7141772927
53579936610710.353400176-30774.353400176
54601752596868.5958576034883.40414239659
55595376575228.42335557520147.5766444246
56588902613383.605581176-24481.6055811759
57634341606468.00541818827872.9945818117
58594305617887.260316604-23582.2603166035
59606200629079.001144724-22879.0011447238
60610926604759.2878089636166.71219103717
61633685652207.422747678-18522.4227476778
62639696656690.610204593-16994.6102045928
63659451652269.3870842717181.61291572906
64593248610873.49269518-17625.4926951801
65606677614115.796528205-7438.79652820507
66599434599220.973846182213.02615381803
67569578573936.388305208-4358.38830520824
68629873619808.10169753310064.8983024674
69613438636255.947579133-22817.9475791327
70604172630094.694916068-25922.6949160682
71658328672111.245461953-13783.2454619527
72612633649815.032506831-37182.0325068306
73707372723004.108845212-15632.1088452122
74739770719671.9376545120098.0623454894
75777535714510.32942004763024.6705799528
76685030685841.124401385-811.1244013854
77730234680881.67944709249352.3205529077
78714154664020.86891619250133.1310838079
79630872637140.488083412-6268.48808341194
80719492685957.54434967233534.4556503284
81677023671210.3879564375812.61204356327
82679272652602.73078299126669.2692170090
83718317671124.61263813447192.3873618663
84645672613931.47183746931740.5281625308


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.5080025126768650.983994974646270.491997487323135
180.6316405758120050.7367188483759910.368359424187995
190.50716173656840.98567652686320.4928382634316
200.372308885949840.744617771899680.62769111405016
210.3981777428963630.7963554857927250.601822257103637
220.3224152336759450.6448304673518890.677584766324056
230.2602791872674060.5205583745348110.739720812732594
240.1916127058366260.3832254116732510.808387294163374
250.2640430313184620.5280860626369230.735956968681538
260.1912761439027330.3825522878054660.808723856097267
270.1628978988058800.3257957976117600.83710210119412
280.2076298285554970.4152596571109950.792370171444503
290.3742998863523420.7485997727046840.625700113647658
300.3247851767079840.6495703534159680.675214823292016
310.3522467909240970.7044935818481940.647753209075903
320.2787978924975570.5575957849951150.721202107502443
330.2153574793024680.4307149586049370.784642520697532
340.1999115050239670.3998230100479340.800088494976033
350.1584345338689110.3168690677378220.841565466131089
360.1259488967869700.2518977935739390.87405110321303
370.1532404874869010.3064809749738030.846759512513099
380.1179645408270660.2359290816541320.882035459172934
390.09274323813158570.1854864762631710.907256761868414
400.09325274840602260.1865054968120450.906747251593977
410.09817626665731150.1963525333146230.901823733342689
420.07084447652521160.1416889530504230.929155523474788
430.07103278379026010.1420655675805200.92896721620974
440.07898721545224980.1579744309045000.92101278454775
450.0704617626784920.1409235253569840.929538237321508
460.04910784061642220.09821568123284440.950892159383578
470.05205341206043230.1041068241208650.947946587939568
480.08841389933647540.1768277986729510.911586100663525
490.08410754884579690.1682150976915940.915892451154203
500.06535634899949080.1307126979989820.93464365100051
510.1091136644170950.218227328834190.890886335582905
520.1176670609242540.2353341218485080.882332939075746
530.1923752560620100.3847505121240210.80762474393799
540.1507841319889180.3015682639778350.849215868011082
550.1271666344112460.2543332688224930.872833365588754
560.1479081370008460.2958162740016930.852091862999154
570.2488054389218090.4976108778436180.751194561078191
580.2422806312885010.4845612625770010.757719368711499
590.2317397601866110.4634795203732230.768260239813389
600.1656416069609070.3312832139218140.834358393039093
610.1512044975010920.3024089950021850.848795502498908
620.1355902301139490.2711804602278980.864409769886051
630.2908096921156150.581619384231230.709190307884385
640.2290692608406710.4581385216813410.770930739159329
650.4651393054091480.9302786108182970.534860694590852
660.9335153743310720.1329692513378570.0664846256689284
670.8457477832993770.3085044334012470.154252216700623


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 level10.0196078431372549OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/102x871292941789.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/102x871292941789.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/1vwte1292941789.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/1vwte1292941789.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/2o5sh1292941789.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/2o5sh1292941789.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/3o5sh1292941789.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/3o5sh1292941789.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/4o5sh1292941789.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/4o5sh1292941789.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/5hw911292941789.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/5hw911292941789.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/6hw911292941789.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/6hw911292941789.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/7s5r41292941789.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/7s5r41292941789.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/8s5r41292941789.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/8s5r41292941789.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/92x871292941789.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292941699f8gy734a8hvywut/92x871292941789.ps (open in new window)


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





Copyright

Creative Commons License

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

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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


Privacy Policy

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

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

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

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

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

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

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

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

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


FreeStatistics.org is powered by