Home » date » 2010 » Dec » 03 »

interactie effecten

*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, 03 Dec 2010 08:29:31 +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/03/t1291364853i6994gqeqncejqd.htm/, Retrieved Fri, 03 Dec 2010 09:27:33 +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/03/t1291364853i6994gqeqncejqd.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 162556 162556 1081 1081 213118 213118 230380558 6282929 1 29790 29790 309 309 81767 81767 25266003 4324047 1 87550 87550 458 458 153198 153198 70164684 4108272 0 84738 0 588 0 -26007 0 -15292116 -1212617 1 54660 54660 299 299 126942 126942 37955658 1485329 1 42634 42634 156 156 157214 157214 24525384 1779876 0 40949 0 481 0 129352 0 62218312 1367203 1 42312 42312 323 323 234817 234817 75845891 2519076 1 37704 37704 452 452 60448 60448 27322496 912684 1 16275 16275 109 109 47818 47818 5212162 1443586 0 25830 0 115 0 245546 0 28237790 1220017 0 12679 0 110 0 48020 0 5282200 984885 1 18014 18014 239 239 -1710 -1710 -408690 1457425 0 43556 0 247 0 32648 0 8064056 -572920 1 24524 24524 497 497 95350 95350 47388950 929144 0 6532 0 103 0 151352 0 15589256 1151176 0 7123 0 109 0 288170 0 31410530 790090 1 20813 20813 502 502 114337 114337 57397174 774497 1 37597 37597 248 248 37884 37884 9395232 990576 0 17821 0 373 0 122844 0 45820812 454195 1 12988 12988 119 119 82340 82340 9798460 876607 1 2 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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
Wealth [t] = + 247163.774713791 + 182388.039739411Group[t] -3.39043253775906Costs[t] + 36.6057608257932GrCosts[t] -950.85757753505Trades[t] -64.810941789383GrTrades[t] + 2.25602153340068Dividends[t] -2.69385322781055GrDiv[t] + 0.00881423353788577TrDiv[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)247163.774713791137801.6183371.79360.0761950.038098
Group182388.039739411221247.3379630.82440.4118890.205945
Costs-3.390432537759065.733373-0.59140.5557520.277876
GrCosts36.60576082579328.4269134.34393.6e-051.8e-05
Trades-950.85757753505678.173243-1.40210.1642910.082146
GrTrades-64.810941789383760.588311-0.08520.932280.46614
Dividends2.256021533400681.1922541.89220.0616390.03082
GrDiv-2.693853227810551.791254-1.50390.1360720.068036
TrDiv0.008814233537885770.0051711.70460.0916830.045841


Multiple Linear Regression - Regression Statistics
Multiple R0.883583221714003
R-squared0.780719309694496
Adjusted R-squared0.761441886370936
F-TEST (value)40.4991526404001
F-TEST (DF numerator)8
F-TEST (DF denominator)91
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation427459.059792451
Sum Squared Residuals16627633549676.8


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
162829296668283.27600436-385354.276004363
243240471292095.13853663031951.8614634
341082723423750.59518775684521.404812246
4-1212617-792699.586993038-419917.413006962
514853292220387.57414349-735058.574143487
617798761834549.02184801-54673.0218480117
71367203491194.087620221876008.91237978
825190762072610.92441150446465.075588504
99126841437181.19180886-524497.19180886
101443586884428.390876597559157.609123403
111220017853091.81994112366925.180058879
12984885254474.845466408730410.154533592
131457425782294.365208152675130.634791848
14-5729209361.33731705335-582281.337317053
159291441115287.29163792-186143.291637919
161151176605939.853080184545236.146919816
177900901046347.72004485-256257.720044852
187744971066848.57901812-292351.579018115
199905761492687.67238556-502111.672385556
20454195513087.047150444-58892.0471504442
21876607790402.79749250586204.2025074948
227119691110078.84310292-398109.843102923
23702380627311.48145890475068.5185410956
24264449476959.435172096-212510.435172097
25450033549507.931961064-99474.9319610641
26541063312690.302521140228372.697478860
275888641168549.79141259-579685.791412595
28-37216191559.340355319-228775.340355319
29783310265995.360832435517314.639167565
30467359126148.077530972341210.922469028
31688779496364.896061125192414.103938875
32608419768833.225647468-160414.225647468
33696348600718.93628159895629.0637184024
34597793529278.06641409168514.9335859086
35821730957789.940045404-136059.940045404
36377934407448.627350862-29514.6273508621
37651939396501.548836458255437.451163542
38697458555576.942837637141881.057162363
39700368477441.4764121222926.5235879
40225986377527.906948903-151541.906948903
41348695657301.41763294-308606.41763294
42373683412097.300756584-38414.3007565844
43501709415440.97713486986268.0228651315
44413743497926.614740086-84183.6147400862
45379825366338.05813961813486.9418603824
46336260503476.843435158-167216.843435158
47636765401224.362724376235540.637275624
48481231680094.699529944-198863.699529944
49469107515998.407332378-46891.4073323785
50211928402631.858160142-190703.858160142
51563925480391.77466558783533.2253344132
52511939534212.982242691-22273.9822426913
53521016663477.649756072-142461.649756072
54543856447444.37686947396411.6231305271
55329304573325.200339855-244021.200339855
56423262337701.56066491385560.4393350871
57509665343483.569498871166181.430501129
58455881415125.55169834140755.4483016589
59367772459344.997451247-91572.9974512465
60406339676317.531696804-269978.531696804
61493408564435.435698779-71027.435698779
62232942362153.004065139-129211.004065139
63416002485638.891828707-69636.8918287074
64337430612211.047248021-274781.047248021
65361517337215.22192245124301.7780775493
66360962264837.27928038596124.7207196148
67235561408779.163938133-173218.163938133
68408247446857.123709099-38610.123709099
69450296557390.288053113-107094.288053113
70418799511399.862643932-92600.8626439321
71247405473789.568911471-226384.568911471
72378519288149.79818740490369.201812596
73326638483149.487671292-156511.487671292
74328233421381.910577223-93148.9105772232
75386225512060.322552804-125835.322552804
76283662432645.735436413-148983.735436413
77370225505506.252056535-135281.252056535
78269236398562.658617034-129326.658617034
79365732359925.0660385175806.93396148327
80420383404043.27898213516339.7210178654
81345811369314.635275403-23503.6352754030
82431809526995.841704156-95186.841704156
83418876573885.175344989-155009.175344989
84297476322970.131564323-25494.1315643225
85416776476489.672847631-59713.672847631
86357257558127.122933435-200870.122933435
87458343425095.85328438133247.1467156188
88388386479385.521730625-90999.5217306248
89358934479849.515661453-120915.515661453
90407560477950.488095989-70390.4880959893
91392558450294.897808363-57736.8978083634
92373177479523.629843297-106346.629843297
93428370344349.23918790184020.760812099
94369419598703.273244021-229284.273244021
95358649297517.10513374461131.8948662557
96376641483807.188451235-107166.188451235
97467427501521.584158756-34094.5841587563
98364885367173.539177131-2288.53917713132
99436230536386.337095619-100156.337095619
100329118439357.042199252-110239.042199252


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
1211.03365768149100e-235.16828840745502e-24
1314.3972153837629e-262.19860769188145e-26
1411.14351310777588e-295.71756553887939e-30
1517.55585737875157e-303.77792868937579e-30
1616.45088662103196e-333.22544331051598e-33
1711.01687698584084e-325.08438492920419e-33
1812.8910190717638e-321.4455095358819e-32
1919.96091331591423e-334.98045665795712e-33
2012.21708387372196e-321.10854193686098e-32
2112.95603756716165e-331.47801878358082e-33
2213.07178350391206e-331.53589175195603e-33
2311.23962362898117e-326.19811814490587e-33
2411.47432999889922e-327.37164999449612e-33
2519.69560999776474e-324.84780499888237e-32
2615.56186515366276e-312.78093257683138e-31
2711.08992633539166e-305.4496316769583e-31
2811.64417159640369e-328.22085798201845e-33
2915.49411826016316e-352.74705913008158e-35
3013.9207006321905e-341.96035031609525e-34
3111.04433453769427e-345.22167268847135e-35
3214.47171203669753e-342.23585601834877e-34
3313.6829001116371e-351.84145005581855e-35
3415.39627209937767e-352.69813604968883e-35
3511.52261367231594e-347.61306836157972e-35
3613.57016930648555e-341.78508465324277e-34
3711.5098303432711e-347.5491517163555e-35
3815.16597444015038e-362.58298722007519e-36
3911.10887279251252e-355.5443639625626e-36
4019.07230047384484e-364.53615023692242e-36
4115.308462535336e-352.654231267668e-35
4215.99577336897223e-352.99788668448612e-35
4311.31534214308983e-346.57671071544916e-35
4417.24078225651604e-343.62039112825802e-34
4515.8620444786847e-332.93102223934235e-33
4612.81251957565651e-321.40625978782826e-32
4712.63554178373817e-311.31777089186909e-31
4811.52315364653016e-307.61576823265078e-31
4911.41383771932465e-297.06918859662327e-30
5014.12353287172088e-302.06176643586044e-30
5113.23042533210758e-301.61521266605379e-30
5211.45070112321546e-297.25350561607732e-30
5311.34994596238924e-286.74972981194619e-29
5417.7554826760849e-293.87774133804245e-29
5512.83482196046456e-281.41741098023228e-28
5611.50735635390603e-277.53678176953016e-28
5719.2898983945558e-284.6449491972779e-28
5811.02446898464703e-265.12234492323514e-27
5911.07064862165869e-255.35324310829343e-26
6019.61111456941666e-254.80555728470833e-25
6111.42894806349323e-247.14474031746614e-25
6211.79838275935356e-248.9919137967678e-25
6311.59668195237578e-237.98340976187892e-24
6411.3209383008275e-226.6046915041375e-23
6511.47852263776774e-217.3926131888387e-22
6611.29321775300035e-206.46608876500176e-21
6714.55722500861092e-212.27861250430546e-21
6814.83998474363256e-202.41999237181628e-20
6913.41717761150813e-191.70858880575407e-19
7013.24169005790796e-181.62084502895398e-18
7111.93373648727021e-179.66868243635106e-18
7212.13871301685578e-161.06935650842789e-16
7317.4817489406072e-163.7408744703036e-16
740.9999999999999967.17712292687307e-153.58856146343654e-15
750.9999999999999725.53706665309456e-142.76853332654728e-14
760.99999999999991.98098966807513e-139.90494834037564e-14
770.999999999999131.73864928834232e-128.6932464417116e-13
780.9999999999991541.69161443940564e-128.4580721970282e-13
790.999999999991461.70789230599243e-118.53946152996215e-12
800.9999999999905161.89670228256507e-119.48351141282535e-12
810.9999999998594992.81003098029131e-101.40501549014565e-10
820.9999999996024117.95178013079966e-103.97589006539983e-10
830.9999999944856621.10286763175754e-085.5143381587877e-09
840.9999999174703571.65059286855986e-078.2529643427993e-08
850.9999988987082142.20258357117191e-061.10129178558596e-06
860.9999919695432361.60609135289339e-058.03045676446694e-06
870.9999911210895431.77578209139569e-058.87891045697844e-06
880.9999348066234050.0001303867531897496.51933765948747e-05


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level771NOK
5% type I error level771NOK
10% type I error level771NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/10fn2h1291364961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/10fn2h1291364961.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/1845n1291364961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/1845n1291364961.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/21dn81291364961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/21dn81291364961.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/31dn81291364961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/31dn81291364961.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/41dn81291364961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/41dn81291364961.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/51dn81291364961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/51dn81291364961.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/6u44t1291364961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/6u44t1291364961.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/74w3w1291364961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/74w3w1291364961.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/84w3w1291364961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/84w3w1291364961.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/94w3w1291364961.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291364853i6994gqeqncejqd/94w3w1291364961.ps (open in new window)


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