Home » date » 2008 » Nov » 24 »

11.1 the seatbelt law Q3.2

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Mon, 24 Nov 2008 00:44:50 -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/24/t1227512753kj4mhuuamnkcyv6.htm/, Retrieved Mon, 24 Nov 2008 07:46:03 +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/24/t1227512753kj4mhuuamnkcyv6.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 «
90.7 0 94.3 0 104.6 0 111.1 0 110.8 0 107.2 0 99 0 99 0 91 0 96.2 0 96.9 0 96.2 0 100.1 0 99 0 115.4 0 106.9 0 107.1 0 99.3 0 99.2 0 108.3 0 105.6 0 99.5 0 107.4 0 93.1 0 88.1 0 110.7 0 113.1 0 99.6 0 93.6 0 98.6 0 99.6 0 114.3 0 107.8 0 101.2 0 112.5 0 100.5 0 93.9 0 116.2 0 112 0 106.4 0 95.7 0 96 0 95.8 0 103 0 102.2 0 98.4 0 111.4 1 86.6 1 91.3 1 107.9 1 101.8 1 104.4 1 93.4 1 100.1 1 98.5 1 112.9 1 101.4 1 107.1 1 110.8 1 90.3 1 95.5 1 111.4 1 113 1 107.5 1 95.9 1 106.3 1 105.2 1 117.2 1 106.9 1 108.2 1 113 1 97.2 1 99.9 1 108.1 1 118.1 1 109.1 1 93.3 1 112.1 1 111.8 1 112.5 1 116.3 1 110.3 1 117.1 1 103.4 1 96.2 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 time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Prodintergoed[t] = + 90.012030075188 -2.50614035087720invest[t] -0.342100041771058M1[t] + 12.5193713450293M2[t] + 16.7216322055138M3[t] + 11.8667502088555M4[t] + 3.84043964076861M5[t] + 7.95698621553886M6[t] + 6.31638993316627M7[t] + 14.4757936507937M8[t] + 9.19234022556392M9[t] + 7.58031537176276M10[t] + 14.6834534252298M11[t] + 0.140596282372598t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)90.0120300751882.50465735.937900
invest-2.506140350877202.435083-1.02920.3068880.153444
M1-0.3421000417710582.879975-0.11880.9057810.45289
M212.51937134502932.9827844.19727.7e-053.9e-05
M316.72163220551382.9799715.611300
M411.86675020885552.977983.98480.0001628.1e-05
M53.840439640768612.9768111.29010.2011960.100598
M67.956986215538862.9764672.67330.0093120.004656
M76.316389933166272.9769472.12180.0373480.018674
M814.47579365079372.978254.86057e-063e-06
M99.192340225563922.9803773.08430.0029060.001453
M107.580315371762762.9833252.54090.0132440.006622
M1114.68345342522982.9717934.94095e-062e-06
t0.1405962823725980.0495372.83820.0059110.002955


Multiple Linear Regression - Regression Statistics
Multiple R0.756161698369131
R-squared0.571780514080489
Adjusted R-squared0.493374129334664
F-TEST (value)7.29252491278689
F-TEST (DF numerator)13
F-TEST (DF denominator)71
p-value8.20181944582998e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.55894331268494
Sum Squared Residuals2194.03140350877


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
190.789.81052631578940.889473684210552
294.3102.812593984962-8.51259398496238
3104.6107.155451127820-2.55545112781957
4111.1102.4411654135348.65883458646611
5110.894.555451127819516.2445488721805
6107.298.81259398496248.38740601503758
79997.31259398496241.68740601503759
899105.612593984962-6.61259398496243
991100.469736842105-9.46973684210527
1096.298.9983082706767-2.79830827067668
1196.9106.242042606516-9.34204260651627
1296.291.69918546365914.50081453634087
13100.191.49768170426068.60231829573936
1499104.499749373434-5.49974937343359
15115.4108.8426065162916.55739348370928
16106.9104.1283208020052.77167919799499
17107.196.242606516290710.8573934837093
1899.3100.499749373434-1.19974937343357
1999.298.99974937343360.200250626566422
20108.3107.2997493734341.00025062656642
21105.6102.1568922305763.44310776942355
2299.5100.685463659148-1.18546365914787
23107.4107.929197994987-0.52919799498746
2493.193.3863408521303-0.286340852130322
2588.193.1848370927318-5.08483709273184
26110.7106.1869047619054.51309523809523
27113.1110.5297619047622.57023809523810
2899.6105.815476190476-6.2154761904762
2993.697.9297619047619-4.32976190476191
3098.6102.186904761905-3.58690476190476
3199.6100.686904761905-1.08690476190477
32114.3108.9869047619055.31309523809524
33107.8103.8440476190483.95595238095238
34101.2102.372619047619-1.17261904761905
35112.5109.6163533834592.88364661654135
36100.595.07349624060155.4265037593985
3793.994.871992481203-0.971992481203011
38116.2107.8740601503768.32593984962405
39112112.216917293233-0.21691729323308
40106.4107.502631578947-1.10263157894737
4195.799.616917293233-3.91691729323308
4296103.874060150376-7.87406015037593
4395.8102.374060150376-6.57406015037594
44103110.674060150376-7.67406015037594
45102.2105.531203007519-3.3312030075188
4698.4104.059774436090-5.65977443609022
47111.4108.7973684210532.60263157894738
4886.694.2545112781955-7.65451127819548
4991.394.053007518797-2.753007518797
50107.9107.055075187970.844924812030074
51101.8111.397932330827-9.59793233082706
52104.4106.683646616541-2.28364661654135
5393.498.797932330827-5.39793233082706
54100.1103.05507518797-2.95507518796992
5598.5101.55507518797-3.05507518796992
56112.9109.855075187973.04492481203008
57101.4104.712218045113-3.31221804511278
58107.1103.2407894736843.85921052631578
59110.8110.4845238095240.315476190476187
6090.395.9416666666666-5.64166666666666
6195.595.7401629072682-0.240162907268178
62111.4108.7422305764412.65776942355890
63113113.085087719298-0.0850877192982411
64107.5108.370802005013-0.870802005012532
6595.9100.485087719298-4.58508771929824
66106.3104.7422305764411.55776942355890
67105.2103.2422305764411.9577694235589
68117.2111.5422305764415.6577694235589
69106.9106.3993734335840.500626566416045
70108.2104.9279448621553.27205513784461
71113112.1716791979950.828320802005009
7297.297.6288220551378-0.428822055137831
7399.997.42731829573942.47268170426065
74108.1110.429385964912-2.32938596491230
75118.1114.7722431077693.32775689223057
76109.1110.057957393484-0.957957393483718
7793.3102.172243107769-8.87224310776943
78112.1106.4293859649125.67061403508772
79111.8104.9293859649126.87061403508771
80112.5113.229385964912-0.72938596491228
81116.3108.0865288220558.21347117794486
82110.3106.6151002506273.68489974937343
83117.1113.8588345864663.24116541353382
84103.499.3159774436094.08402255639099
8596.299.1144736842105-2.91447368421053


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.89336081646590.2132783670682000.106639183534100
180.939658657639690.1206826847206200.0603413423603098
190.8922287083209580.2155425833580840.107771291679042
200.8926656430907570.2146687138184860.107334356909243
210.947164103741140.1056717925177180.0528358962588591
220.9121426062122880.1757147875754240.0878573937877121
230.8990779845882420.2018440308235160.100922015411758
240.8925059220497620.2149881559004760.107494077950238
250.9465220431774530.1069559136450940.053477956822547
260.9651792695178470.06964146096430660.0348207304821533
270.9546473583221640.09070528335567110.0453526416778356
280.9804584095076170.03908318098476540.0195415904923827
290.9958887485706950.008222502858609910.00411125142930496
300.9938341274827870.01233174503442550.00616587251721274
310.9894155193806450.02116896123871020.0105844806193551
320.9932635490387340.01347290192253220.00673645096126611
330.9939605440830950.01207891183381030.00603945591690516
340.9898328351208860.02033432975822850.0101671648791142
350.9891213367335870.0217573265328250.0108786632664125
360.9942723283582560.01145534328348720.0057276716417436
370.991885473720610.01622905255878080.0081145262793904
380.998629032202910.002741935594182560.00137096779709128
390.998830821995770.002338356008461730.00116917800423087
400.9989175136885280.002164972622943370.00108248631147169
410.999848742002950.0003025159940984840.000151257997049242
420.999789773912380.0004204521752385440.000210226087619272
430.9996319495947850.0007361008104298580.000368050405214929
440.9994527278763910.001094544247217310.000547272123608653
450.9990825207519840.001834958496031630.000917479248015814
460.998253692488020.003492615023958730.00174630751197936
470.9978318093067760.004336381386447130.00216819069322356
480.9979911278517520.00401774429649570.00200887214824785
490.9962790533690440.007441893261911080.00372094663095554
500.9946948761736590.01061024765268260.00530512382634131
510.9978019219818770.004396156036245970.00219807801812299
520.9958242208002750.008351558399449910.00417577919972496
530.994634174318090.01073165136381940.00536582568190971
540.9926170613831720.01476587723365510.00738293861682753
550.9920002144792540.01599957104149200.00799978552074599
560.9892676385188640.02146472296227160.0107323614811358
570.9895716111784280.02085677764314340.0104283888215717
580.984984886388960.03003022722208050.0150151136110403
590.9727577634540640.05448447309187130.0272422365459356
600.9763891671836220.04722166563275630.0236108328163782
610.9567300794669740.08653984106605250.0432699205330263
620.9522083167389190.09558336652216190.0477916832610809
630.9207931991612580.1584136016774850.0792068008387423
640.8636228930988410.2727542138023170.136377106901159
650.8381984733614550.3236030532770890.161801526638544
660.7559426670693890.4881146658612230.244057332930611
670.6675119819143750.664976036171250.332488018085625
680.6913494307003280.6173011385993430.308650569299672


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level150.288461538461538NOK
5% type I error level320.615384615384615NOK
10% type I error level370.711538461538462NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/101mf01227512684.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/101mf01227512684.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/1xkos1227512684.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/1xkos1227512684.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/2agdo1227512684.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/2agdo1227512684.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/3x1qf1227512684.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/3x1qf1227512684.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/4kmzj1227512684.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/4kmzj1227512684.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/5yddd1227512684.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/5yddd1227512684.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/6uwhf1227512684.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/6uwhf1227512684.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/73nwj1227512684.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/73nwj1227512684.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/8chz71227512684.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227512753kj4mhuuamnkcyv6/8chz71227512684.ps (open in new window)


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