Home » date » 2010 » Dec » 19 »

Multiple regression model 1

*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, 19 Dec 2010 11:46:47 +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/19/t1292759279ivlokg9tkbbpdql.htm/, Retrieved Sun, 19 Dec 2010 12:48:10 +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/19/t1292759279ivlokg9tkbbpdql.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 «
15561600 15,73 3,56 142,86 14917500 16,17 1,33 380,71 14805920 12,00 0,00 460,00 16958000 12,86 0,69 361,43 17605000 10,30 10,05 140,00 17131200 12,97 0,51 275,00 18474600 12,06 0,91 274,29 17286700 10,49 2,67 212,86 18574400 5,97 1,39 172,86 18056000 9,26 1,24 186,43 19701600 9,74 2,79 77,14 19061700 5,46 3,37 17,86 19681900 2,71 1,60 37,14 34521200 3,90 4,73 42,86 19922700 1,51 0,79 85,00 20177900 5,01 0,67 45,00 19759900 2,96 0,00 206,43 23076700 -1,97 0,60 178,57 22532000 -4,61 0,40 285,71 22029400 4,27 2,24 58,57 22587000 4,01 5,74 88,57 23256600 0,04 0,06 309,29 22680300 3,04 0,87 58,57 21916400 2,29 4,91 132,14 19640200 4,37 1,93 3,57 18813100 6,39 0,41 102,86 18730000 5,74 1,21 185,71 18154700 7,64 2,01 177,14 17848800 7,07 0,00 530,00 18077500 6,23 6,49 162,86 17133100 10,20 0,00 553,57 16602600 14,07 0,31 258,57 15878900 12,83 4,87 326,43 15789100 12,04 1,37 580,00 15422000 11,97 0,19 286,43 14661400 12,63 0,34 310,71 15879200 13,56 3,60 148,57 14339300 15,66 0,1 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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Kijkcijfers[t] = + 22305689.4422709 -434868.354365401Temperatuur[t] + 126331.126374946Neerslag[t] -2972.05562531293Zonneschijnduur[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)22305689.4422709416070.77586153.610300
Temperatuur-434868.35436540139673.981852-10.96100
Neerslag126331.12637494684185.1881561.50060.1366010.068301
Zonneschijnduur-2972.055625312931457.840352-2.03870.0441220.022061


Multiple Linear Regression - Regression Statistics
Multiple R0.869955756825498
R-squared0.756823018833825
Adjusted R-squared0.74952770939884
F-TEST (value)103.741044239250
F-TEST (DF numerator)3
F-TEST (DF denominator)100
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1878997.01130159
Sum Squared Residuals353062976848032


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11556160015490361.171365671238.82863437
21491750014310397.2531482607102.74685184
31480592015720123.6022421-914203.602242134
41695800015726260.81767371231739.18232631
51760500018680085.4248317-1075085.42483165
61713120015912560.46364181218639.53635820
71847460016360933.27615832113666.72384173
81728670017448592.7519948-161892.751994826
91857440019371376.0969790-796976.096979023
101805600017881378.7473251174621.252674884
111970160018193271.14240131508328.85759866
121906170020303963.2098513-1242263.20985127
131968190021218943.8582164-1537043.85821644
143452120021079866.783898413441333.2161016
151992270021496215.0888637-1573515.08886374
162017790020077898.3384324100001.661567644
171975990020404957.6706159-645057.670615948
182307670022707458.8031836369241.196816442
192253200023511818.9937372-979818.9937372
202202940020557709.99423591471690.00576408
212258700021023773.03992391563226.96007615
222325660021376647.49132571879952.50867427
232268030020919524.42697171760775.57302831
242191640021537399.3109462379000.689053752
251964020020638523.5690154-998323.56901536
261881310019272970.77807-459870.778070012
271873000019410465.3009503-680465.300950303
281815470018710750.8454649-556050.845464931
291784880017655980.6954916192819.304508351
301807750019932319.6256094-1854819.62560937
311713310016224791.3952393908308.60476068
321660260015457769.92248881144830.07751123
331587890016371392.9234379-492492.923437881
341578910015519155.8361636269944.163836361
351542200016273032.2617699-851032.261769895
361466140015932807.3062624-1271407.30626237
371587920016422108.3077731-542908.307773114
381433930013644389.1606875694910.839312545
391316960014045009.3962156-875409.396215589
401452890015044675.8666604-515775.866660434
411337580015713627.2075897-2337827.20758967
421230990014209486.8274132-1899586.82741321
431193390012375765.6740081-441865.674008106
441006190010547356.2663483-485456.26634826
451260960015085478.3946368-2475878.39463682
461115650012869085.5910468-1712585.59104675
471218720013686075.8341398-1498875.83413984
481128430013411471.7208982-2127171.72089820
491017700011726883.4857667-1549883.48576668
501097072012818577.6758419-1847857.67584192
511082068011923852.5686699-1103172.56866989
521149239013328455.2941103-1836065.29411029
531457375014744180.0705738-170430.070573815
541399282013995549.4203239-2729.42032390920
551472707014468087.6223733258982.377626654
561568536014448400.44120231236959.55879772
571673621016250996.3468984485213.653101552
581795018017613352.1435398336827.856460245
591700273017251389.6148101-248659.614810066
601741516017325525.627116489634.3728836058
611792981017027167.6447325902642.355267474
621786579018870225.1600536-1004435.16005359
631920236017939491.22818191262868.77181809
641908500016860936.56078072224063.43921929
651818888017671302.2578206517577.742179371
661846641019683499.7647815-1217089.76478154
671852040019643586.5450209-1123186.54502089
682002550023297614.3093677-3272114.30936766
692063610021416866.473144-780766.473143981
702067200021981400.5856402-1309400.58564018
712258910023552239.0192337-963139.019233702
722186480021674701.4033889190098.596611128
732275010020844991.88360371905108.11639635
742254874622295637.4753704253108.524629565
752132549520620855.9058313704639.09416875
762155656323362470.7376630-1805907.73766297
772141526921401204.137274014064.8627259743
782040105420058685.0723197342368.927680251
791906225320474555.5190159-1412302.5190159
801908570620780466.8950475-1694760.89504747
811927996717443381.16935061836585.83064943
821855204517144197.25688561407847.74311437
831780073319033628.5740772-1232895.57407722
841714249017220370.0643330-77880.0643329632
851759317316472263.57246321120909.42753676
861763385916176998.19365601456860.80634404
871733661315331354.68388322005258.31611680
881700834718325063.0820513-1316716.08205131
891795196518513764.5725072-561799.572507217
901452092914302074.4030886218854.596911391
911694121715297482.73675681643734.26324323
921543682413573699.52398081863124.47601917
931474426114704077.729607140183.2703928535
941424800414832295.4360174-584291.43601736
951154095311895620.9999059-354667.999905936
961288166110567608.37219742314052.62780264
971518575711141637.30816904044119.69183104
981355433912835639.9844747718699.015525282
991357510612358075.95166421217030.04833585
1001223840013716522.2798913-1478122.27989129
1011330361414425383.1448668-1121769.14486684
1021415147815295690.3474423-1144212.34744231
1031417200914765178.6045297-593169.604529667
1041402232014924024.6533574-901704.653357371


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.1887793421984840.3775586843969690.811220657801516
80.1298847724086170.2597695448172340.870115227591383
90.08998903766062730.1799780753212550.910010962339373
100.04191620189364960.08383240378729920.95808379810635
110.02814624289057230.05629248578114470.971853757109428
120.02074560261339410.04149120522678820.979254397386606
130.01154750718492430.02309501436984860.988452492815076
140.9999999998764632.47073627798120e-101.23536813899060e-10
150.9999999999174221.65155558565784e-108.25777792828921e-11
160.9999999997591254.81750852227103e-102.40875426113552e-10
170.999999999392191.21561959645478e-096.07809798227388e-10
180.9999999983166343.36673272220064e-091.68336636110032e-09
190.9999999961485577.70288563352005e-093.85144281676003e-09
200.9999999933777771.32444456700882e-086.62222283504409e-09
210.9999999902011471.95977057799035e-089.79885288995176e-09
220.9999999908000041.83999917004563e-089.19999585022817e-09
230.9999999894298152.11403694849846e-081.05701847424923e-08
240.9999999797626294.0474742660253e-082.02373713301265e-08
250.999999968588696.2822620748779e-083.14113103743895e-08
260.9999999309169181.38166163183575e-076.90830815917875e-08
270.9999998599152972.80169404998429e-071.40084702499214e-07
280.9999997198684085.60263183294047e-072.80131591647023e-07
290.9999993992658061.20146838851502e-066.00734194257508e-07
300.9999995364866869.27026628746296e-074.63513314373148e-07
310.999999197921991.60415602175062e-068.02078010875312e-07
320.9999987122436262.57551274822201e-061.28775637411100e-06
330.9999975983241044.8033517927108e-062.4016758963554e-06
340.999995237222859.52555429910376e-064.76277714955188e-06
350.9999918432964131.63134071744172e-058.1567035872086e-06
360.9999882230882452.35538235104834e-051.17769117552417e-05
370.999979289908144.14201837212818e-052.07100918606409e-05
380.9999650044304856.99911390292732e-053.49955695146366e-05
390.9999435848114030.0001128303771936015.64151885968005e-05
400.9999015509405080.0001968981189848579.84490594924286e-05
410.999930113576610.0001397728467818356.98864233909177e-05
420.9999302599801630.0001394800396735316.97400198367655e-05
430.9998811436836510.0002377126326978000.000118856316348900
440.9998106470231210.0003787059537572760.000189352976878638
450.9998802804860690.0002394390278628680.000119719513931434
460.9998796703879590.0002406592240826310.000120329612041316
470.9998634797282010.0002730405435975330.000136520271798767
480.9999069091111450.0001861817777099989.3090888854999e-05
490.9999210624901430.0001578750197141987.89375098570989e-05
500.9999495097531350.0001009804937295325.04902468647660e-05
510.9999548112339419.037753211747e-054.5188766058735e-05
520.999978683067014.26338659794134e-052.13169329897067e-05
530.9999642062956057.15874087904927e-053.57937043952463e-05
540.9999433819070240.0001132361859515275.66180929757637e-05
550.999904336358210.0001913272835803899.56636417901943e-05
560.9998575534034790.0002848931930423220.000142446596521161
570.9997494438528440.0005011122943118710.000250556147155935
580.9996179969218630.0007640061562732810.000382003078136641
590.9993716718933140.001256656213371790.000628328106685895
600.9989430676782930.002113864643414570.00105693232170729
610.9984097172616020.003180565476796450.00159028273839823
620.9977316112176190.004536777564762620.00226838878238131
630.9971615095418290.005676980916342030.00283849045817102
640.9979993146689140.004001370662172870.00200068533108644
650.9971252001470170.0057495997059660.002874799852983
660.9960539667986510.007892066402697810.00394603320134891
670.9945119811482730.01097603770345450.00548801885172723
680.9979962118529060.004007576294188720.00200378814709436
690.9968243704374960.006351259125008480.00317562956250424
700.9955606019400720.008878796119856850.00443939805992843
710.9933311332270670.01333773354586610.00666886677293305
720.990241815460790.01951636907841910.00975818453920953
730.9946070941591680.01078581168166360.00539290584083181
740.9925483588608040.01490328227839280.00745164113919642
750.9921881871106040.01562362577879160.00781181288939582
760.9890325328880380.02193493422392470.0109674671119624
770.9855712845409280.02885743091814430.0144287154590722
780.9852164614423640.02956707711527190.0147835385576360
790.9806602241378280.03867955172434480.0193397758621724
800.9762385436206570.04752291275868680.0237614563793434
810.9882928633454850.02341427330902970.0117071366545149
820.9920783331416450.01584333371671080.00792166685835539
830.9865280961895820.02694380762083630.0134719038104181
840.977069784128980.04586043174204060.0229302158710203
850.9644763159111050.07104736817779050.0355236840888952
860.9487606768277340.1024786463445320.051239323172266
870.957600650149420.08479869970115830.0423993498505792
880.9335894073307340.1328211853385320.0664105926692661
890.9267293539101360.1465412921797270.0732706460898636
900.8929277470763050.2141445058473910.107072252923695
910.9355242575642160.1289514848715670.0644757424357835
920.9542263795696910.0915472408606180.045773620430309
930.9417887135987120.1164225728025760.0582112864012881
940.958764805248410.08247038950318060.0412351947515903
950.968163641078880.06367271784223840.0318363589211192
960.9634190134427740.0731619731144510.0365809865572255
970.972453713525010.05509257294998170.0275462864749909


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level560.615384615384615NOK
5% type I error level730.802197802197802NOK
10% type I error level820.901098901098901NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/10gy1d1292759197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/10gy1d1292759197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/19x411292759197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/19x411292759197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/29x411292759197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/29x411292759197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/3263m1292759197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/3263m1292759197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/4263m1292759197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/4263m1292759197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/5263m1292759197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/5263m1292759197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/6dg3p1292759197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/6dg3p1292759197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/75p2a1292759197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/75p2a1292759197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/85p2a1292759197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/85p2a1292759197.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/95p2a1292759197.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292759279ivlokg9tkbbpdql/95p2a1292759197.ps (open in new window)


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