Home » date » 2008 » Nov » 27 »

multiple linear regression goudprijs

*Unverified author*
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 06:17:01 -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/t1227791934jch1wd8pu35q9ax.htm/, Retrieved Thu, 27 Nov 2008 13:19: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/t1227791934jch1wd8pu35q9ax.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:

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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
goudprijs[t] = + 10.1468993250844 + 5.86390157480315dummy[t] + 0.234762584364457M1[t] + 0.525762584364453M2[t] + 0.447637584364454M3[t] + 0.445762584364456M4[t] + 0.564387584364456M5[t] + 0.384137584364454M6[t] -0.242475112485938M7[t] -0.339975112485939M8[t] -0.0813501124859381M9[t] + 0.152774887514062M10[t] -0.0574285714285704M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)10.14689932508440.61247516.56700
dummy5.863901574803150.33102117.714600
M10.2347625843644570.816050.28770.7743250.387163
M20.5257625843644530.816050.64430.5212160.260608
M30.4476375843644540.816050.54850.5848290.292414
M40.4457625843644560.816050.54620.58640.2932
M50.5643875843644560.816050.69160.4911610.24558
M60.3841375843644540.816050.47070.63910.31955
M7-0.2424751124859380.8162-0.29710.7671670.383584
M8-0.3399751124859390.8162-0.41650.6781210.339061
M9-0.08135011248593810.8162-0.09970.9208530.460427
M100.1527748875140620.81620.18720.8519890.425994
M11-0.05742857142857040.842614-0.06820.945830.472915


Multiple Linear Regression - Regression Statistics
Multiple R0.891862712448084
R-squared0.795419097855254
Adjusted R-squared0.765110816056032
F-TEST (value)26.2442821115541
F-TEST (DF numerator)12
F-TEST (DF denominator)81
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.57638681292758
Sum Squared Residuals201.284626101729


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
19.10310.3816619094488-1.2786619094488
29.15510.6726619094488-1.51766190944883
39.30810.5945369094488-1.28653690944882
49.39410.5926619094488-1.19866190944882
59.94810.7112869094488-0.763286909448815
610.17710.5310369094488-0.35403690944882
710.0029.904424212598430.0975757874015746
89.7289.80692421259842-0.0789242125984247
910.00210.0655492125984-0.0635492125984253
1010.06310.2996742125984-0.236674212598424
1110.01810.0894707536558-0.0714707536557929
129.9610.1468993250844-0.186899325084363
1310.23610.3816619094488-0.145661909448821
1410.89310.67266190944880.220338090551183
1510.75610.59453690944880.161463090551181
1610.9410.59266190944880.347338090551180
1710.99710.71128690944880.28571309055118
1810.82710.53103690944880.295963090551182
1910.1669.904424212598420.261575787401575
2010.1869.806924212598430.379075787401574
2110.45710.06554921259840.391450787401575
2210.36810.29967421259840.0683257874015747
2310.24410.08947075365580.154529246344206
2410.51110.14689932508440.364100674915635
2510.81210.38166190944880.430338090551178
2610.73810.67266190944880.0653380905511822
2710.17110.5945369094488-0.42353690944882
289.72110.5926619094488-0.87166190944882
299.89710.7112869094488-0.814286909448819
309.82810.5310369094488-0.703036909448819
319.9249.904424212598420.0195757874015741
3210.3719.806924212598430.564075787401575
3310.84610.06554921259840.780450787401574
3410.41310.29967421259840.113325787401575
3510.70910.08947075365580.619529246344206
3610.66210.14689932508440.515100674915637
3710.5710.38166190944880.188338090551179
3810.29710.6726619094488-0.375661909448817
3910.63510.59453690944880.0404630905511802
4010.87210.59266190944880.279338090551181
4110.29610.7112869094488-0.41528690944882
4210.38310.5310369094488-0.148036909448819
4310.4319.904424212598420.526575787401574
4410.5749.806924212598430.767075787401574
4510.65310.06554921259840.587450787401575
4610.80510.29967421259840.505325787401574
4710.87210.08947075365580.782529246344207
4810.62510.14689932508440.478100674915636
4910.40710.38166190944880.0253380905511783
5010.46310.6726619094488-0.209661909448818
5110.55610.5945369094488-0.0385369094488205
5210.64610.59266190944880.0533380905511817
5310.70210.7112869094488-0.0092869094488195
5411.35310.53103690944880.821963090551182
5511.34615.7683257874016-4.42232578740158
5611.45115.6708257874016-4.21982578740158
5711.96415.9294507874016-3.96545078740158
5812.57416.1635757874016-3.58957578740157
5913.03115.9533723284589-2.92237232845894
6013.81216.0108008998875-2.19880089988751
6114.54416.2455634842520-1.70156348425197
6214.93116.5365634842520-1.60556348425197
6314.88616.4584384842520-1.57243848425197
6416.00516.4565634842520-0.451563484251969
6517.06416.57518848425200.488811515748031
6615.16816.3949384842520-1.22693848425197
6716.0515.76832578740160.281674212598426
6815.83915.67082578740160.168174212598426
6915.13715.9294507874016-0.792450787401574
7014.95416.1635757874016-1.20957578740157
7115.64815.9533723284589-0.305372328458943
7215.30516.0108008998875-0.705800899887513
7315.57916.2455634842520-0.66656348425197
7416.34816.5365634842520-0.188563484251967
7515.92816.4584384842520-0.530438484251968
7616.17116.4565634842520-0.285563484251968
7715.93716.5751884842520-0.63818848425197
7815.71316.3949384842520-0.681938484251968
7915.59415.7683257874016-0.174325787401575
8015.68315.67082578740160.0121742125984253
8116.43815.92945078740160.508549212598424
8217.03216.16357578740160.868424212598426
8317.69615.95337232845891.74262767154106
8417.74516.01080089988751.73419910011249
8519.39416.24556348425203.14843651574803
8620.14816.53656348425203.61143651574803
8720.10816.45843848425203.64956151574803
8818.58416.45656348425202.12743651574803
8918.44116.57518848425201.86581151574803
9018.39116.39493848425201.99606151574803
9119.17815.76832578740163.40967421259843
9218.07915.67082578740162.40817421259843
9318.48315.92945078740162.55354921259843
9419.64416.16357578740163.48042421259842


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.3143276568133060.6286553136266120.685672343186694
170.2013194102316660.4026388204633330.798680589768334
180.1127091504824570.2254183009649130.887290849517543
190.05518612054601290.1103722410920260.944813879453987
200.02651887441057480.05303774882114960.973481125589425
210.01214997862990290.02429995725980580.987850021370097
220.005120663563648450.01024132712729690.994879336436352
230.002025352955315590.004050705910631180.997974647044684
240.0008523487814054110.001704697562810820.999147651218595
250.0006367814159412560.001273562831882510.99936321858406
260.0003090159813620280.0006180319627240570.999690984018638
270.0001140119316194530.0002280238632389050.99988598806838
284.67560952385985e-059.35121904771969e-050.99995324390476
292.03590224092023e-054.07180448184045e-050.99997964097759
309.38931233570382e-061.87786246714076e-050.999990610687664
313.10307502933647e-066.20615005867295e-060.99999689692497
321.11493462809939e-062.22986925619878e-060.999998885065372
334.66008386582517e-079.32016773165033e-070.999999533991613
341.44308025583295e-072.88616051166590e-070.999999855691974
355.60535005304867e-081.12107001060973e-070.9999999439465
361.89129001450443e-083.78258002900886e-080.9999999810871
376.84600340230841e-091.36920068046168e-080.999999993153997
381.95265987770946e-093.90531975541891e-090.99999999804734
397.20919758186604e-101.44183951637321e-090.99999999927908
403.95309271269926e-107.90618542539852e-100.99999999960469
411.09811182825528e-102.19622365651056e-100.999999999890189
422.89163939591948e-115.78327879183897e-110.999999999971084
438.62036255578048e-121.72407251115610e-110.99999999999138
442.8346291751815e-125.669258350363e-120.999999999997165
457.44509583512648e-131.48901916702530e-120.999999999999255
462.41387364993735e-134.82774729987469e-130.999999999999759
478.70927995227301e-141.74185599045460e-130.999999999999913
482.26835983943272e-144.53671967886544e-140.999999999999977
495.30788669405463e-151.06157733881093e-140.999999999999995
501.21352121072215e-152.42704242144430e-150.999999999999999
512.97582814913398e-165.95165629826796e-161
527.7227371287962e-171.54454742575924e-161
532.09141179857422e-174.18282359714844e-171
541.81884447192535e-173.6376889438507e-171
555.10508866666882e-171.02101773333376e-161
561.33023295492750e-162.66046590985501e-161
573.74520428257021e-167.49040856514042e-161
582.84361456800644e-155.68722913601288e-150.999999999999997
591.14725742282410e-142.29451484564820e-140.999999999999988
601.03024229898989e-132.06048459797978e-130.999999999999897
617.80693527698712e-121.56138705539742e-110.999999999992193
623.42127954605493e-106.84255909210985e-100.999999999657872
634.01580066247472e-098.03160132494944e-090.9999999959842
646.00672386271696e-081.20134477254339e-070.999999939932761
651.20860531602444e-062.41721063204888e-060.999998791394684
661.13061559802609e-062.26123119605219e-060.999998869384402
673.96449802128886e-067.92899604257773e-060.999996035501979
686.03236515514403e-061.20647303102881e-050.999993967634845
696.89319864193642e-061.37863972838728e-050.999993106801358
701.749948622714e-053.499897245428e-050.999982500513773
711.66147242562421e-053.32294485124842e-050.999983385275744
721.54148738241297e-053.08297476482594e-050.999984585126176
734.89413590913824e-059.78827181827647e-050.999951058640909
740.0002212257203787290.0004424514407574580.999778774279621
750.001492578595951020.002985157191902040.99850742140405
760.001852827252099320.003705654504198650.9981471727479
770.002256221727700830.004512443455401650.997743778272299
780.003264542641175690.006529085282351380.996735457358824


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level560.888888888888889NOK
5% type I error level580.92063492063492NOK
10% type I error level590.936507936507937NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/10thjl1227791816.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/10thjl1227791816.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/2t7481227791816.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/2t7481227791816.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/352pz1227791816.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/352pz1227791816.ps (open in new window)


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/6soty1227791816.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/6soty1227791816.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/7w5ty1227791816.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/7w5ty1227791816.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/8a3h41227791816.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/8a3h41227791816.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/9yxm81227791816.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t1227791934jch1wd8pu35q9ax/9yxm81227791816.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by