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 06:40:56 -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/t1258724566bk3k9wt04mibeh3.htm/, Retrieved Fri, 20 Nov 2009 14:42:59 +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/t1258724566bk3k9wt04mibeh3.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_2
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106370 100.3 109375 101.9 116476 102.1 123297 103.2 114813 103.7 117925 106.2 126466 107.7 131235 109.9 120546 111.7 123791 114.9 129813 116 133463 118.3 122987 120.4 125418 126 130199 128.1 133016 130.1 121454 130.8 122044 133.6 128313 134.2 131556 135.5 120027 136.2 123001 139.1 130111 139 132524 139.6 123742 138.7 124931 140.9 133646 141.3 136557 141.8 127509 142 128945 144.5 137191 144.6 139716 145.5 129083 146.8 131604 149.5 139413 149.9 143125 150.1 133948 150.9 137116 152.8 144864 153.1 149277 154 138796 154.9 143258 156.9 150034 158.4 154708 159.7 144888 160.2 148762 163.2 156500 163.7 161088 164.4 152772 163.7 158011 165.5 163318 165.6 169969 166.8 162269 167.5 165765 170.6 170600 170.9 174681 172 166364 171.8 170240 173.9 176150 174 182056 173.8 172218 173.9 177856 176 182253 176.6 188090 178.2 176863 179.2 183273 181.3 187969 181.8 194650 182.9 183036 183.8 189516 186.3 193805 187.4 200499 189.2 188142 189.7 193732 191.9 1971 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
HFCE[t] = + 13234.0835008933 + 940.277242456398RPI[t] -10550.7208770042Q1[t] -8526.67838512695Q2[t] -3873.4172652533Q3[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)13234.08350089335055.5241222.61770.0104770.005238
RPI940.27724245639829.26440332.130400
Q1-10550.72087700422595.899657-4.06440.0001075.4e-05
Q2-8526.678385126952595.133711-3.28560.001480.00074
Q3-3873.41726525332623.978033-1.47620.1435950.071798


Multiple Linear Regression - Regression Statistics
Multiple R0.962082470218056
R-squared0.925602679500876
Adjusted R-squared0.922101629124447
F-TEST (value)264.378566424652
F-TEST (DF numerator)4
F-TEST (DF denominator)85
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8702.07384687471
Sum Squared Residuals6436717585.09917


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
110637096993.1700422669376.8299577340
2109375100521.6561220738853.34387792677
3116476105362.97269043811113.0273095619
4123297110270.69492239413026.3050776065
5114813100190.11266661714622.8873333825
6117925104564.84826463613360.1517353642
7126466110628.52524819415837.474751806
8131235116570.55244685114664.4475531486
9120546107712.33060626912833.6693937313
10123791112745.26027400611045.7397259936
11129813118432.82636058211380.1736394179
12133463124468.8812834858994.1187165149
13122987115892.7426156397094.25738436068
14125418123182.3376652722235.66233472758
15130199129810.180994304388.8190056955
16133016135564.152744471-2548.15274447060
17121454125671.625937186-4217.62593718586
18122044130328.444707941-8284.44470794104
19128313135545.872173289-7232.87217328852
20131556140641.649853735-9085.64985373514
21120027130749.123046450-10722.1230464504
22123001135499.969541451-12498.9695414512
23130111140059.202937079-9948.20293707924
24132524144496.786547806-11972.7865478064
25123742133099.816152591-9357.81615259137
26124931137192.468577873-12261.4685778727
27133646142221.840594729-8575.84059472896
28136557146565.396481210-10008.3964812105
29127509136202.731052697-8693.7310526975
30128945140577.466650716-11632.4666507158
31137191145324.755494835-8133.75549483506
32139716150044.422278299-10328.4222782991
33129083140716.061816488-11633.0618164882
34131604145278.852862998-13674.8528629978
35139413150308.224879854-10895.2248798540
36143125154369.697593599-11244.6975935985
37133948144571.198510559-10623.1985105594
38137116148381.767763104-11265.7677631039
39144864153317.112055714-8453.11205571443
40149277158036.778839178-8759.7788391785
41138796148332.307480385-9536.30748038503
42143258152236.904457175-8978.9044571751
43150034158300.581440733-8266.58144073336
44154708163396.35912118-8688.35912117996
45144888153315.776865404-8427.77686540392
46148762158160.651084650-9398.6510846504
47156500163284.050825752-6784.05082575224
48161088167815.662160725-6727.66216072504
49152772156606.747214001-3834.74721400132
50158011160323.2887423-2312.28874230012
51163318165070.577586419-1752.57758641940
52169969170072.327542620-103.327542620400
53162269160179.8007353362089.19926466436
54165765165118.702678828646.297321172258
55170600170054.046971438545.953028561677
56174681174961.769203394-280.769203393654
57166364164222.9928778982141.00712210184
58170240168221.6175789342018.38242106614
59176150172968.9064230533181.09357694685
60182056176654.2682398155401.73176018482
61172218166197.5750870576020.42491294341
62177856170196.1997880927659.8002119077
63182253175413.6272534406839.37274656022
64188090180791.4881066237298.51189337669
65176863171181.0444720755681.95552792452
66183273175179.6691731118093.33082688879
67187969180303.0689142137665.93108578694
68194650185210.7911461689439.2088538316
69183036175506.3197873757529.68021262507
70189516179881.0553853939634.9446146068
71193805185568.6214719698236.37852803112
72200499191134.5377736449364.46222635632
73188142181053.9555178687088.04448213235
74193732185146.6079431498585.39205685098
75197126190458.0631327426667.93686725786
76205140195365.7853646979774.21463530253
77191751185285.2031089216465.79689107856
78196700190506.1882251506193.81177484953
79199784196757.92065723026.07934279998
80207360202605.9201316124754.07986838825
81196101193559.6428425382541.35715746225
82200824198686.6002345212137.39976547885
83205743204092.083148361650.91685164010
84212489210504.2489682451984.75103175451
85200810201175.888506435-365.888506434555
86203683207149.095416629-3466.09541662872
87207286213776.938745661-6490.9387456608
88210910215863.829250247-4953.82925024695
89194915200987.833057943-6072.8330579433
90217920204610.34686199613309.6531380036


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.01928481764236780.03856963528473570.980715182357632
90.01817639318842810.03635278637685610.981823606811572
100.01127022336058390.02254044672116780.988729776639416
110.01020771107647970.02041542215295940.98979228892352
120.01588096187516030.03176192375032050.98411903812484
130.01720903796489270.03441807592978530.982790962035107
140.02512501657649360.05025003315298730.974874983423506
150.04557872328907750.0911574465781550.954421276710922
160.07359027401444060.1471805480288810.92640972598556
170.07516070882629330.1503214176525870.924839291173707
180.08347011446932650.1669402289386530.916529885530673
190.07982328339132330.1596465667826470.920176716608677
200.07787661714743170.1557532342948630.922123382852568
210.06505590441709060.1301118088341810.93494409558291
220.04963041902559590.09926083805119190.950369580974404
230.03355361416976770.06710722833953540.966446385830232
240.02530917090374040.05061834180748090.97469082909626
250.01556507668304870.03113015336609730.984434923316951
260.009755551903375960.01951110380675190.990244448096624
270.005931563472422140.01186312694484430.994068436527578
280.003445717912984870.006891435825969750.996554282087015
290.002353049020938430.004706098041876860.997646950979062
300.001538468761120740.003076937522241490.99846153123888
310.001094856002236590.002189712004473180.998905143997763
320.0006920750826277650.001384150165255530.999307924917372
330.0004597437717191570.0009194875434383140.99954025622828
340.0003983693729055230.0007967387458110470.999601630627095
350.0003091724250422260.0006183448500844530.999690827574958
360.0002755500620238940.0005511001240477880.999724449937976
370.000320903845929090.000641807691858180.999679096154071
380.0005706025247404640.001141205049480930.99942939747526
390.0008237696757819350.001647539351563870.999176230324218
400.001450886565978570.002901773131957140.998549113434021
410.002446832329634470.004893664659268930.997553167670366
420.006951444822733850.01390288964546770.993048555177266
430.01204050413190550.02408100826381110.987959495868094
440.02568402447608310.05136804895216620.974315975523917
450.05167929109267840.1033585821853570.948320708907322
460.1470940420040550.2941880840081090.852905957995945
470.2509792134794090.5019584269588180.749020786520591
480.4418843466493510.8837686932987020.558115653350649
490.6192918861948360.7614162276103290.380708113805165
500.8259142593535110.3481714812929770.174085740646489
510.8981427172399350.2037145655201290.101857282760065
520.9535171654930450.09296566901390990.0464828345069549
530.9756600946434430.04867981071311340.0243399053565567
540.992043279489070.015913441021860.00795672051093
550.9955139859531630.008972028093674880.00448601404683744
560.9986206732296670.002758653540667040.00137932677033352
570.9991787890202330.001642421959534030.000821210979767017
580.9998358595651380.0003282808697245290.000164140434862265
590.9998998621120560.0002002757758874040.000100137887943702
600.9999470922839450.000105815432110115.2907716055055e-05
610.9999485515676080.0001028968647838225.14484323919108e-05
620.9999710412447665.79175104686515e-052.89587552343257e-05
630.999965140786396.97184272220875e-053.48592136110437e-05
640.9999670818150126.5836369976e-053.2918184988e-05
650.9999583741726668.3251654668963e-054.16258273344815e-05
660.9999681609695386.3678060923354e-053.1839030461677e-05
670.9999451493997780.0001097012004439915.48506002219957e-05
680.999910823801130.0001783523977401398.91761988700696e-05
690.999826049998590.0003479000028179080.000173950001408954
700.9997512268917050.0004975462165903910.000248773108295196
710.999462098397740.001075803204520060.000537901602260028
720.998886584828330.002226830343338590.00111341517166930
730.9975671707103940.004865658579211530.00243282928960576
740.995920842306880.008158315386240540.00407915769312027
750.99121082371140.01757835257720150.00878917628860073
760.9831555801642550.03368883967148940.0168444198357447
770.9665722156791240.06685556864175190.0334277843208759
780.9480754559173840.1038490881652310.0519245440826157
790.9029747794126050.1940504411747910.0970252205873953
800.8244187573977850.351162485204430.175581242602215
810.7019244536022850.5961510927954310.298075546397715
820.6873027412961460.6253945174077070.312697258703854


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level340.453333333333333NOK
5% type I error level490.653333333333333NOK
10% type I error level570.76NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/108o3n1258724451.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/108o3n1258724451.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/191ti1258724451.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/191ti1258724451.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/21lkh1258724451.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/21lkh1258724451.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/328qj1258724451.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/328qj1258724451.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/409dh1258724451.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/409dh1258724451.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/6buxr1258724451.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/6buxr1258724451.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/83p5n1258724451.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258724566bk3k9wt04mibeh3/83p5n1258724451.ps (open in new window)


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


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