Home » date » 2010 » Dec » 21 »

*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: Tue, 21 Dec 2010 16:54:00 +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/21/t1292950312yqorm89ispoi2e4.htm/, Retrieved Tue, 21 Dec 2010 17:52:03 +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/21/t1292950312yqorm89ispoi2e4.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 «
1,3067 8,7000 113,0000 2579,3900 19,6000 18,9000 3,0000 -2,0000 16,0000 1,2894 8,9000 95,4000 2504,5800 16,0000 16,6000 3,0000 -4,0000 17,0000 1,2770 8,9000 86,2000 2462,3200 17,7000 17,2000 7,0000 -4,0000 23,0000 1,2208 8,1000 111,7000 2467,3800 19,8000 19,2000 4,0000 -7,0000 24,0000 1,2565 8,0000 97,5000 2446,6600 17,0000 17,1000 -4,0000 -9,0000 27,0000 1,3406 8,3000 99,7000 2656,3200 17,4000 17,7000 -6,0000 -13,0000 31,0000 1,3569 8,5000 111,5000 2626,1500 18,9000 18,7000 8,0000 -8,0000 40,0000 1,3686 8,7000 91,8000 2482,6000 15,7000 15,9000 2,0000 -13,0000 47,0000 1,4272 8,6000 86,3000 2539,9100 15,2000 16,0000 -1,0000 -15,0000 43,0000 1,4614 8,3000 88,7000 2502,6600 15,8000 16,8000 -2,0000 -15,0000 60,0000 1,4914 7,9000 95,1000 2466,9200 16,0000 16,0000 0,0000 -15,0000 64,0000 1,4816 7,9000 105,1000 2513,1700 16,1000 16,8000 10,0000 -10,0000 65,0000 1,4562 8,1000 104,5000 2443,2700 16,2000 16,3000 3,0000 -12,0000 65,0000 1,4268 8,3000 89,1000 2293,4100 12,5000 13,6000 6,0000 -11,0000 55,0000 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'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
WER[t] = + 6.82292982030508 + 1.56450104187246WSK[t] -0.00595415777078123INP[t] + 0.000104365867968344BE2[t] + 0.198628141969308Uit[t] -0.248400955218052INV[t] + 0.0354669084592271`CE-AES`[t] -0.0377754001710171`CE-CV`[t] + 0.00229192324071131`CE-WER`[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)6.822929820305080.9484977.193400
WSK1.564501041872460.6435332.43110.0166990.008349
INP-0.005954157770781230.010102-0.58940.5568180.278409
BE20.0001043658679683440.0001560.67090.5037050.251852
Uit0.1986281419693080.1087281.82680.0704870.035243
INV-0.2484009552180520.104877-2.36850.0196370.009819
`CE-AES`0.03546690845922710.0110083.22190.0016840.000842
`CE-CV`-0.03777540017101710.023311-1.62050.1080460.054023
`CE-WER`0.002291923240711310.006670.34360.73180.3659


Multiple Linear Regression - Regression Statistics
Multiple R0.517622740435239
R-squared0.267933301415687
Adjusted R-squared0.213706138557589
F-TEST (value)4.94094264375992
F-TEST (DF numerator)8
F-TEST (DF denominator)108
p-value3.17793046415993e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.676848102638881
Sum Squared Residuals49.4773222369521


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
18.77.880599606348720.819400393651278
28.97.884622914002151.01537708599786
38.98.259837292491940.640162707508063
48.17.950143988151230.149856011848771
587.852557765741070.147442234258935
68.38.012660664530410.287339335469587
78.58.342582536057520.157417463942484
88.78.515234019078420.184765980921577
98.68.481471071259760.118528928740241
108.38.4407513073001-0.140751307300108
117.98.7643975951517-0.864397595151697
127.98.68357688562746-0.783576885627456
138.18.61146161258878-0.511461612588779
148.38.62298358925588-0.322983589255877
158.18.93330965393728-0.833309653937279
167.48.45567581740129-1.05567581740129
177.38.50787464624604-1.20787464624604
187.78.40762955820622-0.707629558206224
1988.11424777877255-0.114247778772555
2087.97830454575010.0216954542498931
217.77.81061945026334-0.110619450263336
226.97.84624023363816-0.94624023363816
236.67.48437436146764-0.884374361467642
246.97.4998719545212-0.599871954521206
257.57.45664150254160.0433584974584010
267.97.363313781932380.536686218067618
277.77.77446828382875-0.0744682838287536
286.57.22206401933694-0.722064019336944
296.17.41453707974335-1.31453707974335
306.47.2856588895853-0.885658889585307
316.87.45992470701426-0.659924707014256
327.17.6142212706313-0.514221270631305
337.37.194858705202630.105141294797368
347.27.32644429343027-0.126444293430272
3577.38782488462863-0.387824884628626
3677.34557152093568-0.34557152093568
3777.68451423901589-0.684514239015891
387.37.65319496004413-0.353194960044127
397.57.7979263880165-0.297926388016500
407.28.00103915445745-0.80103915445745
417.77.979390288288-0.279390288288002
4288.08052319932402-0.0805231993240162
437.97.884481406521530.0155185934784696
4487.913453348825530.0865466511744678
4587.776657541719480.223342458280524
467.97.9212455508171-0.0212455508170908
477.97.9185150495724-0.018515049572402
4887.868948799015460.131051200984542
498.18.007646602145880.0923533978541212
508.17.688225882234620.411774117765384
518.28.070551217200730.12944878279927
5287.844987416406280.155012583593718
538.37.822087419336260.477912580663738
548.57.793998035772720.706001964227281
558.67.382108310225141.21789168977486
568.77.642714490019571.05728550998043
578.77.520477585032531.17952241496746
588.57.261798258498041.23820174150196
598.47.505341499483740.894658500516256
608.57.898448501534890.601551498465111
618.77.808923937646830.89107606235317
628.77.403630118032121.29636988196788
638.68.008408233780850.591591766219152
647.97.45157432237640.448425677623603
658.17.80235206760850.297647932391502
668.27.932731085703120.267268914296877
678.57.982099453992950.517900546007047
688.68.179755197887050.420244802112949
698.58.116727292700840.383272707299162
708.38.051965935411450.248034064588551
718.28.106090658436190.0939093415638127
728.77.978852232297010.721147767702986
739.37.806284388269131.49371561173087
749.37.838430859243881.46156914075612
758.88.308481813891810.49151818610819
767.47.70642040321052-0.306420403210521
777.28.23113676620541-1.03113676620541
787.58.03720706033422-0.537207060334223
798.38.000277679192530.299722320807472
808.88.318452919655330.48154708034467
818.98.313344553142550.586655446857452
828.68.058566747520390.541433252479611
838.48.095520459677890.304479540322113
848.48.037347217501060.362652782498944
858.47.914655776674850.485344223325151
868.47.887398821033280.512601178966725
878.38.144619767313540.155380232686461
887.67.93446594731442-0.334465947314417
897.67.96163349868095-0.361633498680953
907.97.96195179335233-0.0619517933523347
9187.57062933686270.429370663137305
928.27.290543338840350.90945666115965
938.37.391588977014230.90841102298577
948.27.23713363750560.962866362494395
958.17.660476218453840.439523781546162
9687.668561623108220.331438376891778
977.87.697011323449730.102988676550268
987.67.476229391492470.123770608507532
997.57.81715899667062-0.317158996670620
1006.87.59729117674517-0.797291176745172
1016.97.7431244159272-0.843124415927207
1027.17.60313875251465-0.503138752514646
1037.37.51999076607887-0.219990766078876
1047.47.60795709130201-0.207957091302014
1057.67.576732131176080.0232678688239221
1067.67.503012823353880.0969871766461182
1077.57.428776647346130.071223352653871
1087.57.292708714012310.207291285987688
1096.87.2299040051492-0.429904005149202
1106.47.21007040820369-0.810070408203688
1116.27.56795017473225-1.36795017473225
11267.1606083107077-1.16060831070770
1136.37.19685796603196-0.896857966031963
1146.37.23793300348144-0.93793300348144
1156.17.13101721908886-1.03101721908886
1166.17.20162217845749-1.10162217845749
1176.37.19783143409797-0.897831434097968


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
120.1083524268536030.2167048537072060.891647573146397
130.06221589870640550.1244317974128110.937784101293595
140.02334638164046350.04669276328092690.976653618359537
150.008277837431871120.01655567486374220.991722162568129
160.003625098379102220.007250196758204430.996374901620898
170.001874788632895060.003749577265790120.998125211367105
180.008274509873317660.01654901974663530.991725490126682
190.01766530135456460.03533060270912920.982334698645435
200.01526924496648010.03053848993296020.98473075503352
210.01138688683456130.02277377366912260.988613113165439
220.05810385736770660.1162077147354130.941896142632293
230.1677930390656730.3355860781313470.832206960934327
240.2194287964995790.4388575929991590.780571203500421
250.2472858231784480.4945716463568950.752714176821552
260.2012143834623470.4024287669246930.798785616537653
270.1633300815760060.3266601631520120.836669918423994
280.2584252757338870.5168505514677750.741574724266113
290.4555881968094120.9111763936188230.544411803190588
300.54542701313160.90914597373680.4545729868684
310.6054423147247120.7891153705505750.394557685275288
320.5537463590656590.8925072818686830.446253640934341
330.511800945851020.976398108297960.48819905414898
340.4764986187961250.952997237592250.523501381203875
350.4346426351471450.869285270294290.565357364852855
360.4214332955654660.8428665911309320.578566704434534
370.4148816479561220.8297632959122450.585118352043878
380.3610260573805410.7220521147610820.638973942619459
390.3370806267852690.6741612535705370.662919373214731
400.3453520670416880.6907041340833750.654647932958312
410.323025538210920.646051076421840.67697446178908
420.2908972551776970.5817945103553940.709102744822303
430.2462597334866810.4925194669733630.753740266513319
440.2250343004257730.4500686008515470.774965699574227
450.1829752355459740.3659504710919480.817024764454026
460.1554086374575080.3108172749150150.844591362542492
470.1993203088372360.3986406176744710.800679691162764
480.1617307851466110.3234615702932220.838269214853389
490.1287705492655270.2575410985310540.871229450734473
500.1080474291427910.2160948582855810.89195257085721
510.08704424129280270.1740884825856050.912955758707197
520.07014099783542220.1402819956708440.929859002164578
530.06742977796625750.1348595559325150.932570222033743
540.07539888889006550.1507977777801310.924601111109934
550.07587265928076920.1517453185615380.92412734071923
560.07338168357216370.1467633671443270.926618316427836
570.06072201860988840.1214440372197770.939277981390112
580.050376411765350.10075282353070.94962358823465
590.03866173617331850.0773234723466370.961338263826681
600.05973625919140770.1194725183828150.940263740808592
610.1170620654621820.2341241309243640.882937934537818
620.1874925654390270.3749851308780540.812507434560973
630.1631032034161530.3262064068323060.836896796583847
640.1317909301280720.2635818602561440.868209069871928
650.1067225098225760.2134450196451510.893277490177424
660.09085557943079680.1817111588615940.909144420569203
670.07303934059037580.1460786811807520.926960659409624
680.0552514266666180.1105028533332360.944748573333382
690.04230305787556350.0846061157511270.957696942124436
700.03626474044129020.07252948088258030.96373525955871
710.02922387536057110.05844775072114220.970776124639429
720.0280036023490330.0560072046980660.971996397650967
730.1984871169088090.3969742338176190.80151288309119
740.4279310560438180.8558621120876360.572068943956182
750.6206008188433750.7587983623132510.379399181156625
760.7445307751225020.5109384497549960.255469224877498
770.9259591636708560.1480816726582880.0740408363291442
780.9575659510813070.08486809783738630.0424340489186932
790.9411087766934590.1177824466130830.0588912233065413
800.9338604169183550.1322791661632900.0661395830816448
810.9627763469145230.07444730617095440.0372236530854772
820.9563229706422160.08735405871556780.0436770293577839
830.947718369489440.1045632610211180.0522816305105588
840.9691832658579020.06163346828419510.0308167341420976
850.9745535077270580.0508929845458840.025446492272942
860.980448658197190.03910268360562220.0195513418028111
870.9819047080408030.03619058391839350.0180952919591967
880.9735555612458550.05288887750829020.0264444387541451
890.9683000974963960.06339980500720860.0316999025036043
900.9795013763034280.04099724739314420.0204986236965721
910.9938460354609670.01230792907806640.00615396453903322
920.9911345232125150.01773095357496990.00886547678748494
930.9840800751472930.03183984970541420.0159199248527071
940.9817817462794720.03643650744105550.0182182537205277
950.97334154357810.05331691284379830.0266584564218991
960.9674554358637470.06508912827250630.0325445641362532
970.9637819637851790.07243607242964260.0362180362148213
980.9486006674905430.1027986650189150.0513993325094575
990.9578841353669840.08423172926603250.0421158646330163
1000.970513592501540.05897281499691810.0294864074984590
1010.9974097233616140.005180553276771720.00259027663838586
1020.9983680687036830.00326386259263460.0016319312963173
1030.995038309527030.009923380945942180.00496169047297109
1040.9893467208600750.02130655827985060.0106532791399253
1050.9600082354025950.0799835291948110.0399917645974055


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.0531914893617021NOK
5% type I error level190.202127659574468NOK
10% type I error level370.393617021276596NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/10hiaq1292950429.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/10hiaq1292950429.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/1szve1292950429.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/1szve1292950429.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/239uh1292950429.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/239uh1292950429.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/339uh1292950429.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/339uh1292950429.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/439uh1292950429.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/439uh1292950429.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/5e0uk1292950429.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/5e0uk1292950429.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/6e0uk1292950429.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/6e0uk1292950429.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/7orb51292950429.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/7orb51292950429.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/8orb51292950429.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/8orb51292950429.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/9hiaq1292950429.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292950312yqorm89ispoi2e4/9hiaq1292950429.ps (open in new window)


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