Home » date » 2009 » Nov » 20 »

*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: Fri, 20 Nov 2009 07:18:19 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu.htm/, Retrieved Fri, 20 Nov 2009 15:19:42 +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/2009/Nov/20/t1258726770xo4nb4k2xa59zyu.htm/},
    year = {2009},
}
@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 = {2009},
    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:
Rob_WS7_5
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103,7 114813 123297 116476 109375 106370 106,2 117925 114813 123297 116476 109375 107,7 126466 117925 114813 123297 116476 109,9 131235 126466 117925 114813 123297 111,7 120546 131235 126466 117925 114813 114,9 123791 120546 131235 126466 117925 116 129813 123791 120546 131235 126466 118,3 133463 129813 123791 120546 131235 120,4 122987 133463 129813 123791 120546 126 125418 122987 133463 129813 123791 128,1 130199 125418 122987 133463 129813 130,1 133016 130199 125418 122987 133463 130,8 121454 133016 130199 125418 122987 133,6 122044 121454 133016 130199 125418 134,2 128313 122044 121454 133016 130199 135,5 131556 128313 122044 121454 133016 136,2 120027 131556 128313 122044 121454 139,1 123001 120027 131556 128313 122044 139 130111 123001 120027 131556 128313 139,6 132524 130111 123001 120027 131556 138,7 123742 132524 130111 123001 120027 140,9 124931 123742 132524 130111 123001 141,3 133646 124931 123742 132524 130111 141,8 136557 133646 124931 123742 132524 142 127509 136557 1336 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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
HFCE[t] = + 73767.229794668 -441.574474829804RPI[t] + 0.0134539688684464`HFCE-1`[t] + 0.670282928478978`HFCE-2`[t] -0.112605495888278`HFCE-3`[t] + 0.269398473310232`HFCE-4`[t] -11927.4055660515Q1[t] -10325.7832993243Q2[t] + 473.109328445136Q3[t] + 720.105157172006t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)73767.22979466812600.3829395.854400
RPI-441.57447482980484.869548-5.2032e-061e-06
`HFCE-1`0.01345396886844640.177060.0760.939630.469815
`HFCE-2`0.6702829284789780.2131323.14490.0023710.001186
`HFCE-3`-0.1126054958882780.204417-0.55090.5833440.291672
`HFCE-4`0.2693984733102320.1903121.41560.1609890.080494
Q1-11927.40556605152951.295999-4.04140.0001266.3e-05
Q2-10325.78329932435126.094707-2.01440.0475110.023755
Q3473.1093284451363355.9100760.1410.888260.44413
t720.105157172006129.2880815.569800


Multiple Linear Regression - Regression Statistics
Multiple R0.998054720351583
R-squared0.996113224816076
Adjusted R-squared0.995652948807453
F-TEST (value)2164.16499264645
F-TEST (DF numerator)9
F-TEST (DF denominator)76
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2000.54464928762
Sum Squared Residuals304165595.928294


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1114813112839.0542162571973.94578374277
2117925118524.632622351-599.632622351276
3126466124881.3735524731584.62644752682
4131235129150.6483716722084.35162832833
5120546120301.557427003244.442572997204
6123791124139.620852688-348.620852687663
7129813129815.807372434-2.80737243414336
8133463133791.671277259-328.671277258834
9122987122497.610137536489.389862463521
10125418124848.197163124569.802836876374
11130199129662.018736778536.981263222051
12133016132882.606442646133.393557354398
13121454121512.764045843-58.7640458432724
14122044124447.255974463-2403.25597446259
15128313128930.220116044-617.220116043573
16131556131143.819228906412.180771094216
17120027120691.829196334-664.829196333544
18123001123204.628618729-203.628618728678
19130111128403.783478151707.21652185008
20132524132646.801780971-122.801780971092
21123742123194.310704238547.689295761865
22124931126044.380219188-1113.38021918774
23133646133160.026388937485.973611063157
24136557135739.412701887817.58729811272
25127509127824.732295891-315.732295890568
26128945130210.943515295-1265.94351529532
27137191137660.396911539-469.396911539018
28139716140386.516908107-670.516908107316
29129083131567.075102973-2484.07510297302
30131604133704.271076842-2100.27107684168
31139413139890.56908265-477.569082649891
32143125143721.660704888-596.660704888409
33133948134296.888815235-348.888815235051
34137116137944.065128989-828.065128989324
35144864144907.767387548-43.7673875478447
36149277149018.431625836258.568374163670
37138796139837.434683540-1041.43468353954
38143258144073.947654751-815.94765475105
39150034149555.751281003478.248718996623
40154708154679.74047750028.2595224995953
41144888144530.362683653357.63731634734
42148762148967.192264256-205.19226425627
43156500155034.4710968841465.52890311603
44161088160038.1021031361049.89789686351
45152772151306.5532373991465.44676260102
46158011155969.1298357762041.87016422364
47163318163508.354054245-190.354054244632
48169969168980.900487616988.099512383786
49162269158280.9138977313988.08610226872
50165765164401.9978816781363.00211832212
51170600171355.138394751-755.138394750844
52174681176183.592922932-1502.59292293248
53166364165892.293957053471.706042947255
54170240170307.612445926-67.6124459258823
55176150177102.855840294-952.855840293737
56182056182151.651229665-95.6512296654724
57172218172263.978616167-45.9786161666594
58177856177863.420474643-7.42047464301231
59182253183526.180519338-1273.18051933804
60188090189603.749692135-1513.74969213537
61176863177695.427694989-832.427694989112
62183273183874.984693894-601.984693893728
63187969188261.435551479-292.435551478773
64194650195219.093658299-569.093658298867
65183036183105.572931722-69.572931722097
66189516189843.318824504-327.318824503875
67193805193691.878386681113.121613319474
68200499200652.829039166-153.829039166426
69188142188331.168258343-189.168258342689
70193732195264.792202733-1532.79220273261
71197126198668.878256605-1542.87825660458
72205140205417.505996586-277.505996585815
73191751192413.757059351-662.757059350805
74196700199549.397881239-2849.39788123889
75199784201421.802595861-1637.80259586087
76207360207766.848630034-406.848630034271
77196101193857.8481227022243.15187729816
78200824200634.942705422189.057294577589
79205743204295.234168561447.76583143992
80212489209890.6933713212598.30662867898
81200810197932.2351762572877.7648237428
82203683203482.412094146200.587905854467
83207286206850.056827748435.943172251792
84210910213042.723349435-2132.72334943486
85194915202860.631739784-7945.63173978427
86217920207013.85586936510906.1441306354


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
130.03051715208585740.06103430417171480.969482847914143
140.007325168622100360.01465033724420070.9926748313779
150.01035306254754850.02070612509509700.989646937452451
160.00393171897578690.00786343795157380.996068281024213
170.001267193150374280.002534386300748560.998732806849626
180.0004673884819581510.0009347769639163020.999532611518042
190.0002212453780275140.0004424907560550280.999778754621973
200.0001394245188741870.0002788490377483750.999860575481126
217.12040120366285e-050.0001424080240732570.999928795987963
220.0001273027784971500.0002546055569942990.999872697221503
230.0002041944678202810.0004083889356405620.99979580553218
248.97737506206766e-050.0001795475012413530.99991022624938
253.58912272030788e-057.17824544061576e-050.999964108772797
261.72735113587092e-053.45470227174184e-050.999982726488641
276.40407928285482e-061.28081585657096e-050.999993595920717
282.76212777338138e-065.52425554676275e-060.999997237872227
291.99996741565744e-063.99993483131488e-060.999998000032584
306.8434914807691e-071.36869829615382e-060.999999315650852
313.88086036132218e-077.76172072264436e-070.999999611913964
321.39539040085575e-072.79078080171151e-070.99999986046096
338.14889789967227e-081.62977957993445e-070.999999918511021
346.73928396325658e-081.34785679265132e-070.99999993260716
352.5478464957233e-085.0956929914466e-080.999999974521535
361.22514834096202e-082.45029668192404e-080.999999987748517
374.33732763848020e-098.67465527696041e-090.999999995662672
388.06331936646638e-091.61266387329328e-080.99999999193668
392.83936756510294e-095.67873513020588e-090.999999997160632
401.31809478193916e-092.63618956387831e-090.999999998681905
415.60446912367825e-101.12089382473565e-090.999999999439553
429.10468538416632e-101.82093707683326e-090.999999999089531
434.26005726385211e-108.52011452770423e-100.999999999573994
441.78772658407056e-103.57545316814113e-100.999999999821227
451.32181621919898e-102.64363243839797e-100.999999999867818
463.92912885768024e-107.85825771536048e-100.999999999607087
471.94104394184173e-093.88208788368345e-090.999999998058956
488.22246261121178e-101.64449252224236e-090.999999999177754
493.80872175639238e-097.61744351278476e-090.999999996191278
501.39889164001503e-092.79778328003006e-090.999999998601108
517.63274295594752e-091.52654859118950e-080.999999992367257
521.09370600915712e-082.18741201831425e-080.99999998906294
535.29512931113407e-091.05902586222681e-080.99999999470487
541.98658545888064e-093.97317091776128e-090.999999998013415
552.1348051419923e-094.2696102839846e-090.999999997865195
561.26466853567520e-092.52933707135040e-090.999999998735331
579.13036013538756e-101.82607202707751e-090.999999999086964
588.30567299684864e-101.66113459936973e-090.999999999169433
592.13362858721561e-094.26725717443122e-090.999999997866371
603.39786929324157e-096.79573858648314e-090.99999999660213
611.95948170464652e-093.91896340929303e-090.999999998040518
621.78157744706822e-093.56315489413645e-090.999999998218423
638.2182147429345e-101.6436429485869e-090.999999999178179
648.54556776645712e-101.70911355329142e-090.999999999145443
659.3364544849719e-101.86729089699438e-090.999999999066355
668.34068859069626e-091.66813771813925e-080.999999991659311
677.59749745876459e-091.51949949175292e-080.999999992402502
684.759787966876e-089.519575933752e-080.99999995240212
691.32789889669839e-052.65579779339678e-050.999986721011033
700.0001984145910938370.0003968291821876740.999801585408906
710.002538899608308930.005077799216617860.997461100391691
720.001997964680426510.003995929360853020.998002035319574
730.001583167044424000.003166334088847990.998416832955576


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level580.950819672131147NOK
5% type I error level600.98360655737705NOK
10% type I error level611NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/10of4p1258726692.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/10of4p1258726692.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/13h3v1258726692.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/13h3v1258726692.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/2xdp81258726692.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/2xdp81258726692.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/3efnk1258726692.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/3efnk1258726692.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/4v21p1258726692.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/4v21p1258726692.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/5px7k1258726692.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/5px7k1258726692.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/64emw1258726692.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/64emw1258726692.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/7novu1258726692.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/7novu1258726692.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/8udbc1258726692.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/8udbc1258726692.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/9k2rs1258726692.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258726770xo4nb4k2xa59zyu/9k2rs1258726692.ps (open in new window)


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