Home » date » 2010 » Dec » 01 »

ws7beurscompetitief

*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: Wed, 01 Dec 2010 19:10:51 +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/01/t12912305939xoyypzvtm31ues.htm/, Retrieved Wed, 01 Dec 2010 20:10:03 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues.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 «
162556 807 213118 6282154 29790 444 81767 4321023 87550 412 153198 4111912 54660 315 126942 1491348 42634 168 157214 1629616 45187 267 234817 1926517 37704 228 60448 983660 16275 129 47818 1443586 18014 393 -1710 1405225 24811 280 95350 929118 21950 265 114337 856956 37597 234 37884 992426 12988 73 82340 857217 22330 67 79801 711969 27664 236 74996 657954 3369 26 87161 688779 11819 70 106113 574339 6984 40 80570 741409 4519 42 102129 597793 5336 80 112477 697458 2365 83 191778 550608 3689 25 101792 377305 4891 49 210568 370837 7489 149 136996 430866 3160 90 108094 530670 4150 136 134759 518365 7285 97 188873 491303 1134 63 146216 527021 4658 114 156608 233773 9327 85 87419 387699 5565 43 94355 493408 3122 25 94670 414462 7561 77 82425 364304 2053 44 100423 397144 4036 85 100269 424898 3045 49 27330 202055 1765 20 77623 247060 666 13 117869 339836 4677 66 90131 426280 5692 68 64239 357312 2949 40 82903 378509 6533 29 126910 364839 3055 30 60247 376641 1414 22 70184 33 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 time11 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Wealth[t] = + 119279.402431916 + 21.8351832830495Costs[t] + 2901.79845530046Orders[t] + 0.586265162789953Dividends[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)119279.40243191692573.1468041.28850.2011560.100578
Costs21.83518328304953.9645065.507700
Orders2901.79845530046677.5042934.28314.9e-052.5e-05
Dividends0.5862651627899531.0091860.58090.5628630.281431


Multiple Linear Regression - Regression Statistics
Multiple R0.917211289346806
R-squared0.84127654930523
Adjusted R-squared0.835539557111444
F-TEST (value)146.640699671220
F-TEST (DF numerator)3
F-TEST (DF denominator)83
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation364153.911839319
Sum Squared Residuals11006469935153.9


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
162821546135414.46858224146739.531417759
243210232106085.170153212214937.82984679
341119123316305.31285578795606.68714422
414913482301278.70639793-809930.706397927
516296161629871.83831478-255.83831478335
619265172018391.04373914-91874.043739143
79836601639601.75730484-655941.757304844
81443586877013.038651594566572.961348406
914052251652022.67359748-246797.673597477
109291181529436.08562381-600318.085623806
118569561434570.06606739-577614.066067387
129924261641447.69629217-649021.696292168
13857217662979.12365322194237.876346780
14711969848064.087903342-136095.087903342
156579541452119.8903737-794165.8903737
16688779319388.352604256369390.647395744
17574339642685.68074444-68346.6807444396
18741409435083.644858738306325.355141262
19597793399702.805621211198090.194378789
20697458533877.16356943163580.836430570
21550608524201.64307579726406.3569242028
22377305332051.45839631145253.5416036887
23370837491712.090977388-120875.090977388
24430866795487.042120014-364621.042120014
25530670512812.1890900117857.8109099897
26518365683544.510049844-165179.510049844
27491303670552.822904702-179249.822904702
28527021412575.150001318114445.849998682
29233773643606.524682821-409833.524682821
30387699620839.739879392-233140.739879392
31493408420886.58041505172521.4195849485
32414462315495.52898543298966.4710145677
33364304556136.61033615-191832.610336150
34397144350660.67218809246483.3278119083
35424898512843.292470628-87945.2924706279
36202055343978.286737573-141923.286737573
37247060261362.130763752-14302.1307637515
38339836240647.50289022199188.4971097786
39426280465761.918083989-39481.9180839893
40357312478548.648431928-121236.648431928
41378509348346.43693642230162.5630635779
42364839420483.721833464-55644.721833464
43376641308360.55828325268280.4417167484
44330546255140.35179600775405.6482039926
45317892218520.5684947299371.4315052798
46307528281392.30726674926135.6927332505
47125390363340.464280717-237950.464280717
48510834267750.624316068243083.375683932
49249898262271.334326955-12373.3343269545
50158492318239.902048171-159747.902048171
51289513252737.06403000336775.9359699965
52378049200747.09755918177301.90244082
53214215245238.655461937-31023.6554619375
54480382291117.580298461189264.419701539
55353058263295.51036499989762.4896350008
56217193302403.520462879-85210.5204628786
57316176156442.377758688159733.622241312
58330068204794.290290955125273.709709045
59297413216098.51304291881314.4869570822
60314806170964.421182253143841.578817747
61333210200522.860252435132687.139747565
62352108274274.46836051277833.5316394877
63409642552832.085248321-143190.085248321
64269587231647.37454774537939.6254522548
65300962188318.141432361112643.858567639
66325479216164.947380128109314.052619872
67316155170153.511418226146001.488581774
68318574164969.201902695153604.798097305
69343613247977.68870816695635.3112918343
70306948169369.142052431137578.857947569
71291841271879.06288094119961.9371190595
72319210182509.360546136136700.639453864
73340968188540.25993277152427.74006723
74313164167185.401118912145978.598881088
75316647216507.477049943100139.522950057
76322031198558.205577967123472.794422033
77308336275139.12133620633196.8786637945
78283910269204.5841865614705.41581344
79438493915335.076113629-476842.076113629
80230621296986.893442749-66365.893442749
81278990254195.73498780524794.2650121954
82286963379296.597642448-92333.5976424476
83269753221827.25173401247925.7482659881
84448243328516.137865112119726.862134888
85290476238613.83022855851862.169771442
86-83265559790.463486561-643055.463486561
87215362508084.871142766-292722.871142766


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.9999999999998223.55120587379173e-131.77560293689587e-13
813.95895057102111e-171.97947528551056e-17
914.59634540170336e-262.29817270085168e-26
1011.58986651732619e-277.94933258663095e-28
1113.78544010479121e-281.89272005239561e-28
1216.50071673623598e-283.25035836811799e-28
1311.46096810066471e-297.30484050332357e-30
1413.50071810706007e-291.75035905353004e-29
1511.14229450721315e-295.71147253606574e-30
1613.52431337140946e-311.76215668570473e-31
1718.22570258216168e-314.11285129108084e-31
1816.67811223860382e-343.33905611930191e-34
1912.0050685749502e-341.0025342874751e-34
2011.74976778705464e-368.7488389352732e-37
2111.40727592010912e-357.0363796005456e-36
2211.19605331367845e-345.98026656839227e-35
2313.69649144541978e-351.84824572270989e-35
2411.65856971604540e-348.29284858022698e-35
2513.08651513651337e-341.54325756825669e-34
2611.26315425421803e-336.31577127109013e-34
2718.54969255949084e-334.27484627974542e-33
2815.92093833158143e-322.96046916579072e-32
2912.58762243026473e-341.29381121513237e-34
3011.33205873213767e-336.66029366068835e-34
3111.13757385650665e-335.68786928253325e-34
3217.13952185974708e-333.56976092987354e-33
3313.32650705944629e-321.66325352972314e-32
3412.83082453492643e-311.41541226746322e-31
3511.68276211599889e-308.41381057999446e-31
3611.43051819965174e-297.15259099825872e-30
3715.0692392910498e-292.5346196455249e-29
3818.41528363429975e-294.20764181714988e-29
3912.58657078873766e-281.29328539436883e-28
4014.47284654580559e-282.23642327290280e-28
4112.73879860556358e-271.36939930278179e-27
4211.87342665700691e-269.36713328503454e-27
4313.26548871633738e-261.63274435816869e-26
4412.51272530537169e-251.25636265268584e-25
4511.86322292629407e-249.31611463147035e-25
4611.30904224303498e-236.54521121517492e-24
4717.79982579019146e-243.89991289509573e-24
4815.206287457898e-242.603143728949e-24
4912.13472232813641e-231.06736116406821e-23
5016.68813329732947e-233.34406664866473e-23
5114.90805846056538e-222.45402923028269e-22
5211.07333717468823e-215.36668587344117e-22
5318.72034268917672e-224.36017134458836e-22
5413.07937476036408e-211.53968738018204e-21
5511.09302964624663e-205.46514823123317e-21
5611.68287914556258e-208.4143957278129e-21
5711.49381293721967e-197.46906468609834e-20
5811.30875679923841e-186.54378399619206e-19
5917.85564798470758e-183.92782399235379e-18
6016.58078593332526e-173.29039296666263e-17
6114.9307696682389e-162.46538483411945e-16
620.9999999999999992.34801982755305e-151.17400991377652e-15
630.9999999999999921.55968676591284e-147.79843382956418e-15
640.9999999999999862.72036920766179e-141.36018460383089e-14
650.9999999999998872.26882128013848e-131.13441064006924e-13
660.9999999999995419.17157861154847e-134.58578930577423e-13
670.9999999999963377.32553665072463e-123.66276832536232e-12
680.999999999973285.34410709795205e-112.67205354897602e-11
690.9999999999200121.59975133318336e-107.99875666591682e-11
700.9999999993814341.23713117032138e-096.18565585160692e-10
710.9999999959037248.19255216934098e-094.09627608467049e-09
720.999999969762766.04744818360933e-083.02372409180467e-08
730.9999998099622323.80075536010676e-071.90037768005338e-07
740.9999987227927032.55441459423084e-061.27720729711542e-06
750.99999186839041.62632191982958e-058.1316095991479e-06
760.9999512322886279.75354227467746e-054.87677113733873e-05
770.9997235923542530.0005528152914948350.000276407645747417
780.999098296012440.001803407975118240.000901703987559118
790.995760363946170.008479272107658140.00423963605382907
800.9906766908290870.01864661834182540.00932330917091271


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


http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/1hxin1291230639.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/1hxin1291230639.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/2r6hq1291230639.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/2r6hq1291230639.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/3r6hq1291230639.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/3r6hq1291230639.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/4r6hq1291230639.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/4r6hq1291230639.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/52fzt1291230639.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/52fzt1291230639.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/62fzt1291230639.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/62fzt1291230639.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/7d6gw1291230639.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/7d6gw1291230639.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/8d6gw1291230639.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/8d6gw1291230639.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/9d6gw1291230639.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t12912305939xoyypzvtm31ues/9d6gw1291230639.ps (open in new window)


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