Home » date » 2008 » Dec » 07 »

multiple regression

*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: Sun, 07 Dec 2008 07:08:38 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz.htm/, Retrieved Sun, 07 Dec 2008 15:23:05 +0000
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz.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 «
493 0 481 0 462 0 457 0 442 0 439 0 488 0 521 0 501 0 485 0 464 0 460 0 467 0 460 0 448 0 443 0 436 0 431 0 484 0 510 0 513 0 503 0 471 0 471 0 476 0 475 0 470 0 461 0 455 0 456 0 517 0 525 0 523 0 519 0 509 0 512 0 519 1 517 1 510 1 509 1 501 1 507 1 569 1 580 1 578 1 565 1 547 1 555 1 562 1 561 1 555 1 544 1 537 1 543 1 594 1 611 1 613 1 611 1 594 1 595 1 591 1 589 1 584 1 573 1 567 1 569 1 621 1 629 1 628 1 612 1 595 1 597 1 593 1 590 1 580 1 574 1 573 1 573 1 620 1 626 1 620 1 588 1 566 1 557 1 561 1 549 1 532 1 526 1 511 1 499 1 555 1 565 1 542 1 527 1 510 1 514 1 517 1 508 1 493 1 490 1 469 1 478 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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Aantal_werklozen_(*1000)[t] = + 487.074864498645 + 97.6558265582656dummyvariabele[t] -7.12776648599808M1[t] -12.2854561878952M2[t] -22.6653681120144M3[t] -28.7119467028004M4[t] -37.9807475158085M5[t] -37.2495483288166M6[t] + 21.9412262872629M7[t] + 37.1029810298103M8[t] + 31.2647357723577M9[t] + 18.0514905149052M10[t] -0.911754742547421M11[t] -0.286754742547426t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)487.07486449864511.33098842.986100
dummyvariabele97.655826558265610.5459919.2600
M1-7.1277664859980813.840109-0.5150.6078390.303919
M2-12.285456187895213.826048-0.88860.3766550.188327
M3-22.665368112014413.814097-1.64070.1044210.05221
M4-28.711946702800413.804261-2.07990.040440.02022
M5-37.980747515808513.796545-2.75290.0071740.003587
M6-37.249548328816613.790953-2.7010.0082920.004146
M721.941226287262914.2094031.54410.1261440.063072
M837.102981029810314.2001082.61290.0105580.005279
M931.264735772357714.1928742.20280.0302180.015109
M1018.051490514905214.1877051.27230.2066060.103303
M11-0.91175474254742114.184602-0.06430.9488950.474447
t-0.2867547425474260.171294-1.67410.0976710.048836


Multiple Linear Regression - Regression Statistics
Multiple R0.868748517815421
R-squared0.754723987206491
Adjusted R-squared0.718490030771087
F-TEST (value)20.8291906668255
F-TEST (DF numerator)13
F-TEST (DF denominator)88
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation28.367136200452
Sum Squared Residuals70813.1086269196


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1493479.66034327009913.3396567299015
2481474.2158988256556.7841011743451
3462463.549232158988-1.54923215898829
4457457.215898825655-0.215898825654941
5442447.660343270099-5.66034327009938
6439448.104787714544-9.10478771454385
7488507.008807588076-19.0088075880759
8521521.883807588076-0.883807588075885
9501515.758807588076-14.7588075880759
10485502.258807588076-17.2588075880759
11464483.008807588076-19.0088075880759
12460483.633807588076-23.6338075880759
13467476.21928635953-9.21928635953038
14460470.774841915086-10.7748419150858
15448460.108175248419-12.1081752484192
16443453.774841915086-10.7748419150858
17436444.21928635953-8.21928635953029
18431444.663730803975-13.6637308039747
19484503.567750677507-19.5677506775068
20510518.442750677507-8.4427506775068
21513512.3177506775070.682249322493207
22503498.8177506775074.18224932249321
23471479.567750677507-8.56775067750679
24471480.192750677507-9.19275067750679
25476472.7782294489613.22177055103873
26475467.3337850045177.66621499548327
27470456.6671183378513.3328816621499
28461450.33378500451710.6662149954833
29455440.77822944896114.2217705510388
30456441.22267389340614.7773261065944
31517500.12669376693816.8733062330623
32525515.0016937669389.99830623306232
33523508.87669376693814.1233062330623
34519495.37669376693823.6233062330623
35509476.12669376693832.8733062330623
36512476.75169376693835.2483062330623
37519566.992999096658-47.9929990966577
38517561.548554652213-44.5485546522132
39510550.881887985547-40.8818879855465
40509544.548554652213-35.5485546522132
41501534.992999096658-33.9929990966576
42507535.437443541102-28.4374435411021
43569594.341463414634-25.3414634146341
44580609.216463414634-29.2164634146342
45578603.091463414634-25.0914634146341
46565589.591463414634-24.5914634146341
47547570.341463414634-23.3414634146341
48555570.966463414634-15.9664634146341
49562563.551942186089-1.55194218608864
50561558.1074977416442.89250225835590
51555547.4408310749777.55916892502258
52544541.1074977416442.89250225835592
53537531.5519421860895.44805781391147
54543531.99638663053311.0036133694670
55594590.9004065040653.09959349593496
56611605.7754065040655.22459349593496
57613599.65040650406513.3495934959350
58611586.15040650406524.8495934959350
59594566.90040650406527.0995934959350
60595567.52540650406527.4745934959350
61591560.1108852755230.8891147244805
62589554.66644083107534.333559168925
63584543.99977416440840.0002258355917
64573537.66644083107535.333559168925
65567528.11088527551938.8891147244806
66569528.55532971996440.4446702800361
67621587.45934959349633.5406504065041
68629602.33434959349626.6656504065041
69628596.20934959349631.7906504065041
70612582.70934959349629.2906504065041
71595563.45934959349631.5406504065041
72597564.08434959349632.9156504065041
73593556.6698283649536.3301716350496
74590551.22538392050638.7746160794941
75580540.55871725383939.4412827461608
76574534.22538392050639.7746160794941
77573524.6698283649548.3301716350497
78573525.11427280939547.8857271906053
79620584.01829268292735.9817073170732
80626598.89329268292727.1067073170732
81620592.76829268292727.2317073170732
82588579.2682926829278.73170731707318
83566560.0182926829275.98170731707319
84557560.643292682927-3.64329268292681
85561553.2287714543817.7712285456187
86549547.7843270099371.21567299006324
87532537.11766034327-5.11766034327008
88526530.784327009937-4.78432700993675
89511521.228771454381-10.2287714543812
90499521.673215898826-22.6732158988256
91555580.577235772358-25.5772357723577
92565595.452235772358-30.4522357723577
93542589.327235772358-47.3272357723577
94527575.827235772358-48.8272357723577
95510556.577235772358-46.5772357723577
96514557.202235772358-43.2022357723577
97517549.787714543812-32.7877145438122
98508544.343270099368-36.3432700993677
99493533.676603432701-40.676603432701
100490527.343270099368-37.3432700993676
101469517.787714543812-48.7877145438121
102478518.232158988257-40.2321589882565


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.01125154019763090.02250308039526180.98874845980237
180.002836507861922300.005673015723844610.997163492138078
190.0009987604949182180.001997520989836440.999001239505082
200.0001837769914490510.0003675539828981010.99981622300855
210.00058169581583920.00116339163167840.99941830418416
220.001114090071649740.002228180143299490.99888590992835
230.0005246223855261230.001049244771052250.999475377614474
240.0002979160313616510.0005958320627233020.999702083968638
259.21139301842904e-050.0001842278603685810.999907886069816
263.68236383187506e-057.36472766375013e-050.999963176361681
272.94610851196538e-055.89221702393075e-050.99997053891488
281.34234684136919e-052.68469368273839e-050.999986576531586
297.8288687439271e-061.56577374878542e-050.999992171131256
305.96999563137674e-061.19399912627535e-050.999994030004369
319.70159411478527e-061.94031882295705e-050.999990298405885
323.34009164599193e-066.68018329198386e-060.999996659908354
331.33695210814161e-062.67390421628322e-060.999998663047892
348.52035301072317e-071.70407060214463e-060.999999147964699
352.2828231270289e-064.5656462540578e-060.999997717176873
366.01005977361201e-061.20201195472240e-050.999993989940226
373.69030817677607e-067.38061635355213e-060.999996309691823
382.40391335316654e-064.80782670633308e-060.999997596086647
391.71523590707801e-063.43047181415603e-060.999998284764093
401.32047518932838e-062.64095037865675e-060.99999867952481
411.08486714875193e-062.16973429750386e-060.999998915132851
421.20102809433826e-062.40205618867651e-060.999998798971906
431.88963173084851e-063.77926346169702e-060.99999811036827
441.8524131653121e-063.7048263306242e-060.999998147586835
452.05105471301393e-064.10210942602785e-060.999997948945287
462.21980083009361e-064.43960166018721e-060.99999778019917
473.13076684941095e-066.2615336988219e-060.99999686923315
485.55184369493626e-061.11036873898725e-050.999994448156305
491.22629582635826e-052.45259165271652e-050.999987737041736
503.15369546828818e-056.30739093657636e-050.999968463045317
519.13461618354811e-050.0001826923236709620.999908653838165
520.0002334290982448170.0004668581964896330.999766570901755
530.0006821088996446250.001364217799289250.999317891100355
540.002428755324353020.004857510648706030.997571244675647
550.009741665594542070.01948333118908410.990258334405458
560.02865697881459440.05731395762918880.971343021185406
570.0663644149455640.1327288298911280.933635585054436
580.1041430808541050.2082861617082110.895856919145895
590.1610339264671280.3220678529342560.838966073532872
600.2229280341292890.4458560682585770.777071965870711
610.307710333988280.615420667976560.69228966601172
620.3909988420477910.7819976840955820.609001157952209
630.4462591325049940.8925182650099890.553740867495006
640.5626401403938140.8747197192123720.437359859606186
650.6613906333664940.6772187332670130.338609366633506
660.7644193213130520.4711613573738970.235580678686948
670.8468082357568170.3063835284863660.153191764243183
680.9257552247246320.1484895505507360.074244775275368
690.9375289253805130.1249421492389740.0624710746194868
700.9301822585823340.1396354828353320.0698177414176661
710.9179965942122330.1640068115755350.0820034057877673
720.8933095218029760.2133809563940470.106690478197024
730.9040983737955430.1918032524089130.0959016262044567
740.8880795747480650.223840850503870.111920425251935
750.850994326597290.298011346805420.14900567340271
760.8159814141584540.3680371716830910.184018585841546
770.7574939951288950.485012009742210.242506004871105
780.7048825862189140.5902348275621730.295117413781086
790.6875663288018180.6248673423963650.312433671198182
800.6578429087561060.6843141824877880.342157091243894
810.898493560046350.2030128799073000.101506439953650
820.9483416008159730.1033167983680530.0516583991840267
830.9721980601970250.05560387960595020.0278019398029751
840.9495787586908520.1008424826182970.0504212413091485
850.9074655035767840.1850689928464320.0925344964232161


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level370.536231884057971NOK
5% type I error level390.565217391304348NOK
10% type I error level410.594202898550725NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/10wf8m1228658906.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/10wf8m1228658906.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/13q8q1228658906.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/13q8q1228658906.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/2s2lm1228658906.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/2s2lm1228658906.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/3xb3n1228658906.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/3xb3n1228658906.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/4j98n1228658906.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/4j98n1228658906.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/54o001228658906.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/54o001228658906.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/6pwc21228658906.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/6pwc21228658906.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/76vmx1228658906.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/76vmx1228658906.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/87dio1228658906.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228663385xlqlmuobc29bqbz/87dio1228658906.ps (open in new window)


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