Home » date » 2008 » Dec » 14 »

Master regressie 1 aug 2008 zonder trend

*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, 14 Dec 2008 11:14:53 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt.htm/, Retrieved Sun, 14 Dec 2008 19:18:29 +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/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
8310 0 7649 0 7279 0 6857 0 6496 0 6280 0 8962 0 11205 0 10363 0 9175 0 8234 0 8121 0 7438 0 6876 0 6489 0 6319 0 5952 0 6055 0 9107 0 11493 0 10213 0 9238 0 8218 0 7995 0 7581 0 7051 0 6668 0 6433 0 6135 0 6365 0 10095 0 12029 0 12184 0 11331 0 9961 0 9739 0 9080 0 8507 0 8097 0 7772 0 7440 0 7902 0 13539 0 14992 0 15436 0 14156 0 12846 0 12302 0 11691 0 10648 0 10064 0 10016 0 9691 0 10260 0 16882 0 18573 0 18227 0 16346 0 14694 0 14453 0 13949 0 13277 0 12726 0 12279 0 11819 0 12207 0 18637 0 20519 0 19974 0 17802 0 15997 0 15430 0 14452 0 13614 0 13080 0 12290 0 11890 0 12292 0 18700 0 20388 0 19170 0 17530 0 15564 0 15163 0 13406 0 12763 0 12083 0 12054 0 11770 0 12266 0 17549 0 18655 0 17279 0 14788 0 13138 0 12494 0 11767 0 10928 0 10104 0 9760 0 9536 0 9978 0 14846 0 15565 0 13587 0 11804 0 10611 0 10915 0 9988 0 9376 0 9319 0 8852 0 8392 0 9050 0 13250 0 14037 1 12486 1 11182 1 10287 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'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
NWWZM[t] = + 11845.7777777778 -2204.36111111111Dummy[t] -1079.57777777778M1[t] -1776.87777777778M2[t] -2254.87777777778M3[t] -2582.57777777778M4[t] -2933.67777777778M5[t] -2580.27777777778M6[t] + 2310.92222222222M7[t] + 4120.25833333333M8[t] + 3266.55833333333M9[t] + 1709.85833333333M10[t] + 329.658333333333M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)11845.7777777778982.63786512.055100
Dummy-2204.361111111111553.686885-1.41880.1588930.079446
M1-1079.577777777781354.472824-0.7970.4272060.213603
M2-1776.877777777781354.472824-1.31190.1924020.096201
M3-2254.877777777781354.472824-1.66480.0989130.049457
M4-2582.577777777781354.472824-1.90670.0592670.029633
M5-2933.677777777781354.472824-2.16590.0325590.016279
M6-2580.277777777781354.472824-1.9050.0594890.029745
M72310.922222222221354.4728241.70610.090910.045455
M84120.258333333331363.3547083.02210.0031470.001574
M93266.558333333331363.3547082.3960.0183290.009164
M101709.858333333331363.3547081.25420.2125440.106272
M11329.6583333333331363.3547080.24180.8094030.404701


Multiple Linear Regression - Regression Statistics
Multiple R0.64228052981112
R-squared0.412524278974453
Adjusted R-squared0.346017593575334
F-TEST (value)6.20274903942093
F-TEST (DF numerator)12
F-TEST (DF denominator)106
p-value3.58258531729660e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2947.9135961937
Sum Squared Residuals921160624.486111


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1831010766.2-2456.20000000001
2764910068.9-2419.9
372799590.9-2311.9
468579263.2-2406.2
564968912.1-2416.1
662809265.5-2985.5
7896214156.7-5194.7
81120515966.0361111111-4761.03611111111
91036315112.3361111111-4749.33611111111
10917513555.6361111111-4380.63611111111
11823412175.4361111111-3941.43611111111
12812111845.7777777778-3724.77777777778
13743810766.2-3328.2
14687610068.9-3192.9
1564899590.9-3101.9
1663199263.2-2944.2
1759528912.1-2960.1
1860559265.5-3210.5
19910714156.7-5049.7
201149315966.0361111111-4473.03611111111
211021315112.3361111111-4899.33611111111
22923813555.6361111111-4317.63611111111
23821812175.4361111111-3957.43611111111
24799511845.7777777778-3850.77777777778
25758110766.2-3185.2
26705110068.9-3017.9
2766689590.9-2922.9
2864339263.2-2830.2
2961358912.1-2777.1
3063659265.5-2900.5
311009514156.7-4061.7
321202915966.0361111111-3937.03611111111
331218415112.3361111111-2928.33611111111
341133113555.6361111111-2224.63611111111
35996112175.4361111111-2214.43611111111
36973911845.7777777778-2106.77777777778
37908010766.2-1686.2
38850710068.9-1561.9
3980979590.9-1493.9
4077729263.2-1491.2
4174408912.1-1472.1
4279029265.5-1363.5
431353914156.7-617.7
441499215966.0361111111-974.03611111111
451543615112.3361111111323.663888888889
461415613555.6361111111600.363888888888
471284612175.4361111111670.563888888888
481230211845.7777777778456.222222222222
491169110766.2924.8
501064810068.9579.1
51100649590.9473.1
52100169263.2752.8
5396918912.1778.9
54102609265.5994.499999999999
551688214156.72725.3
561857315966.03611111112606.96388888889
571822715112.33611111113114.66388888889
581634613555.63611111112790.36388888889
591469412175.43611111112518.56388888889
601445311845.77777777782607.22222222222
611394910766.23182.8
621327710068.93208.1
63127269590.93135.1
64122799263.23015.8
65118198912.12906.9
66122079265.52941.5
671863714156.74480.3
682051915966.03611111114552.96388888888
691997415112.33611111114861.66388888889
701780213555.63611111114246.36388888889
711599712175.43611111113821.56388888889
721543011845.77777777783584.22222222222
731445210766.23685.8
741361410068.93545.1
75130809590.93489.1
76122909263.23026.8
77118908912.12977.9
78122929265.53026.5
791870014156.74543.3
802038815966.03611111114421.96388888888
811917015112.33611111114057.66388888889
821753013555.63611111113974.36388888889
831556412175.43611111113388.56388888889
841516311845.77777777783317.22222222222
851340610766.22639.8
861276310068.92694.1
87120839590.92492.1
88120549263.22790.8
89117708912.12857.9
90122669265.53000.5
911754914156.73392.3
921865515966.03611111112688.96388888889
931727915112.33611111112166.66388888889
941478813555.63611111111232.36388888889
951313812175.4361111111962.563888888888
961249411845.7777777778648.222222222222
971176710766.21000.8
981092810068.9859.1
99101049590.9513.1
10097609263.2496.8
10195368912.1623.9
10299789265.5712.499999999999
1031484614156.7689.3
1041556515966.0361111111-401.036111111109
1051358715112.3361111111-1525.33611111111
1061180413555.6361111111-1751.63611111111
1071061112175.4361111111-1564.43611111111
1081091511845.7777777778-930.777777777778
109998810766.2-778.199999999999
110937610068.9-692.9
11193199590.9-271.900000000000
11288529263.2-411.2
11383928912.1-520.1
11490509265.5-215.500000000001
1151325014156.7-906.700000000001
1161403713761.675275.325000000000
1171248612907.975-421.975
1181118211351.275-169.275
119102879971.075315.925000000001


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.01456742064652870.02913484129305750.985432579353471
170.003407829467801710.006815658935603410.996592170532198
180.0006480058678944990.001296011735789000.999351994132106
190.0001255026155289030.0002510052310578070.999874497384471
202.52336265450165e-055.0467253090033e-050.999974766373455
214.90513728718034e-069.81027457436069e-060.999995094862713
228.92149544212527e-071.78429908842505e-060.999999107850456
231.56055249665775e-073.12110499331551e-070.99999984394475
242.76900642762412e-085.53801285524824e-080.999999972309936
255.81286686707123e-091.16257337341425e-080.999999994187133
261.09209414645593e-092.18418829291186e-090.999999998907906
272.06721240270933e-104.13442480541867e-100.999999999793279
283.65454071074413e-117.30908142148826e-110.999999999963455
296.14071417002784e-121.22814283400557e-110.99999999999386
301.20879170708984e-122.41758341417967e-120.999999999998791
311.01537495187918e-112.03074990375836e-110.999999999989846
321.12219022787337e-112.24438045574674e-110.999999999988778
331.72157789135548e-093.44315578271097e-090.999999998278422
345.73988663443821e-081.14797732688764e-070.999999942601134
352.26477593890587e-074.52955187781173e-070.999999773522406
366.02012819181911e-071.20402563836382e-060.99999939798718
378.48166700041896e-071.69633340008379e-060.9999991518333
381.15092730362800e-062.30185460725601e-060.999998849072696
391.44975221208565e-062.89950442417131e-060.999998550247788
401.71272997707351e-063.42545995414702e-060.999998287270023
412.05596219091400e-064.11192438182800e-060.99999794403781
424.24106916753249e-068.48213833506499e-060.999995758930832
430.0004860876100100370.0009721752200200740.99951391238999
440.003652317630393220.007304635260786440.996347682369607
450.02893246134265270.05786492268530550.971067538657347
460.08265173077314520.1653034615462900.917348269226855
470.1528557786858490.3057115573716990.84714422131415
480.2161468826702190.4322937653404380.783853117329781
490.2790925516717960.5581851033435920.720907448328204
500.3175303312949770.6350606625899530.682469668705023
510.3441892055841270.6883784111682550.655810794415873
520.3752450237647720.7504900475295450.624754976235228
530.4029479619117920.8058959238235840.597052038088208
540.4472834557693860.8945669115387710.552716544230614
550.6628833025744350.674233394851130.337116697425565
560.7891863614796520.4216272770406970.210813638520348
570.8706321553151750.2587356893696490.129367844684825
580.9037753758649960.1924492482700080.0962246241350038
590.9190377700747750.1619244598504500.0809622299252252
600.931367427099850.13726514580030.06863257290015
610.9458924480776460.1082151038447080.0541075519223539
620.9565628626461990.0868742747076020.043437137353801
630.9634258742728810.07314825145423780.0365741257271189
640.9673286120282320.0653427759435360.032671387971768
650.9693328649028460.06133427019430820.0306671350971541
660.9710175807407070.05796483851858670.0289824192592933
670.9831950054874420.03360998902511680.0168049945125584
680.9893112063613130.02137758727737360.0106887936386868
690.9942835330029750.01143293399404950.00571646699702476
700.9960894270798440.007821145840311870.00391057292015594
710.9968116737951590.006376652409682420.00318832620484121
720.9971508740466210.005698251906757720.00284912595337886
730.9975079086768430.004984182646313890.00249209132315695
740.9976758836637370.004648232672526820.00232411633626341
750.9977845555149120.004430888970175440.00221544448508772
760.9974736057405920.005052788518815570.00252639425940778
770.9970399536371260.005920092725747720.00296004636287386
780.9964588997083350.007082200583329310.00354110029166465
790.9976967655278780.004606468944244860.00230323447212243
800.9982594774306970.003481045138605170.00174052256930258
810.9988725229163680.002254954167264240.00112747708363212
820.999417436101210.001165127797580130.000582563898790064
830.9995930852403910.000813829519217420.00040691475960871
840.9997153415234350.0005693169531292060.000284658476564603
850.999678925296910.000642149406181690.000321074703090845
860.9996544112955690.0006911774088627670.000345588704431383
870.99958366161980.000832676760399620.00041633838019981
880.999592658472280.0008146830554404720.000407341527720236
890.9996264507074620.0007470985850751680.000373549292537584
900.9996626110677250.0006747778645506540.000337388932275327
910.999854440037920.000291119924158750.000145559962079375
920.9998909179874820.0002181640250368720.000109082012518436
930.9999695188641046.0962271790986e-053.0481135895493e-05
940.9999854436402532.91127194948222e-051.45563597474111e-05
950.999990878201281.82435974383206e-059.12179871916032e-06
960.999983921776413.21564471809689e-051.60782235904845e-05
970.9999800478120783.99043758447803e-051.99521879223902e-05
980.999969886872966.02262540818435e-053.01131270409217e-05
990.9998868873542320.0002262252915352300.000113112645767615
1000.9996193700455780.0007612599088432390.000380629954421620
1010.99900795295640.001984094087199480.00099204704359974
1020.9966646513415860.006670697316827020.00333534865841351
1030.9977363690947030.004527261810593130.00226363090529656


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level620.704545454545455NOK
5% type I error level660.75NOK
10% type I error level720.818181818181818NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/10mor21229278479.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/10mor21229278479.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/1drm71229278478.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/1drm71229278478.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/2foln1229278478.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/2foln1229278478.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/3vjvv1229278478.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/3vjvv1229278478.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/4rurp1229278478.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/4rurp1229278478.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/5xkp51229278478.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/5xkp51229278478.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/6s1xc1229278478.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/6s1xc1229278478.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/70c5o1229278479.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/70c5o1229278479.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/80xmj1229278479.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/80xmj1229278479.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/9c2f81229278479.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229278709sfrfd3vf5e9ekwt/9c2f81229278479.ps (open in new window)


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