Home » date » 2010 » Dec » 21 »

paperMR1(werk)

*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 12:55:46 +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/t1292936142jmufimnksh9vfe0.htm/, Retrieved Tue, 21 Dec 2010 13:55:53 +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/t1292936142jmufimnksh9vfe0.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 «
6,7 0 6,7 0 6,5 0 6,3 0 6,3 0 6,3 0 6,5 0 6,6 0 6,5 0 6,3 0 6,3 0 6,5 0 7 0 7,1 0 7,3 0 7,3 0 7,4 0 7,4 0 7,3 0 7,4 0 7,5 0 7,7 0 7,7 0 7,7 0 7,7 0 7,7 0 7,8 0 8 0 8,1 0 8,1 0 8,2 0 8,2 0 8,2 0 8,1 0 8,1 0 8,2 0 8,3 0 8,3 0 8,4 0 8,5 0 8,5 0 8,4 0 8 0 7,9 0 8,1 0 8,5 0 8,8 0 8,8 0 8,6 0 8,3 0 8,3 0 8,3 0 8,4 0 8,4 0 8,5 0 8,6 0 8,6 0 8,6 0 8,6 0 8,6 0 8,5 0 8,4 0 8,4 0 8,4 0 8,5 0 8,5 0 8,6 0 8,6 0 8,4 0 8,2 0 8 0 8 0 8 0 8 0 7,9 0 7,9 0 7,8 0 7,8 0 8 0 7,8 0 7,4 0 7,2 0 7 0 7 0 7,2 0 7,2 0 7,2 0 7 0 6,9 0 6,8 0 6,8 0 6,8 0 6,9 0 7,2 0 7,2 0 7,2 0 7,1 0 7,2 1 7,3 1 7,5 1 7,6 1 7,7 1 7,7 1 7,7 1 7,8 1 8 1 8,1 1 8,1 1 8 1 8,1 1 8,2 1 8,3 1 8,4 1 8,4 1 8,4 1 8,5 1 8,5 1 8,6 1 8,6 1 8,5 1 8,5 1
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time8 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
werkloosheid[t] = + 7.71958762886598 + 0.351245704467354X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7.719587628865980.068259113.092400
X0.3512457044673540.1532672.29170.0236790.01184


Multiple Linear Regression - Regression Statistics
Multiple R0.205594557624321
R-squared0.0422691221247402
Adjusted R-squared0.034220963487133
F-TEST (value)5.25202397567391
F-TEST (DF numerator)1
F-TEST (DF denominator)119
p-value0.0236794934158778
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.672274246500862
Sum Squared Residuals53.7823668384879


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16.77.71958762886593-1.01958762886593
26.77.71958762886598-1.01958762886598
36.57.71958762886598-1.21958762886598
46.37.71958762886598-1.41958762886598
56.37.71958762886598-1.41958762886598
66.37.71958762886598-1.41958762886598
76.57.71958762886598-1.21958762886598
86.67.71958762886598-1.11958762886598
96.57.71958762886598-1.21958762886598
106.37.71958762886598-1.41958762886598
116.37.71958762886598-1.41958762886598
126.57.71958762886598-1.21958762886598
1377.71958762886598-0.71958762886598
147.17.71958762886598-0.61958762886598
157.37.71958762886598-0.41958762886598
167.37.71958762886598-0.41958762886598
177.47.71958762886598-0.319587628865979
187.47.71958762886598-0.319587628865979
197.37.71958762886598-0.41958762886598
207.47.71958762886598-0.319587628865979
217.57.71958762886598-0.219587628865980
227.77.71958762886598-0.0195876288659797
237.77.71958762886598-0.0195876288659797
247.77.71958762886598-0.0195876288659797
257.77.71958762886598-0.0195876288659797
267.77.71958762886598-0.0195876288659797
277.87.719587628865980.08041237113402
2887.719587628865980.28041237113402
298.17.719587628865980.38041237113402
308.17.719587628865980.38041237113402
318.27.719587628865980.480412371134019
328.27.719587628865980.480412371134019
338.27.719587628865980.480412371134019
348.17.719587628865980.38041237113402
358.17.719587628865980.38041237113402
368.27.719587628865980.480412371134019
378.37.719587628865980.580412371134021
388.37.719587628865980.580412371134021
398.47.719587628865980.68041237113402
408.57.719587628865980.78041237113402
418.57.719587628865980.78041237113402
428.47.719587628865980.68041237113402
4387.719587628865980.28041237113402
447.97.719587628865980.180412371134021
458.17.719587628865980.38041237113402
468.57.719587628865980.78041237113402
478.87.719587628865981.08041237113402
488.87.719587628865981.08041237113402
498.67.719587628865980.88041237113402
508.37.719587628865980.580412371134021
518.37.719587628865980.580412371134021
528.37.719587628865980.580412371134021
538.47.719587628865980.68041237113402
548.47.719587628865980.68041237113402
558.57.719587628865980.78041237113402
568.67.719587628865980.88041237113402
578.67.719587628865980.88041237113402
588.67.719587628865980.88041237113402
598.67.719587628865980.88041237113402
608.67.719587628865980.88041237113402
618.57.719587628865980.78041237113402
628.47.719587628865980.68041237113402
638.47.719587628865980.68041237113402
648.47.719587628865980.68041237113402
658.57.719587628865980.78041237113402
668.57.719587628865980.78041237113402
678.67.719587628865980.88041237113402
688.67.719587628865980.88041237113402
698.47.719587628865980.68041237113402
708.27.719587628865980.480412371134019
7187.719587628865980.28041237113402
7287.719587628865980.28041237113402
7387.719587628865980.28041237113402
7487.719587628865980.28041237113402
757.97.719587628865980.180412371134021
767.97.719587628865980.180412371134021
777.87.719587628865980.08041237113402
787.87.719587628865980.08041237113402
7987.719587628865980.28041237113402
807.87.719587628865980.08041237113402
817.47.71958762886598-0.319587628865979
827.27.71958762886598-0.51958762886598
8377.71958762886598-0.71958762886598
8477.71958762886598-0.71958762886598
857.27.71958762886598-0.51958762886598
867.27.71958762886598-0.51958762886598
877.27.71958762886598-0.51958762886598
8877.71958762886598-0.71958762886598
896.97.71958762886598-0.81958762886598
906.87.71958762886598-0.91958762886598
916.87.71958762886598-0.91958762886598
926.87.71958762886598-0.91958762886598
936.97.71958762886598-0.81958762886598
947.27.71958762886598-0.51958762886598
957.27.71958762886598-0.51958762886598
967.27.71958762886598-0.51958762886598
977.17.71958762886598-0.61958762886598
987.28.07083333333333-0.870833333333333
997.38.07083333333333-0.770833333333333
1007.58.07083333333333-0.570833333333333
1017.68.07083333333333-0.470833333333333
1027.78.07083333333333-0.370833333333333
1037.78.07083333333333-0.370833333333333
1047.78.07083333333333-0.370833333333333
1057.88.07083333333333-0.270833333333333
10688.07083333333333-0.0708333333333332
1078.18.070833333333330.0291666666666665
1088.18.070833333333330.0291666666666665
10988.07083333333333-0.0708333333333332
1108.18.070833333333330.0291666666666665
1118.28.070833333333330.129166666666666
1128.38.070833333333330.229166666666668
1138.48.070833333333330.329166666666667
1148.48.070833333333330.329166666666667
1158.48.070833333333330.329166666666667
1168.58.070833333333330.429166666666667
1178.58.070833333333330.429166666666667
1188.68.070833333333330.529166666666666
1198.68.070833333333330.529166666666666
1208.58.070833333333330.429166666666667
1218.58.070833333333330.429166666666667


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.05964590324101290.1192918064820260.940354096758987
60.0269830598201260.0539661196402520.973016940179874
70.00885389130651430.01770778261302860.991146108693486
80.003326235837549380.006652471675098760.99667376416245
90.001052239554291610.002104479108583210.998947760445708
100.0005948408690174870.001189681738034970.999405159130982
110.0003346702921777440.0006693405843554880.999665329707822
120.0001277954152341860.0002555908304683720.999872204584766
130.001219921375808970.002439842751617940.998780078624191
140.005462176749914230.01092435349982850.994537823250086
150.02581307723588560.05162615447177130.974186922764114
160.05523001733302380.1104600346660480.944769982666976
170.1049072165220570.2098144330441140.895092783477943
180.1525654941348710.3051309882697430.847434505865129
190.1721294494608880.3442588989217760.827870550539112
200.2047449978881820.4094899957763630.795255002111819
210.2519832772788710.5039665545577410.74801672272113
220.3455533726128950.691106745225790.654446627387105
230.4206407061451560.8412814122903120.579359293854844
240.4776625239200240.9553250478400470.522337476079976
250.5194003801145190.9611992397709620.480599619885481
260.5488487267260580.9023025465478850.451151273273942
270.5894944571353650.821011085729270.410505542864635
280.6637599521091580.6724800957816840.336240047890842
290.7385091446620780.5229817106758440.261490855337922
300.789706030710620.420587938578760.21029396928938
310.8401445704707340.3197108590585310.159855429529266
320.873636309319180.2527273813616410.126363690680820
330.8961296060281350.2077407879437300.103870393971865
340.9034493619593110.1931012760813770.0965506380406887
350.9077446447965860.1845107104068290.0922553552034144
360.9164579195152510.1670841609694980.0835420804847491
370.928804279859080.1423914402818410.0711957201409206
380.9374365147909240.1251269704181520.0625634852090761
390.9487671196480560.1024657607038870.0512328803519436
400.961398425751130.07720314849773850.0386015742488692
410.9700939455364670.0598121089270650.0299060544635325
420.9733920936554210.05321581268915770.0266079063445789
430.9675840300495640.06483193990087110.0324159699504355
440.9591808664324550.08163826713508910.0408191335675445
450.952810287583770.094379424832460.04718971241623
460.959625031970580.08074993605883990.0403749680294199
470.9760655620041140.0478688759917720.023934437995886
480.9860011876166170.02799762476676590.0139988123833829
490.9890795417527220.02184091649455540.0109204582472777
500.9880566934591330.02388661308173350.0119433065408667
510.9868954788828280.02620904223434380.0131045211171719
520.985590993507430.0288180129851410.0144090064925705
530.9855040632489290.02899187350214270.0144959367510714
540.9853993354694350.0292013290611290.0146006645305645
550.9867867467939520.02642650641209580.0132132532060479
560.9895194562268740.02096108754625250.0104805437731263
570.9918326942735740.01633461145285250.00816730572642627
580.9937844190654230.01243116186915490.00621558093457745
590.9954142033743440.009171593251312910.00458579662565646
600.996749623461950.006500753076098670.00325037653804934
610.9974024928127820.005195014374436480.00259750718721824
620.9976642051987780.004671589602443230.00233579480122161
630.9979634553393730.004073089321254540.00203654466062727
640.9982903812069660.003419237586067460.00170961879303373
650.9988650704390420.002269859121915540.00113492956095777
660.9993140410716640.001371917856671500.000685958928335749
670.9997201321833730.0005597356332531830.000279867816626591
680.999911645547280.0001767089054422758.83544527211373e-05
690.9999600789603987.98420792041492e-053.99210396020746e-05
700.9999731528141685.36943716641531e-052.68471858320766e-05
710.9999736652888225.2669422355767e-052.63347111778835e-05
720.9999758994638144.82010723713217e-052.41005361856608e-05
730.999979743511214.05129775806649e-052.02564887903325e-05
740.9999847037690643.05924618714652e-051.52962309357326e-05
750.9999866330536512.67338926972501e-051.33669463486251e-05
760.9999895431325122.09137349768669e-051.04568674884334e-05
770.9999905110608971.89778782068971e-059.48893910344856e-06
780.9999923188793621.53622412765165e-057.68112063825827e-06
790.999997647907724.70418455923909e-062.35209227961954e-06
800.9999988374917122.32501657673324e-061.16250828836662e-06
810.9999983745286913.25094261806854e-061.62547130903427e-06
820.999997202471285.59505744010434e-062.79752872005217e-06
830.9999952782245929.44355081537455e-064.72177540768727e-06
840.9999919963589431.60072821129942e-058.0036410564971e-06
850.999986287135952.74257281005346e-051.37128640502673e-05
860.9999768847117254.62305765491589e-052.31152882745795e-05
870.9999617995787277.64008425465194e-053.82004212732597e-05
880.9999350650918620.0001298698162766526.49349081383258e-05
890.9998961245674530.0002077508650931210.000103875432546560
900.9998527144979750.0002945710040498710.000147285502024935
910.9997956610213550.0004086779572901880.000204338978645094
920.9997280218747530.0005439562504936190.000271978125246809
930.9996000647860850.000799870427829040.00039993521391452
940.9992817864731620.001436427053675360.000718213526837678
950.9987330123603910.002533975279217130.00126698763960857
960.9978156647107860.004368670578428490.00218433528921424
970.9963254241997260.007349151600548040.00367457580027402
980.9985590300826160.002881939834767860.00144096991738393
990.9994808420269970.001038315946005630.000519157973002815
1000.9997132690082170.0005734619835661420.000286730991783071
1010.9998182574776620.0003634850446768330.000181742522338417
1020.9998601657746620.000279668450676980.00013983422533849
1030.9999177166007660.0001645667984677328.22833992338662e-05
1040.999970476902285.9046195441026e-052.9523097720513e-05
1050.999988910341032.21793179417611e-051.10896589708806e-05
1060.9999879812894772.40374210466511e-051.20187105233256e-05
1070.9999795325777724.09348444564697e-052.04674222282348e-05
1080.9999694007359296.11985281429363e-053.05992640714681e-05
1090.9999885543662222.28912675550974e-051.14456337775487e-05
1100.9999954352684629.12946307689897e-064.56473153844948e-06
1110.9999975753433134.84931337439563e-062.42465668719782e-06
1120.9999970486663655.90266726939422e-062.95133363469711e-06
1130.999986415805392.71683892200113e-051.35841946100057e-05
1140.9999490602905630.0001018794188739825.09397094369912e-05
1150.9998944987935880.0002110024128236150.000105501206411808
1160.9988791457857160.002241708428566990.00112085421428350


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level640.571428571428571NOK
5% type I error level780.696428571428571NOK
10% type I error level870.776785714285714NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/10vwsr1292936137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/10vwsr1292936137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/16vvf1292936137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/16vvf1292936137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/26vvf1292936137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/26vvf1292936137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/36vvf1292936137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/36vvf1292936137.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/4hmu01292936137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/4hmu01292936137.ps (open in new window)


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/9l5bo1292936137.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292936142jmufimnksh9vfe0/9l5bo1292936137.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