Home » date » 2010 » Dec » 11 »

mlr trend seiz

*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: Sat, 11 Dec 2010 15:09:47 +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/11/t1292080241ko8pz82c5i3a7nw.htm/, Retrieved Sat, 11 Dec 2010 16:10:51 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw.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 «
9769 1579 9321 2146 9939 2462 9336 3695 10195 4831 9464 5134 10010 6250 10213 5760 9563 6249 9890 2917 9305 1741 9391 2359 9928 1511 8686 2059 9843 2635 9627 2867 10074 4403 9503 5720 10119 4502 10000 5749 9313 5627 9866 2846 9172 1762 9241 2429 9659 1169 8904 2154 9755 2249 9080 2687 9435 4359 8971 5382 10063 4459 9793 6398 9454 4596 9759 3024 8820 1887 9403 2070 9676 1351 8642 2218 9402 2461 9610 3028 9294 4784 9448 4975 10319 4607 9548 6249 9801 4809 9596 3157 8923 1910 9746 2228 9829 1594 9125 2467 9782 2222 9441 3607 9162 4685 9915 4962 10444 5770 10209 5480 9985 5000 9842 3228 9429 1993 10132 2288 9849 1580 9172 2111 10313 2192 9819 3601 9955 4665 10048 4876 10082 5813 10541 5589 10208 5331 10233 3075 9439 2002 9963 2306 10158 1507 9225 1992 10474 2487 9757 3490 10490 4647 10281 5594 10444 5611 10640 5788 10695 6204 10786 3013 9832 1931 9747 2549 10411 1504 9511 2090 10402 2702 9701 2939 10540 4500 10112 6208 10915 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 time8 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
geboortes[t] = + 9198.18672888628 + 0.0132098392350800huwelijken[t] + 293.354221184417M1[t] -561.53253458797M2[t] + 341.103580197078M3[t] -121.286781733765M4[t] + 198.089975881453M5[t] + 3.56981211022072M6[t] + 575.092941052572M7[t] + 526.837239839928M8[t] + 181.833531630878M9[t] + 379.895626257336M10[t] -364.188821255045M11[t] + 9.27576263272296t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9198.18672888628229.71239240.042200
huwelijken0.01320983923508000.0882260.14970.8813470.440674
M1293.354221184417166.2868911.76410.0814320.040716
M2-561.53253458797149.699174-3.75110.0003270.000164
M3341.103580197078149.33642.28410.0249490.012475
M4-121.286781733765169.829129-0.71420.477150.238575
M5198.089975881453251.1737290.78870.4325870.216293
M63.56981211022072306.5697030.01160.9907380.495369
M7575.092941052572311.9490561.84350.0688620.034431
M8526.837239839928343.6196571.53320.1290760.064538
M9181.833531630878315.0081320.57720.5653630.282681
M10379.895626257336161.8842532.34670.0213530.010676
M11-364.188821255045153.352033-2.37490.0198910.009945
t9.275762632722961.1201158.281100


Multiple Linear Regression - Regression Statistics
Multiple R0.842552367519586
R-squared0.70989449201286
Adjusted R-squared0.663902155380753
F-TEST (value)15.4350603599748
F-TEST (DF numerator)13
F-TEST (DF denominator)82
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation297.327119757428
Sum Squared Residuals7249080.12374632


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
197699521.6750488556247.324951144397
293218683.55403456223637.445965437768
399399599.6402211783339.35977882171
493369162.81335365702173.186646342977
5101959506.47225127601688.527748723985
694649325.23043142573138.769568574266
7100109920.7715035871689.2284964128419
8102139875.31874378205337.681256217952
995639546.0504095916716.9495904083248
1098909709.37308251957180.626917480431
1193058959.02962669946345.970373300543
1293919340.657891234550.342108765495
1399289632.0859313803295.914068619703
1486868793.71393014146-107.713930141458
1598439713.23467495863129.765325041366
1696279263.18475836305363.815241636947
17100749612.12759167608461.872408323924
1895039444.2805488101758.7194511898327
191011910008.9898561969110.010143803086
20100009986.4825871431413.5174128568618
2193139649.14304118013-336.143041180131
2298669819.7443355265546.2556644734463
2391729070.61618491607101.383815083931
2492419452.89173157364-211.891731573636
2596599738.87731795458-79.8773179545746
2689048906.27801646147-2.27801646146474
2797559819.44482860657-64.4448286065686
2890809372.11613889341-292.116138893414
2994359722.8555103424-287.855510342408
3089719551.12477474139-580.124774741386
311006310119.7309847025-56.7309847024809
32979310106.3649243994-313.364924399381
3394549746.83284852144-292.832848521439
3497599933.40483850307-174.404838503074
3588209183.57656641313-363.57656641313
3694039559.45855088092-156.458550880917
3796769852.59066028803-176.590660288035
3886429018.43259776519-376.432597765186
3994029933.55446611708-531.554466117081
4096109487.92984566525122.070154334748
4192949839.77884361-545.778843609993
4294489657.05752176538-209.057521765384
431031910232.995192501986.0048074980517
44954810215.7058099460-667.705809946029
4598019860.95569587119-59.9556958711863
46959610046.4708987140-450.470898714015
4789239295.18954430821-372.189544308212
4897469672.8548570727473.1451429272644
4998299967.10980281484-138.109802814835
5091259133.0309993274-8.03099932739602
51978210041.7064661326-259.706466132573
5294419606.88749417504-165.887494175039
5391629949.7802211184-787.780221118395
5499159768.194945448146.805054551997
551044410359.667387125084.3326128749778
561020910316.8565951669-107.856595166928
5799859974.7879267577610.2120732422376
58984210158.7179488924-316.717948892381
5994299407.595112557421.4048874426006
60101329784.95659901952347.043400980484
61984910078.2340166582-229.234016658219
6291729239.63744815238-67.637448152383
631031310152.6193225482160.380677451805
6498199718.1173867323100.882613267696
65995510060.8251759264-105.825175926369
66100489878.36805086646169.631949133538
671008210471.5445618048-389.544561804806
681054110429.6056192362111.394380763773
691020810090.4695351373117.530464862751
701023310268.0059950821-35.0059950820895
7194399519.02315270319-80.0231527031907
7299639896.5035277184266.4964722815768
731015810188.5788499867-30.5788499867338
7492259349.37462887608-124.374628876084
751047410267.8253767152206.17462328478
7697579827.96024616989-70.9602461698854
771049010171.8965504128318.103449587187
78102819999.16186702992281.838132970075
791044410580.185325872-136.185325871996
801064010543.543528836796.4564711633162
811069510213.3108763821481.68912361785
821078610378.4961366422407.50386335781
8398329629.39440571018202.605594289824
84974710011.0226702452-264.022670245223
851041110299.8483720617111.151627938296
8695119461.978344713849.0216552862027
871040210381.974643743420.0253562565623
8897019931.99077634403-230.990776344032
891054010281.2638556379258.736144362068
901011210118.5818599129-6.58185991293973
911091510702.1151882097212.884811790324
921118310653.1221914896529.877808510436
931038410321.449666558462.5503334415937
941083410491.7867641201342.213235879872
9598869741.57540669237144.424593307634
961021610120.654172255095.3458277449567


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6741740372777550.651651925444490.325825962722245
180.6515909284878650.696818143024270.348409071512135
190.5209605179940430.9580789640119140.479039482005957
200.4240974598080120.8481949196160240.575902540191988
210.3568100782233910.7136201564467820.643189921776609
220.2766179679549030.5532359359098050.723382032045097
230.2207174395653140.4414348791306280.779282560434686
240.1512361618113810.3024723236227610.84876383818862
250.1059562983189770.2119125966379550.894043701681023
260.08333736872969120.1666747374593820.916662631270309
270.0580849650312230.1161699300624460.941915034968777
280.06763804049003220.1352760809800640.932361959509968
290.192322137976190.384644275952380.80767786202381
300.1985386310241580.3970772620483150.801461368975842
310.1654818809911780.3309637619823560.834518119008822
320.1234849523937540.2469699047875080.876515047606246
330.09927126223362130.1985425244672430.900728737766379
340.0817239316394570.1634478632789140.918276068360543
350.06178610457732050.1235722091546410.93821389542268
360.06679305570010450.1335861114002090.933206944299896
370.05878193203469870.1175638640693970.941218067965301
380.0397042929891840.0794085859783680.960295707010816
390.03300848906762880.06601697813525750.966991510932371
400.1301798088092470.2603596176184950.869820191190753
410.1342751967761000.2685503935522010.8657248032239
420.1547939185789060.3095878371578110.845206081421094
430.2116335853870760.4232671707741510.788366414612924
440.2529861579884530.5059723159769060.747013842011547
450.3133025977810220.6266051955620440.686697402218978
460.2961323717921490.5922647435842990.70386762820785
470.2651449659663040.5302899319326080.734855034033696
480.4055259338027980.8110518676055960.594474066197202
490.4002244843195470.8004489686390940.599775515680453
500.4722505664486160.9445011328972320.527749433551384
510.4416364759633430.8832729519266850.558363524036657
520.4064762791271130.8129525582542260.593523720872887
530.7452647119856550.5094705760286890.254735288014345
540.8239575824234090.3520848351531830.176042417576591
550.8776764129205070.2446471741589850.122323587079492
560.875687411584720.2486251768305610.124312588415281
570.8756393702217220.2487212595565560.124360629778278
580.911482676891420.1770346462171590.0885173231085796
590.9005375428401750.1989249143196490.0994624571598246
600.9708809364427030.0582381271145940.029119063557297
610.9606112894376560.07877742112468850.0393887105623443
620.9443101232440370.1113797535119260.0556898767559632
630.9430841089719440.1138317820561130.0569158910280565
640.9607502196796350.07849956064073010.0392497803203651
650.9564806926328670.08703861473426530.0435193073671327
660.9515367978869150.09692640422616950.0484632021130847
670.9514864407503470.09702711849930650.0485135592496532
680.9371721388084790.1256557223830430.0628278611915213
690.915898094021690.168203811956620.08410190597831
700.929872279168650.1402554416626980.070127720831349
710.919076917512760.1618461649744790.0809230824872393
720.8902777677294450.2194444645411100.109722232270555
730.8417896325869920.3164207348260150.158210367413008
740.7813897269341720.4372205461316560.218610273065828
750.7316887430553460.5366225138893080.268311256944654
760.6288382224386270.7423235551227450.371161777561373
770.5322880965815630.9354238068368750.467711903418437
780.572506247794690.8549875044106210.427493752205310
790.4121554755153290.8243109510306590.587844524484671


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 level80.126984126984127NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/10uwk81292080178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/10uwk81292080178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/15dmw1292080178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/15dmw1292080178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/2gm4z1292080178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/2gm4z1292080178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/3gm4z1292080178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/3gm4z1292080178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/4gm4z1292080178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/4gm4z1292080178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/5rdl21292080178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/5rdl21292080178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/6rdl21292080178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/6rdl21292080178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/724k51292080178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/724k51292080178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/824k51292080178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/824k51292080178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/9uwk81292080178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292080241ko8pz82c5i3a7nw/9uwk81292080178.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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