Home » date » 2010 » Dec » 24 »

Meervoudige Lineaire Regressie Verleden

*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 14:43:54 +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/t1293201727i7bou3cee5chvnu.htm/, Retrieved Fri, 24 Dec 2010 15:42:07 +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/t1293201727i7bou3cee5chvnu.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 «
35532 37903 36763 40399 44164 35533 35532 37903 36763 40399 32110 35533 35532 37903 36763 33374 32110 35533 35532 37903 35462 33374 32110 35533 35532 33508 35462 33374 32110 35533 36080 33508 35462 33374 32110 34560 36080 33508 35462 33374 38737 34560 36080 33508 35462 38144 38737 34560 36080 33508 37594 38144 38737 34560 36080 36424 37594 38144 38737 34560 36843 36424 37594 38144 38737 37246 36843 36424 37594 38144 38661 37246 36843 36424 37594 40454 38661 37246 36843 36424 44928 40454 38661 37246 36843 48441 44928 40454 38661 37246 48140 48441 44928 40454 38661 45998 48140 48441 44928 40454 47369 45998 48140 48441 44928 49554 47369 45998 48140 48441 47510 49554 47369 45998 48140 44873 47510 49554 47369 45998 45344 44873 47510 49554 47369 42413 45344 44873 47510 49554 36912 42413 45344 44873 47510 43452 36912 42413 45344 44873 42142 43452 36912 42413 45344 44382 42142 43452 36912 42413 43636 44382 42142 43452 36912 44167 43636 44382 42142 43452 44423 44167 43636 44382 42142 4 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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
OPENVAC[t] = + 1342.02138911129 + 1.14792429674021X1[t] -0.0177916221452252X2[t] -0.201730547998897X3[t] + 0.0278280979719725X4[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)1342.02138911129943.9455781.42170.1584540.079227
X11.147924296740210.10356211.084400
X2-0.01779162214522520.15446-0.11520.9085460.454273
X3-0.2017305479988970.154621-1.30470.1952230.097612
X40.02782809797197250.1016090.27390.784790.392395


Multiple Linear Regression - Regression Statistics
Multiple R0.967475350481256
R-squared0.936008553788829
Adjusted R-squared0.933256233521682
F-TEST (value)340.079810101106
F-TEST (DF numerator)4
F-TEST (DF denominator)93
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2206.72614580172
Sum Squared Residuals452876546.278536


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13553237277.0103137574-1745.01031375739
23553335163.7188406003369.281159399662
33211034875.8949120586-2765.89491205856
43337431456.55941368811917.4405863119
53546232902.25429653132559.74570346871
63350835967.1831116315-2459.18311163148
73608033336.74713673322743.25286326679
83456035937.9345892357-1377.93458923568
93873734599.61616538844137.38383461164
103814438848.3121456426-704.312145642575
113759438471.4817329173-877.481732917261
123642436965.7465937335-541.746593733472
133684335868.3247389196974.675261080427
143724636464.5709564656781.429043534351
153866137140.44904564721520.55095435277
164045438640.50792757141813.49207242864
174492840603.92360849784324.07639150223
184844145433.60253167143007.39746832864
194814049064.3347547103-924.334754710302
204599847803.660880712-1805.66088071201
214736944765.98581056672603.01418943334
224955446536.38067915583017.61932084422
234751049443.9335298961-1933.93352989611
244487346722.5212058093-1849.52120580935
254534443329.18198591222014.81801408777
264241344389.9124714523-1976.91247145234
273691241492.0493264948-4580.04932649475
284345235061.06723217498390.93276782508
294214243270.7431166064-1128.74311660636
304438242678.7606684331703.23933156701
314363643801.0179672847-165.017967284707
324416743351.0759869265815.924013073542
334442343485.565102755937.434897244964
344286843982.8122996258-1114.81229962581
354390842065.35668085111842.64331914890
364201343249.9976216321-1236.99762163214
373884641376.9927874975-2530.99278749752
383508737522.1592014212-2435.15920142120
393302633674.6784476574-648.678447657425
403464631961.83157957542684.16842042463
413713534528.31101718642606.68898281356
423798537667.8330030466317.166996953358
434312138215.12811007794905.87188992209
444372243638.718604057583.2813959424606
454363044135.0365051137-505.036505113709
464223443006.3004936582-772.300493658173
473935141427.1200564829-2076.12005648291
483932738177.77531079271149.22468920733
493570438480.5740343086-2776.57403430862
503046634864.8124512623-4398.81245126226
512815528841.0571586680-686.057158667958
522925727011.59852674672245.40147325331
532999829273.5709519978724.429048002213
543252930425.01220752652103.98779247350
553478733030.60721225841756.39278774164
563385535458.7739065461-1603.77390654612
573455633858.7755827924697.224417207649
583134834294.9776452321-2946.97764523214
593080530850.8132901214-45.8132901214251
602835330117.2170193763-1764.21701937627
612451427978.8265892529-3464.82658925293
622110623635.8374208367-2529.83742083667
632134620271.54610145611074.45389854395
642333521313.89085848512021.10914151488
652437924173.5079348524205.492065147613
662629025193.29987479411096.7001252059
673008426973.84543588853110.1545641115
682942931139.8138225567-1710.81382255674
693063229963.9674508298668.032549170233
702734930644.38768843-3295.38768842999
712726427092.0622134361171.937786563892
722747426791.9892903016682.010709698351
732448227730.3242714401-3248.3242714401
742145324217.7859858808-2764.78598588081
751878820749.2270211058-1961.22702110583
761928218353.3212939579928.678706042136
771971319495.5907303211217.409269678929
782191720434.87764253631482.12235746368
792381222783.41783160041028.58216839961
802378524846.3228529256-1061.32285292565
812469624348.9935553848347.006444615189
822456225074.2867029854-512.286702985384
832358024962.4376499008-1382.43764990075
842493923653.03217999711285.96782000291
852389925282.9159628980-1383.91596289797
862145424259.2663127995-2805.26631279946
871976121169.6156873617-1408.61568736169
881981519517.2985241884297.701475811648
892078020073.6976204706706.302379529358
902346221453.97393744982008.02606255023
912500524457.5315664784547.468433521618
922472525987.8943642266-1262.89436422659
932619825124.83587297921073.16412702084
942754326584.0747394767958.925260523315
952647128201.2491677828-1730.2491677828
962655826641.8036252574-83.8036252574365
972531726530.4088592677-1213.40885926772
982289625357.9708751136-2461.97087511360


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.5557739236633180.8884521526733640.444226076336682
90.711264710118950.57747057976210.28873528988105
100.6640781211380350.671843757723930.335921878861965
110.5491884807986120.9016230384027760.450811519201388
120.4295920713330660.8591841426661320.570407928666934
130.3487003693873990.6974007387747970.651299630612601
140.2920712332448400.5841424664896810.70792876675516
150.281198084590610.562396169181220.71880191540939
160.3183259129518610.6366518259037220.681674087048139
170.5954163428748450.809167314250310.404583657125155
180.5974394595351150.805121080929770.402560540464885
190.6118498495119550.776300300976090.388150150488045
200.5891608899858050.821678220028390.410839110014195
210.6410868790543590.7178262418912820.358913120945641
220.6834999582267540.6330000835464930.316500041773246
230.6793298415076390.6413403169847210.320670158492361
240.6818323697031660.6363352605936680.318167630296834
250.6513778692475220.6972442615049560.348622130752478
260.6262043193233660.7475913613532690.373795680676635
270.7921126620444480.4157746759111050.207887337955552
280.9942148698961930.01157026020761350.00578513010380675
290.9925726227061280.01485475458774380.00742737729387192
300.9926982909213470.01460341815730580.00730170907865288
310.989127438612810.02174512277437900.0108725613871895
320.9852147725331620.02957045493367620.0147852274668381
330.9801670338685560.03966593226288740.0198329661314437
340.973037024204390.05392595159122030.0269629757956101
350.9731550341023220.05368993179535520.0268449658976776
360.9649653813628770.07006923727424660.0350346186371233
370.9686774356589860.06264512868202770.0313225643410139
380.9760036926990040.04799261460199130.0239963073009957
390.9694544671172080.06109106576558340.0305455328827917
400.9736875687946750.05262486241064930.0263124312053246
410.9761287899593910.04774242008121770.0238712100406088
420.9664147363558150.06717052728836950.0335852636441847
430.9947331610703560.01053367785928780.00526683892964392
440.9920865100671150.01582697986576940.00791348993288468
450.9897577596834570.02048448063308660.0102422403165433
460.9872072550875790.02558548982484290.0127927449124215
470.9846126968778150.03077460624436950.0153873031221848
480.989539559241710.02092088151657970.0104604407582899
490.9889648332803630.02207033343927410.0110351667196370
500.995441100612530.00911779877493880.0045588993874694
510.9943083525838380.01138329483232500.00569164741616248
520.99607350107480.007852997850401580.00392649892520079
530.9946360316628570.01072793667428570.00536396833714284
540.9962738121255690.007452375748862230.00372618787443111
550.9974076766561920.005184646687615620.00259232334380781
560.9967922787310250.00641544253795080.0032077212689754
570.9979260858002650.0041478283994710.0020739141997355
580.9979016810981050.004196637803791030.00209831890189551
590.9988814027588290.002237194482342670.00111859724117133
600.998521551801430.002956896397140230.00147844819857011
610.998543260794260.002913478411479490.00145673920573975
620.9984080388822580.003183922235484070.00159196111774203
630.9980600083962150.003879983207569450.00193999160378473
640.9984852087073550.003029582585290570.00151479129264529
650.9975219566395980.004956086720803930.00247804336040197
660.9963023334949930.007395333010013860.00369766650500693
670.9987981488516330.002403702296733830.00120185114836692
680.998144117218080.003711765563841130.00185588278192056
690.9987853803092950.002429239381410440.00121461969070522
700.9991595071002390.001680985799522060.000840492899761031
710.9998824899729170.0002350200541660620.000117510027083031
720.9998960821566520.0002078356866959250.000103917843347962
730.9998185783801280.000362843239743630.000181421619871815
740.999706117927240.0005877641455212760.000293882072760638
750.9997456845284650.000508630943070340.00025431547153517
760.9995783162427760.0008433675144478680.000421683757223934
770.9991214620387430.001757075922514530.000878537961257266
780.9988621309100760.002275738179848060.00113786908992403
790.9975546929771870.004890614045626420.00244530702281321
800.996747151750070.006505696499861340.00325284824993067
810.9930795801825020.01384083963499600.00692041981749799
820.9896994883028240.02060102339435200.0103005116971760
830.980360823695740.03927835260851880.0196391763042594
840.9798395740212580.04032085195748420.0201604259787421
850.974775253741650.05044949251670110.0252247462583505
860.9629985398040620.07400292039187640.0370014601959382
870.9733620075585110.05327598488297730.0266379924414886
880.9564088426144350.08718231477113030.0435911573855651
890.9099634462858570.1800731074282860.0900365537141432
900.8899502487829420.2200995024341150.110049751217058


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level290.349397590361446NOK
5% type I error level500.602409638554217NOK
10% type I error level610.734939759036145NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/10ksqc1293201825.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/10ksqc1293201825.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/1wrb01293201825.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/1wrb01293201825.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/2o0al1293201825.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/2o0al1293201825.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/3o0al1293201825.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/3o0al1293201825.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/4o0al1293201825.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/4o0al1293201825.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/7sjrr1293201825.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/7sjrr1293201825.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/8sjrr1293201825.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201727i7bou3cee5chvnu/8sjrr1293201825.ps (open in new window)


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


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
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