Home » date » 2010 » Dec » 24 »

*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, 24 Dec 2010 15:04:41 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o.htm/, Retrieved Fri, 24 Dec 2010 16:03:33 +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/2010/Dec/24/t1293203002775qmmbez8olq1o.htm/},
    year = {2010},
}
@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 = {2010},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
4,031636 0,5215052 3,702076 0,4248284 3,056176 0,4250311 3,280707 0,4771938 2,984728 0,8280212 3,693712 0,6156186 3,226317 0,366627 2,190349 0,4308883 2,599515 0,2810287 3,080288 0,4646245 2,929672 0,2693951 2,922548 0,5779049 3,234943 0,5661151 2,983081 0,5077584 3,284389 0,7507175 3,806511 0,6808395 3,784579 0,7661091 2,645654 0,4561473 3,092081 0,4977496 3,204859 0,4193273 3,107225 0,6095514 3,466909 0,457337 2,984404 0,5705478 3,218072 0,3478996 2,82731 0,3874993 3,182049 0,5824285 2,236319 0,2391033 2,033218 0,2367445 1,644804 0,2626158 1,627971 0,4240934 1,677559 0,365275 2,330828 0,3750758 2,493615 0,4090056 2,257172 0,3891676 2,655517 0,240261 2,298655 0,1589496 2,600402 0,4393373 3,04523 0,5094681 2,790583 0,3743465 3,227052 0,4339828 2,967479 0,4130557 2,938817 0,3288928 3,277961 0,5186648 3,423985 0,5486504 3,072646 0,5469111 2,754253 0,4963494 2,910431 0,5308929 3,174369 0,5957761 3,068387 0,5570584 3,089543 0,5731325 2,906654 0,5005416 2,931161 0 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 time7 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
firearmsuicide[t] = + 1.75219418227066 + 3.06470349276860firearmhomicide[t] -0.00947626841170947t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)1.752194182270660.17169610.205200
firearmhomicide3.064703492768600.29406210.42200
t-0.009476268411709470.001709-5.543400


Multiple Linear Regression - Regression Statistics
Multiple R0.791646276919036
R-squared0.626703827759771
Adjusted R-squared0.618122306558846
F-TEST (value)73.0294563267214
F-TEST (DF numerator)2
F-TEST (DF denominator)87
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.420693121594387
Sum Squared Residuals15.3974951224442


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14.0316363.340976721795930.690659278204068
23.7020763.035214726754530.666861273245471
33.0561763.026359673740810.0298163262591941
43.2807073.176746614211340.103960385788663
52.9847284.24245230393855-1.25772430393855
63.6937123.582025045433710.111686954566287
73.2263172.809463350831960.416853649168038
82.1903492.99692891298010-0.806579912980103
92.5995152.528177405023490.0713375949765116
103.0802883.08136782612942-0.00107982612942403
112.9296722.473571333646600.456100666353404
122.9225483.40958612684823-0.487038126848229
133.2349433.36397761719748-0.129034617197476
142.9830813.17565536646932-0.192574366469318
153.2843893.91077670042752-0.626387700427523
163.8065113.687145081348130.11936591865187
173.7845793.9389948538834-0.154415853883402
182.6456542.97957757438685-0.33392357438685
193.0920813.09760002009235-0.00551902009234805
203.2048592.847782654959690.357076345040308
213.1072253.42128685022675-0.314061850226745
223.4669092.945318578485360.521590421514641
232.9844043.28279984425278-0.298395844252777
243.2180722.590972859642430.627099140357574
252.827312.702857930133300.124452069866695
263.1820493.29078186180418-0.108732861804184
272.2363192.229115653797000.0072033462030029
282.0332182.21241036278655-0.179192362786545
291.6448042.2822219578473-0.6374179578473
301.6279712.76762665415948-1.13965565415948
311.6775592.57788942982871-0.90033042982871
322.3308282.59844970740893-0.267621707408928
332.4936152.69295821556616-0.199343215566159
342.2571722.62268435926491-0.365512359264906
352.6555172.15685351373690.498663486263101
362.2986551.898181913743290.400473086256715
372.6004022.74801080885093-0.147608808850930
383.045232.953464648149880.0917653518501233
392.7905832.529880740269690.260702259730314
403.2270522.703172048763770.523879951236228
412.9674792.629560423888550.337918576111455
422.9388172.36214982188530.576667178114699
433.2779612.934268464703270.343692535296725
443.4239853.016689169344330.407295830655673
453.0726463.001882462147650.070763537852355
462.7542532.83744957514562-0.0831965751456179
472.9104312.93383889183636-0.0234078918363603
483.1743693.123210393086650.0511586069133454
493.0683872.995075854252980.0733111457470219
503.0895433.034861936254380.0546810637456193
512.9066542.802916083069460.103737916930545
522.9311612.923951132308340.00720986769165596
533.025662.964241970975010.0614180290249946
542.9395513.35870465584277-0.419153655842771
552.6910192.580537005612050.110481994387952
563.198122.96125173708160.236868262918397
573.076393.041403335256610.0349866647433906
582.8638732.6538722927950.210000707205001
593.0138023.008604774523210.00519722547678875
603.0533643.014948812011520.0384151879884777
612.8647533.11536392321037-0.250610923210366
623.0570623.020991690404780.0360703095952252
632.9593653.31461214566509-0.355247145665086
643.2522582.618383633898420.633874366101579
653.6029883.289760974029140.313227025970865
663.4977043.274816355175280.222887644824722
673.2968672.965562130503870.331304869496132
683.6024173.247252614477880.355164385522121
693.30012.929970092536810.370129907463189
703.401933.54779602971628-0.145866029716284
713.5025912.923444621906220.57914637809378
723.4023482.906618581578150.495729418421847
733.4985512.907101986577240.591449013422757
743.1998233.2013378342989-0.00151483429890138
752.7000642.572512265859740.127551734140256
762.8010342.558501462160130.242532537839866
772.8986282.547422966762400.351205033237595
782.8008542.85242818255765-0.0515741825576523
792.3999422.027039580910350.37290241908965
802.4027241.835160741778830.567563258221167
812.2023311.968210961061120.234120038938878
822.1025942.63212452230555-0.529530522305548
831.7982932.20693287097305-0.408639870973051
841.2024841.84064911135646-0.638165111356455
851.4002011.95069045622608-0.550489456226085
861.2008321.89728595383043-0.696453953830428
871.2980831.71709221617614-0.419009216176139
881.0997421.57363446634897-0.473892466348969
891.0013771.47940995225173-0.47803295225173
900.83617431.38744933462460-0.551275034624598


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.7580024063963210.4839951872073570.241997593603679
70.6262327643630370.7475344712739270.373767235636963
80.7964580595354450.407083880929110.203541940464555
90.700891179381580.598217641236840.29910882061842
100.7428510978920480.5142978042159040.257148902107952
110.7261388604717180.5477222790565640.273861139528282
120.6878065627103010.6243868745793980.312193437289699
130.7135269762326280.5729460475347440.286473023767372
140.6537056500051020.6925886999897960.346294349994898
150.6546153379860540.6907693240278910.345384662013946
160.7776189495352230.4447621009295530.222381050464776
170.7840618913524710.4318762172950580.215938108647529
180.7502897659358450.4994204681283110.249710234064155
190.6937751149603230.6124497700793540.306224885039677
200.6736251915027760.6527496169944470.326374808497224
210.6232875576736670.7534248846526650.376712442326333
220.6571295562211840.6857408875576310.342870443778816
230.6129744475506930.7740511048986140.387025552449307
240.6269422306553780.7461155386892440.373057769344622
250.5645151470189020.8709697059621960.435484852981098
260.5008805644677340.9982388710645320.499119435532266
270.4997601734740750.999520346948150.500239826525925
280.5140869372318720.9718261255362550.485913062768128
290.6607855550991760.6784288898016480.339214444900824
300.9120585242446150.1758829515107700.0879414757553852
310.9726315974982460.05473680500350850.0273684025017542
320.9694851077852290.06102978442954260.0305148922147713
330.9666540870063920.06669182598721650.0333459129936082
340.9714511001858450.05709779962831090.0285488998141555
350.9771694419258010.04566111614839710.0228305580741985
360.9739309557920220.05213808841595680.0260690442079784
370.9717290586431560.05654188271368830.0282709413568441
380.9722293823976550.05554123520468960.0277706176023448
390.9685365045716930.06292699085661450.0314634954283072
400.9774381587822210.04512368243555740.0225618412177787
410.9747794889189260.0504410221621490.0252205110810745
420.9807420967449150.03851580651017010.0192579032550851
430.9794150142410350.04116997151792910.0205849857589646
440.9795241364809380.0409517270381250.0204758635190625
450.9712448072470930.05751038550581390.0287551927529069
460.9613441230290660.07731175394186720.0386558769709336
470.9483210826872320.1033578346255350.0516789173127675
480.9326271689717030.1347456620565950.0673728310282973
490.911855651544940.1762886969101190.0881443484550597
500.8873848200437820.2252303599124350.112615179956218
510.8553046229591240.2893907540817520.144695377040876
520.8225910516089060.3548178967821870.177408948391094
530.7840375410614250.431924917877150.215962458938575
540.8488978530656270.3022042938687450.151102146934373
550.8134076170514010.3731847658971980.186592382948599
560.7757953864554340.4484092270891330.224204613544566
570.748255951584330.5034880968313410.251744048415671
580.7006282629634350.5987434740731310.299371737036565
590.6852098764246740.6295802471506520.314790123575326
600.676412362644390.6471752747112210.323587637355611
610.798078904928640.4038421901427190.201921095071359
620.8501599987256090.2996800025487820.149840001274391
630.981404473955960.03719105208808180.0185955260440409
640.9862103776286170.02757924474276640.0137896223713832
650.9880866781421980.02382664371560480.0119133218578024
660.9919208921414720.01615821571705600.00807910785852801
670.99742035604520.005159287909601040.00257964395480052
680.9971440721718060.005711855656388270.00285592782819413
690.9990818088238950.001836382352209500.000918191176104748
700.9995472941525530.0009054116948949820.000452705847447491
710.999195790296790.001608419406421590.000804209703210794
720.9984386600908220.003122679818355990.00156133990917799
730.9977242891751130.004551421649774080.00227571082488704
740.9951940613768630.00961187724627330.00480593862313665
750.996923023420670.006153953158659970.00307697657932999
760.9946708256287650.01065834874246970.00532917437123484
770.98949920543210.02100158913580150.0105007945679007
780.9842921096772680.03141578064546480.0157078903227324
790.9671384023487270.06572319530254510.0328615976512726
800.9585829156019580.08283416879608440.0414170843980422
810.997343508999340.005312982001321880.00265649100066094
820.992175388894640.01564922221072090.00782461110536046
830.9901841567268460.01963168654630830.00981584327315417
840.995121982758170.009756034483660280.00487801724183014


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level110.139240506329114NOK
5% type I error level250.316455696202532NOK
10% type I error level380.481012658227848NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/10eoa21293203072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/10eoa21293203072.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/175v81293203072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/175v81293203072.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/20xct1293203072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/20xct1293203072.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/30xct1293203072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/30xct1293203072.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/40xct1293203072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/40xct1293203072.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/5aotw1293203072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/5aotw1293203072.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/6aotw1293203072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/6aotw1293203072.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/73fsh1293203072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/73fsh1293203072.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/83fsh1293203072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/83fsh1293203072.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/9eoa21293203072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203002775qmmbez8olq1o/9eoa21293203072.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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