Home » date » 2008 » Nov » 27 »

11.3.2

*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: Thu, 27 Nov 2008 08:33:45 -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/Nov/27/t12278000894iuq2aisrr6jjjz.htm/, Retrieved Thu, 27 Nov 2008 15:35:04 +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/Nov/27/t12278000894iuq2aisrr6jjjz.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 «
78.40 97.80 114.60 107.40 113.30 117.50 117.00 105.60 99.60 97.40 99.40 99.50 101.90 98.00 115.20 104.30 108.50 100.60 113.80 101.10 121.00 103.90 92.20 96.90 90.20 95.50 101.50 108.40 126.60 117.00 93.90 103.80 89.80 100.80 93.40 110.60 101.50 104.00 110.40 112.60 105.90 107.30 108.40 98.90 113.90 109.80 86.10 104.90 69.40 102.20 101.20 123.90 100.50 124.90 98.00 112.70 106.60 121.90 90.10 100.60 96.90 104.30 125.90 120.40 112.00 107.50 100.00 102.90 123.90 125.60 79.80 107.50 83.40 108.80 113.60 128.40 112.90 121.10 104.00 119.50 109.90 128.70 99.00 108.70 106.30 105.50 128.90 119.80 111.10 111.30 102.90 110.60 130.00 120.10 87.00 97.50 87.50 107.70 117.60 127.30 103.40 117.20 110.80 119.80 112.60 116.20 102.50 111.00 112.40 112.40 135.60 130.60 105.10 109.10 127.70 118.80 137.00 123.90 91.00 101.60 90.50 112.80 122.40 128.00 123.30 129.60 124.30 125.80 120.00 119.50 118.10 115.70 119.00 113.60 142.70 129.70 123.60 112.00 129.60 116.80 151.60 127.00 110.40 112.10 99.20 114.20 130.50 121.10 136.20 131.60 129.70 125.00 128.00 120.40 121.60 117.70 135.80 117.50 143.80 120.60 147.50 127.50 136.20 112.30 156.60 124.50 123.30 115.20 100.40 105.40
 
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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
investerings[t] = + 66.1505894651654 + 0.025180716423023consumptie[t] + 0.400773220002877V3[t] -18.2608604869474M1[t] -1.45328247179579M2[t] -1.27651989429140M3[t] + 1.11405923780997M4[t] -16.6343188842857M5[t] -2.58000142953887M6[t] -0.294549633253951M7[t] + 1.80960814707014M8[t] -16.678029531183M9[t] -1.36461534589584M10[t] -5.89777655442444M11[t] + 0.00368835171866561t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)66.150589465165414.1130094.68721.3e-057e-06
consumptie0.0251807164230230.1406320.17910.8584120.429206
V30.4007732200028770.0925344.33114.9e-052.4e-05
M1-18.26086048694745.927365-3.08080.002950.001475
M2-1.453282471795796.311027-0.23030.8185480.409274
M3-1.276519894291406.330316-0.20170.8407740.420387
M41.114059237809976.1012130.18260.8556430.427821
M5-16.63431888428576.093701-2.72980.0080110.004005
M6-2.580001429538876.435418-0.40090.689710.344855
M7-0.2945496332539516.252135-0.04710.9625580.481279
M81.809608147070146.088160.29720.7671680.383584
M9-16.6780295311836.132893-2.71940.008240.00412
M10-1.364615345895846.330505-0.21560.8299560.414978
M11-5.897776554424446.241581-0.94490.3479510.173976
t0.003688351718665610.0553550.06660.9470660.473533


Multiple Linear Regression - Regression Statistics
Multiple R0.68955263982766
R-squared0.475482843093295
Adjusted R-squared0.370579411711954
F-TEST (value)4.53257664532286
F-TEST (DF numerator)14
F-TEST (DF denominator)70
p-value9.81164605140528e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.3278128582093
Sum Squared Residuals8982.3540905429


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
178.496.2847024084382-17.8847024084382
2107.4114.648512217873-7.24851221787348
3117107.4612309925889.53876900741221
497.4109.659300712585-12.2593007125848
5101.998.17149749326073.72850250673928
6104.3106.642611810126-2.34261181012595
7113.8116.921188344658-3.12118834465784
8103.9109.146291498466-5.24629149846637
990.292.5889953481411-2.38899534814111
10108.4114.901203075948-6.50120307594754
1193.998.8965783006144-4.99657830061442
12100.8112.872246732018-12.0722467320179
13101.594.80183554687276.69816445312733
14112.6110.4185482929382.18145170706224
15108.4113.067837459219-4.66783745921864
16109.8111.532832792798-1.73283279279809
1769.492.7106916428211-23.3106916428211
18123.9116.2242155454367.67578445456435
1998111.486410507747-13.4864105077475
20121.9110.62053312861311.2794668713874
2196.9102.633712441358-5.73371244135788
22120.4110.7704792467689.62952075323195
23100112.584542678556-12.5845426785558
24125.6111.33165222728014.2683477727201
2583.496.2494375103364-12.8494375103364
26128.4116.16974396456312.2302560354374
27104112.027727558145-8.0277275581454
28128.7113.4248624912915.2751375087100
29106.3103.9394664217212.36053357827921
30119.8111.0848755681058.71512443189544
31102.9120.855884571950-17.9558845719504
32120.1109.34433614631610.7556638536836
3387.599.4371693717963-11.9371693717963
34127.3114.48568554018212.8143144598180
35110.8108.5256196206962.27438037930364
36116.2113.3502209807172.84977901928344
37112.4105.2013591501477.19864084985348
38130.6111.20831595705219.3916840429475
39127.7122.9153155393514.78468446064877
40123.9110.42218711850913.4778128814906
4190.5101.562519942214-11.0625199422142
42128118.7704904551429.22950954485792
43124.3117.2751594821767.0248405178244
44119.5117.4657892517492.03421074825129
45119109.6894036413889.3105963586117
46129.7112.95457548853616.7454245114639
47129.6124.1244932721635.47550672783653
48127114.03425940308612.9657405969144
4999.2103.247001238317-4.04700123831729
50121.1121.0530939084970.0469060915027699
51129.7119.50873722177210.1912627782279
52120.4117.6894261037242.71057389627581
53135.8110.30167643808825.4983235619121
54120.6118.5825002511972.01749974880282
55136.2131.6477798831944.55222011680593
56124.5117.4406025877717.05939741222901
57100.483.757463941158516.6425360588415
5897.8110.928652449340-13.1286524493396
59113.3110.3196265821842.98037341781596
60105.6107.915201552299-2.31520155229865
6199.491.45899083544067.94100916455944
6298109.627450178159-11.6274501781592
63108.5113.247608237633-4.74760823763344
64101.1112.187907458455-11.0879074584547
6592.288.34576930824343.85423069175658
6695.5109.813679014307-14.3136790143072
67126.6106.68190857682619.9180914231741
68103.8110.870174440182-7.07017444018227
6993.493.19052526924870.209474730751319
70104112.951174405002-8.95117440500184
71105.9106.660393803268-0.760393803268446
7298.9113.289133945808-14.3891339458075
7386.178.61409727465547.48590272534461
74102.2117.174335480917-14.9743354809172
75100.5107.571542991291-7.07154299129144
76112.7119.083483322639-6.3834833226389
7790.191.1683787536519-1.06837875365188
78104.3115.281627355687-10.9816273556874
79112108.9316686334493.0683313665513
80102.9121.712272946903-18.8122729469027
8179.885.9027299869092-6.10272998690924
82108.8119.408229794225-10.6082297942250
83112.9105.2887457425177.6112542574825
84119.5120.807285158794-1.30728515879380
859993.5425760357935.457423964207


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.9079507447594770.1840985104810460.0920492552405229
190.8608622016546270.2782755966907450.139137798345373
200.8228582761941730.3542834476116540.177141723805827
210.7448697371551350.5102605256897310.255130262844865
220.6563287062853050.687342587429390.343671293714695
230.6250872767187850.7498254465624290.374912723281215
240.590308236845840.819383526308320.40969176315416
250.5719800458941230.8560399082117540.428019954105877
260.5732077674084290.8535844651831430.426792232591571
270.5227882825917450.954423434816510.477211717408255
280.6208948989243620.7582102021512770.379105101075638
290.5722646902704680.8554706194590640.427735309729532
300.4891571019896240.978314203979250.510842898010376
310.6740260453515870.6519479092968260.325973954648413
320.603764605253780.7924707894924390.396235394746219
330.6882731008698830.6234537982602340.311726899130117
340.6372597946921040.7254804106157920.362740205307896
350.6778005336216720.6443989327566560.322199466378328
360.6209303236189780.7581393527620440.379069676381022
370.5952243616483540.8095512767032920.404775638351646
380.6215966656915580.7568066686168840.378403334308442
390.546666452995890.906667094008220.45333354700411
400.5218290718628210.9563418562743580.478170928137179
410.76275345468510.4744930906297990.237246545314900
420.7341834132282740.5316331735434520.265816586771726
430.8099169421104980.3801661157790050.190083057889502
440.7557268447692350.488546310461530.244273155230765
450.7201307830805580.5597384338388840.279869216919442
460.7582854135810840.4834291728378320.241714586418916
470.7006695758187860.5986608483624290.299330424181214
480.6968023648815960.6063952702368080.303197635118404
490.8485197215062550.3029605569874900.151480278493745
500.81091882975110.3781623404978010.189081170248900
510.7731028859402050.4537942281195910.226897114059795
520.7132940739377140.5734118521245720.286705926062286
530.8818672930808420.2362654138383160.118132706919158
540.8558009745499180.2883980509001650.144199025450082
550.8376228997919390.3247542004161230.162377100208061
560.8933304294788150.2133391410423700.106669570521185
570.9614014543301340.07719709133973280.0385985456698664
580.9801253682368360.03974926352632820.0198746317631641
590.9647310532950540.07053789340989150.0352689467049457
600.948227314318680.1035453713626400.0517726856813199
610.9108320534070350.1783358931859300.0891679465929648
620.893386644697580.2132267106048400.106613355302420
630.8436176749585010.3127646500829980.156382325041499
640.7862485834821260.4275028330357490.213751416517874
650.6734548290697720.6530903418604560.326545170930228
660.5990059256274250.801988148745150.400994074372575
670.7385941444487630.5228117111024730.261405855551237


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.02OK
10% type I error level30.06OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/10cdbl1227800020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/10cdbl1227800020.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/1vo9l1227800020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/1vo9l1227800020.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/28g0i1227800020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/28g0i1227800020.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/36lht1227800020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/36lht1227800020.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/4wwny1227800020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/4wwny1227800020.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/5pilk1227800020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/5pilk1227800020.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/655gf1227800020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/655gf1227800020.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/78gir1227800020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/78gir1227800020.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/85jka1227800020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/85jka1227800020.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/9zhk01227800020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12278000894iuq2aisrr6jjjz/9zhk01227800020.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