Home » date » 2010 » Dec » 12 »

paper met seiz zonder trend

*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, 12 Dec 2010 10:38:23 +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/12/t1292150187id7ki0x8x431mz5.htm/, Retrieved Sun, 12 Dec 2010 11:36:30 +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/12/t1292150187id7ki0x8x431mz5.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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
geboortes[t] = + 9408.25091717042 + 0.137954676030061huwelijken[t] + 298.227157357765M1[t] -632.241511011687M2[t] + 245.786550111648M3[t] -308.745601500791M4[t] -150.993507661975M5[t] -429.437894990934M6[t] + 142.379368334902M7[t] + 52.8309915392159M8[t] -237.832881744925M9[t] + 271.340701244311M10[t] -320.011421321119M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9408.25091717042307.5101430.594900
huwelijken0.1379546760300610.1170871.17820.2420760.121038
M1298.227157357765223.9724361.33150.1866580.093329
M2-632.241511011687201.303379-3.14070.0023350.001168
M3245.786550111648200.5446631.22560.2238170.111909
M4-308.745601500791226.703764-1.36190.1769180.088459
M5-150.993507661975333.510398-0.45270.6519170.325959
M6-429.437894990934406.871973-1.05550.2942770.147138
M7142.379368334902414.2314680.34370.7319270.365963
M852.8309915392159456.3589910.11580.9081170.454059
M9-237.832881744925418.761669-0.56790.5716070.285803
M10271.340701244311217.3278221.24850.2153470.107673
M11-320.011421321119206.426701-1.55020.1248880.062444


Multiple Linear Regression - Regression Statistics
Multiple R0.683579024069009
R-squared0.467280282147138
Adjusted R-squared0.390260563903351
F-TEST (value)6.06702144336696
F-TEST (DF numerator)12
F-TEST (DF denominator)83
p-value1.65786151251623e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation400.473517651365
Sum Squared Residuals13311460.1822248


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
197699924.30850797962-155.308507979622
293219072.06014091924248.93985908076
399399993.68187966807-54.6818796680747
493369609.2478436007-273.2478436007
5101959923.71644940967271.283550590334
694649687.07232891781-223.072328917815
71001010412.8470106932-402.847010693199
81021310255.7008426428-42.7008426427831
9956310032.4968059373-469.496805937342
10989010082.0054083944-192.005408394415
1193059328.41858681763-23.418586817634
1293919733.68599792533-342.685997925331
1399289914.927590009613.0724099903958
1486869060.05808410462-374.058084104625
15984310017.5480386213-174.548038621275
1696279495.02137184781131.97862815219
17100749864.6718480688209.3281519312
1895039767.91376907143-264.913769071431
191011910171.7022369927-52.7022369926525
201000010254.1833412065-254.183341206452
2193139946.68899744664-633.688997446645
22986610072.2106263963-206.210626396281
2391729331.31563501427-159.315635014265
2492419743.34282524744-502.342825247435
2596599867.74709080732-208.747090807324
2689049073.16377832748-169.163778327481
2797559964.29753367367-209.297533673672
2890809470.1895301624-390.189530162399
2994359858.60184232348-423.601842323477
3089719721.28508857327-750.28508857327
311006310165.7701859234-102.77018592336
32979310343.71592595-550.715925949962
3394549804.45772645965-350.457726459652
34975910096.7665587296-337.766558729632
3588209348.55996951802-528.559969518023
3694039693.81709655264-290.817096552643
3796769892.8548418448-216.854841844795
3886429081.9928775934-439.992877593405
3994029993.54392499205-591.543924992045
4096109517.2320746886592.7679253113503
4192949917.23257963625-623.232579636253
4294489665.13753542904-217.137535429035
431031910186.1874779758132.812522024191
44954810323.1606792215-775.160679221483
4598019833.84207245405-32.8420724540547
46959610115.1145306416-519.11453064163
4789239351.73292706671-428.732927066714
4897469715.613935365430.3860646346075
4998299926.3778281201-97.3778281200994
5091259116.343591924898.65640807510965
5197829960.57275742086-178.57275742086
5294419597.10783211005-156.107832110055
5391629903.57506670928-741.575066709277
5499159663.34412464065251.655875359355
551044410346.628766198897.3712338012304
561020910217.0735333544-8.07353335436605
5799859860.1914155758124.808584424204
58984210124.9093126398-282.909312639764
5994299363.1831651772165.8168348227907
60101329723.8912159272408.108784072804
6198499924.44646265568-75.4464626556785
6291729067.23172725819104.768272741811
63103139956.43411713996356.565882860042
6498199596.28010405387222.719895946126
6599559900.8159731886854.1840268113241
66100489651.48002250206396.51997749794
671008210352.5608172681-270.560817268062
681054110232.1105930416308.889406958358
69102089905.85441334175302.145586658254
701023310103.8022472072129.197752792835
7194399364.4247572614874.5752427385203
7299639726.37440009574236.625599904263
73101589914.37577130548243.624228694516
7492259050.81512081061174.184879189389
75104749997.13074656883476.869253431174
7697579580.96713501454176.032864985462
77104909898.33278902013591.667210979865
78102819750.53147989164530.468520108357
791044410324.69397271119.30602729001
801064010259.5635735716380.436426428375
811069510026.288845516668.71115448401
821078610095.2490572933690.750942706699
8398329354.62997526335477.370024736655
8497479759.89738637104-12.8973863710421
85104119913.9619072774497.038092722606
8695119064.33467906156446.665320938443
871040210026.7910019153375.208998084711
8897019504.95410852197196.045891478026
89105409878.05345164372661.946548356284
90101129835.2356509741276.7643490259
911091510435.6095322382479.390467761841
921118310241.4915110117941.508488988313
93103849993.17972326877390.820276731225
941083410115.9422586978718.05774130219
9598869363.73498388133522.265016118671
96102169742.37714251522473.622857484775


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2637129231669740.5274258463339480.736287076833026
170.156013954135730.3120279082714610.84398604586427
180.0807598001327060.1615196002654120.919240199867294
190.03664458985521990.07328917971043980.96335541014478
200.01990349363836190.03980698727672370.980096506361638
210.01507996505546280.03015993011092560.984920034944537
220.006488899308646350.01297779861729270.993511100691354
230.002926067827328710.005852135654657430.997073932172671
240.001528795732053830.003057591464107670.998471204267946
250.0008627937543442840.001725587508688570.999137206245656
260.0003650517892124310.0007301035784248610.999634948210788
270.0001687943489283040.0003375886978566090.999831205651072
280.0002771271687803420.0005542543375606850.99972287283122
290.002415770847672810.004831541695345620.997584229152327
300.006098100407384270.01219620081476850.993901899592616
310.003305568200757280.006611136401514560.996694431799243
320.004017117443530770.008034234887061540.99598288255647
330.002599546674861330.005199093349722660.997400453325139
340.00167115012207860.00334230024415720.998328849877921
350.002492369364176330.004984738728352650.997507630635824
360.001659644017589150.00331928803517830.99834035598241
370.001008846295119260.002017692590238510.998991153704881
380.001206775788475550.00241355157695110.998793224211524
390.00282061495469750.0056412299093950.997179385045302
400.002067694697898130.004135389395796260.997932305302102
410.00737219913778290.01474439827556580.992627800862217
420.006298033741825740.01259606748365150.993701966258174
430.004506033445428950.00901206689085790.99549396655457
440.02358388175553560.04716776351107110.976416118244464
450.02141417383262220.04282834766524450.978585826167378
460.0352692647477040.0705385294954080.964730735252296
470.04644684747301280.09289369494602560.953553152526987
480.04788406875559490.09576813751118980.952115931244405
490.03836858055896850.0767371611179370.961631419441031
500.03415522533852840.06831045067705680.965844774661472
510.03503739908874740.07007479817749480.964962600911253
520.02974549879791410.05949099759582810.970254501202086
530.2595448476794930.5190896953589860.740455152320507
540.2869124916816580.5738249833633170.713087508318342
550.2710389095023870.5420778190047740.728961090497613
560.3236268093874980.6472536187749970.676373190612502
570.3336877429897130.6673754859794270.666312257010287
580.5568655634918410.8862688730163190.443134436508159
590.572771232490570.854457535018860.42722876750943
600.6376788674984140.7246422650031730.362321132501586
610.6644297469757180.6711405060485640.335570253024282
620.6280140048304680.7439719903390640.371985995169532
630.6215635913346250.7568728173307510.378436408665375
640.5877626459653110.8244747080693780.412237354034689
650.7048801864515650.5902396270968710.295119813548435
660.6975194450197150.6049611099605690.302480554980285
670.7742056840476220.4515886319047550.225794315952378
680.803187748515250.3936245029695020.196812251484751
690.792711053832710.4145778923345810.20728894616729
700.9014266626209490.1971466747581010.0985733373790507
710.933235393715910.1335292125681810.0667646062840904
720.9011845948875030.1976308102249950.0988154051124974
730.8818746759045750.236250648190850.118125324095425
740.8560475012750430.2879049974499130.143952498724957
750.815619565450790.3687608690984190.18438043454921
760.7318192386217450.536361522756510.268180761378255
770.6709510727646720.6580978544706560.329048927235328
780.6665125491804560.6669749016390870.333487450819544
790.594742677620530.810514644758940.40525732237947
800.6982910154173870.6034179691652260.301708984582613


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level180.276923076923077NOK
5% type I error level260.4NOK
10% type I error level340.523076923076923NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/1015ev1292150293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/1015ev1292150293.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/1u4h11292150293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/1u4h11292150293.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/2nvy41292150293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/2nvy41292150293.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/3nvy41292150293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/3nvy41292150293.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/4nvy41292150293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/4nvy41292150293.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/5nvy41292150293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/5nvy41292150293.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/6gmxp1292150293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/6gmxp1292150293.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/7rvfs1292150293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/7rvfs1292150293.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/8rvfs1292150293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/8rvfs1292150293.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/9rvfs1292150293.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292150187id7ki0x8x431mz5/9rvfs1292150293.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