Home » date » 2008 » Dec » 01 »

met lineaire 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: Mon, 01 Dec 2008 05:52:41 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard.htm/, Retrieved Mon, 01 Dec 2008 12:54:23 +0000
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
9.103 0 9.155 0 9.308 0 9.394 0 9.948 0 10.177 0 10.002 0 9.728 0 10.002 0 10.063 0 10.018 0 9.96 0 10.236 0 10.893 0 10.756 0 10.94 0 10.997 0 10.827 0 10.166 0 10.186 0 10.457 0 10.368 0 10.244 0 10.511 0 10.812 0 10.738 0 10.171 0 9.721 0 9.897 0 9.828 0 9.924 0 10.371 0 10.846 0 10.413 0 10.709 0 10.662 0 10.57 0 10.297 0 10.635 0 10.872 0 10.296 0 10.383 0 10.431 0 10.574 0 10.653 0 10.805 0 10.872 0 10.625 0 10.407 0 10.463 0 10.556 0 10.646 0 10.702 0 11.353 0 11.346 1 11.451 1 11.964 1 12.574 1 13.031 1 13.812 1 14.544 1 14.931 1 14.886 1 16.005 1 17.064 1 15.168 1 16.05 1 15.839 1 15.137 1 14.954 1 15.648 1 15.305 1 15.579 1 16.348 1 15.928 1 16.171 1 15.937 1 15.713 1 15.594 1 15.683 1 16.438 1 17.032 1 17.696 1 17.745 1 19.394 1 20.148 1 20.108 1 18.584 1 18.441 1 18.391 1 19.178 1 18.079 1 18.483 1 19.644 1
 
Output produced by software:

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


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


Multiple Linear Regression - Estimated Regression Equation
goudprijs[t] = + 8.40703454617756 + 2.91842397355602dummy[t] + 0.389699591679924M1[t] + 0.618153501632036M2[t] + 0.477482411584153M3[t] + 0.41306132153627M4[t] + 0.469140231488386M5[t] + 0.226344141440501M6[t] -0.0946299453018855M7[t] -0.254676035349769M8[t] -0.0585971253976533M9[t] + 0.112981784554463M10[t] + 0.00511751861931323M11[t] + 0.0625460900478841t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)8.407034546177560.56031715.004100
dummy2.918423973556020.5185755.627800
M10.3896995916799240.6600520.59040.5565820.278291
M20.6181535016320360.6597850.93690.3516290.175815
M30.4774824115841530.6596530.72380.4712760.235638
M40.413061321536270.6596570.62620.5329820.266491
M50.4691402314883860.6597940.7110.4791280.239564
M60.2263441414405010.6600670.34290.7325650.366283
M7-0.09462994530188550.660136-0.14330.8863750.443187
M8-0.2546760353497690.659885-0.38590.7005650.350283
M9-0.05859712539765330.659768-0.08880.9294510.464726
M100.1129817845544630.6597870.17120.8644680.432234
M110.005117518619313230.6811760.00750.9940240.497012
t0.06254609004788410.0094336.630800


Multiple Linear Regression - Regression Statistics
Multiple R0.931653160516201
R-squared0.867977611499826
Adjusted R-squared0.846523973368548
F-TEST (value)40.4582945880104
F-TEST (DF numerator)13
F-TEST (DF denominator)80
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.27424094827436
Sum Squared Residuals129.895199540732


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
19.1038.859280227905340.243719772094665
29.1559.150280227905370.00471977209463401
39.3089.072155227905360.235844772094642
49.3949.070280227905360.323719772094642
59.9489.188905227905360.759094772094642
610.1779.008655227905361.16834477209464
710.0028.750227231210861.25177276878914
89.7288.652727231210861.07527276878914
910.0028.911352231210861.09064776878914
1010.0639.145477231210860.917522768789144
1110.0189.10015905532360.917840944676408
129.969.157587626752160.802412373247837
1310.2369.609833308479970.626166691520029
1410.8939.900833308479970.992166691520035
1510.7569.822708308479970.933291691520032
1610.949.820833308479971.11916669152003
1710.9979.939458308479971.05754169152003
1810.8279.759208308479971.06779169152003
1910.1669.500780311785470.665219688214534
2010.1869.403280311785470.782719688214533
2110.4579.661905311785470.795094688214534
2210.3689.896030311785470.471969688214534
2310.2449.85071213589820.393287864101799
2410.5119.908140707326770.602859292673227
2510.81210.36038638905460.451613610945418
2610.73810.65138638905460.0866136109454223
2710.17110.5732613890546-0.402261389054579
289.72110.5713863890546-0.850386389054579
299.89710.6900113890546-0.793011389054578
309.82810.5097613890546-0.681761389054579
319.92410.2513333923601-0.327333392360076
3210.37110.15383339236010.217166607639924
3310.84610.41245839236010.433541607639924
3410.41310.6465833923601-0.233583392360075
3510.70910.60126521647280.107734783527189
3610.66210.65869378790140.00330621209861895
3710.5711.1109394696292-0.540939469629191
3810.29711.4019394696292-1.10493946962919
3910.63511.3238144696292-0.688814469629187
4010.87211.3219394696292-0.449939469629188
4110.29611.4405644696292-1.14456446962919
4210.38311.2603144696292-0.877314469629188
4310.43111.0018864729347-0.570886472934686
4410.57410.9043864729347-0.330386472934686
4510.65311.1630114729347-0.510011472934685
4610.80511.3971364729347-0.592136472934685
4710.87211.3518182970474-0.47981829704742
4810.62511.409246868476-0.784246868475991
4910.40711.8614925502038-1.4544925502038
5010.46312.1524925502038-1.68949255020380
5110.55612.0743675502038-1.51836755020380
5210.64612.0724925502038-1.42649255020380
5310.70212.1911175502038-1.48911755020380
5411.35312.0108675502038-0.657867550203796
5511.34614.6708635270653-3.32486352706532
5611.45114.5733635270653-3.12236352706531
5711.96414.8319885270653-2.86798852706532
5812.57415.0661135270653-2.49211352706531
5913.03115.0207953511780-1.98979535117805
6013.81215.0782239226066-1.26622392260662
6114.54415.5304696043344-0.98646960433443
6214.93115.8214696043344-0.890469604334427
6314.88615.7433446043344-0.857344604334428
6416.00515.74146960433440.263530395665572
6517.06415.86009460433441.20390539566557
6615.16815.6798446043344-0.511844604334427
6716.0515.42141660763990.628583392360077
6815.83915.32391660763990.515083392360076
6915.13715.5825416076399-0.445541607639924
7014.95415.8166666076399-0.862666607639924
7115.64815.7713484317527-0.123348431752659
7215.30515.8287770031812-0.523777003181231
7315.57916.2810226849090-0.702022684909038
7416.34816.5720226849090-0.224022684909036
7515.92816.4938976849090-0.565897684909035
7616.17116.4920226849090-0.321022684909037
7715.93716.6106476849090-0.673647684909037
7815.71316.4303976849090-0.717397684909037
7915.59416.1719696882145-0.577969688214534
8015.68316.0744696882145-0.391469688214534
8116.43816.33309468821450.104905311785465
8217.03216.56721968821450.464780311785466
8317.69616.52190151232731.17409848767273
8417.74516.57933008375581.16566991624416
8519.39417.03157576548362.36242423451635
8620.14817.32257576548362.82542423451635
8720.10817.24445076548362.86354923451635
8818.58417.24257576548361.34142423451635
8918.44117.36120076548361.07979923451635
9018.39117.18095076548361.21004923451635
9119.17816.92252276878912.25547723121086
9218.07916.82502276878911.25397723121086
9318.48317.08364776878911.39935223121086
9419.64417.31777276878912.32622723121086


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.008950937982823020.01790187596564600.991049062017177
180.007931652029401760.01586330405880350.992068347970598
190.01333931094334660.02667862188669310.986660689056653
200.007547790063463290.01509558012692660.992452209936537
210.004169549449995870.008339098899991730.995830450550004
220.002638803985040860.005277607970081720.99736119601496
230.001719076831489210.003438153662978410.99828092316851
240.0008174607345845460.001634921469169090.999182539265415
250.0003577781347318370.0007155562694636750.999642221865268
260.0002162629457523500.0004325258915047000.999783737054248
270.0003604118021107750.0007208236042215510.99963958819789
280.001442412485648330.002884824971296670.998557587514352
290.003265713433890150.006531426867780290.99673428656611
300.005720873389194660.01144174677838930.994279126610805
310.004534674066587490.009069348133174990.995465325933413
320.003538985701423060.007077971402846120.996461014298577
330.003616414072286720.007232828144573450.996383585927713
340.002842596566487630.005685193132975260.997157403433512
350.002296619984474120.004593239968948240.997703380015526
360.001896344193207650.003792688386415290.998103655806792
370.001226391821160190.002452783642320380.99877360817884
380.0008436766463321520.001687353292664300.999156323353668
390.0004953987436117480.0009907974872234960.999504601256388
400.0003608283701982260.0007216567403964510.999639171629802
410.0002500243227562060.0005000486455124120.999749975677244
420.0001823162214388610.0003646324428777220.99981768377856
430.0001160132217340280.0002320264434680560.999883986778266
440.0001074957938761680.0002149915877523350.999892504206124
450.0001170189238738260.0002340378477476510.999882981076126
460.0001068649523070110.0002137299046140230.999893135047693
478.47654854546137e-050.0001695309709092270.999915234514545
486.123724636518e-050.000122474492730360.999938762753635
493.35216739972263e-056.70433479944526e-050.999966478326003
502.01096850907255e-054.02193701814511e-050.99997989031491
511.01053232961900e-052.02106465923801e-050.999989894676704
524.80308727116003e-069.60617454232006e-060.999995196912729
532.98447959690508e-065.96895919381015e-060.999997015520403
541.88578683961588e-063.77157367923176e-060.99999811421316
552.05826770577180e-064.11653541154359e-060.999997941732294
561.51650980223749e-063.03301960447498e-060.999998483490198
579.46497949860824e-071.89299589972165e-060.99999905350205
581.24231526212167e-062.48463052424333e-060.999998757684738
592.35604046388891e-064.71208092777782e-060.999997643959536
601.22392037610602e-052.44784075221204e-050.99998776079624
610.0001728679537356530.0003457359074713060.999827132046264
620.000995815881522760.001991631763045520.999004184118477
630.002115515017956640.004231030035913280.997884484982043
640.01414415153387640.02828830306775280.985855848466124
650.2268666628837420.4537333257674850.773133337116258
660.2404350303430100.4808700606860210.75956496965699
670.480923455015020.961846910030040.51907654498498
680.8754667539191240.2490664921617510.124533246080876
690.9528853656132960.09422926877340730.0471146343867037
700.950178082864470.0996438342710590.0498219171355295
710.9456192500164070.1087614999671870.0543807499835934
720.9185204235254790.1629591529490420.0814795764745209
730.904804362895090.1903912742098200.0951956371049102
740.9030945283160420.1938109433679160.0969054716839581
750.9742380097980070.05152398040398510.0257619902019925
760.937018531348580.125962937302840.06298146865142
770.8491453111979110.3017093776041780.150854688802089


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level420.688524590163934NOK
5% type I error level480.78688524590164NOK
10% type I error level510.836065573770492NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/10dylt1228135955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/10dylt1228135955.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/11uxq1228135955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/11uxq1228135955.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/20dnb1228135955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/20dnb1228135955.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/38h0f1228135955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/38h0f1228135955.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/4frho1228135955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/4frho1228135955.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/5m7i61228135955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/5m7i61228135955.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/6wzn21228135955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/6wzn21228135955.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/79s5l1228135955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/79s5l1228135955.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/8i7cg1228135955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/8i7cg1228135955.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/9ezhz1228135955.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/01/t12281360529b42t3y22w00ard/9ezhz1228135955.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