Home » date » 2008 » Dec » 20 »

voeding

*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: Sat, 20 Dec 2008 01:18:41 -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/20/t1229761215w5pbtvy40fiynul.htm/, Retrieved Sat, 20 Dec 2008 09:20:16 +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/20/t1229761215w5pbtvy40fiynul.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 «
99.2 11554.5 93.6 13182.1 104.2 14800.1 95.3 12150.7 102.7 14478.2 103.1 13253.9 100 12036.8 107.2 12653.2 107 14035.4 119 14571.4 110.4 15400.9 101.7 14283.2 102.4 14485.3 98.8 14196.3 105.6 15559.1 104.4 13767.4 106.3 14634 107.2 14381.1 108.5 12509.9 106.9 12122.3 114.2 13122.3 125.9 13908.7 110.6 13456.5 110.5 12441.6 106.7 12953 104.7 13057.2 107.4 14350.1 109.8 13830.2 103.4 13755.5 114.8 13574.4 114.3 12802.6 109.6 11737.3 118.3 13850.2 127.3 15081.8 112.3 13653.3 114.9 14019.1 108.2 13962 105.4 13768.7 122.1 14747.1 113.5 13858.1 110 13188 125.3 13693.1 114.3 12970 115.6 11392.8 127.1 13985.2 123 14994.7 122.2 13584.7 126.4 14257.8 112.7 13553.4 105.8 14007.3 120.9 16535.8 116.3 14721.4 115.7 13664.6 127.9 16405.9 108.3 13829.4 121.1 13735.6 128.6 15870.5 123.1 15962.4 127.7 15744.1 126.6 16083.7 118.4 14863.9 110 15533.1 129.6 17473.1 115.8 15925.5 125.9 15573.7 128.4 17495 114 14155.8 125.6 14913.9 128.5 17250.4 136.6 15879.8 133.1 17647.8 124.6 17749.9
 
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 time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
Voeding[t] = + 54.6615090162678 + 0.00424077980152477Invoer[t] -4.24170203087669M1[t] -10.8019810570597M2[t] -5.75580174684328M3[t] -5.02812449156892M4[t] -4.28035441481005M5[t] + 0.355880145944776M6[t] -0.106866011017156M7[t] + 5.56293735311408M8[t] + 3.6764790784733M9[t] + 7.26159013005267M10[t] + 1.47250192823431M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)54.66150901626789.8172765.56791e-060
Invoer0.004240779801524770.0006396.641700
M1-4.241702030876693.827168-1.10830.2722240.136112
M2-10.80198105705973.782844-2.85550.0059220.002961
M3-5.755801746843283.776136-1.52430.1327870.066394
M4-5.028124491568923.775473-1.33180.1880530.094026
M5-4.280354414810053.762773-1.13760.2599060.129953
M60.3558801459447763.7438550.09510.9245920.462296
M7-0.1068660110171563.907981-0.02730.9782760.489138
M85.562937353114083.9653791.40290.1658940.082947
M93.67647907847333.7446410.98180.3302090.165104
M107.261590130052673.7475491.93770.0574520.028726
M111.472501928234313.7444970.39320.6955560.347778


Multiple Linear Regression - Regression Statistics
Multiple R0.803984659839801
R-squared0.64639133325772
Adjusted R-squared0.57447092646268
F-TEST (value)8.987592841345
F-TEST (DF numerator)12
F-TEST (DF denominator)59
p-value1.78641912373934e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.48454499780201
Sum Squared Residuals2480.91010588263


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
199.299.4198972021089-0.219897202108887
293.699.7619113808878-6.16191138088777
3104.2111.669672409971-7.46967240997123
495.3101.161827659086-5.86182765908587
5102.7111.780012723894-9.08001272389364
6103.1111.224260573642-8.1242605736417
7100105.600061320244-5.60006132024396
8107.2113.883881354035-6.68388135403507
9107117.859028921062-10.8590289210618
10119123.717197946258-4.71719794625846
11110.4121.445836589805-11.0458365898049
12101.7115.233415077406-13.5334150774064
13102.4111.848774644418-9.44877464441781
1498.8104.062910255594-5.26291025559419
15105.6114.888424279329-9.28842427932855
16104.4108.017896364211-3.61789636421096
17106.3112.440726216971-6.1407262169712
18107.2116.004467565920-8.8044675659204
19108.5107.6063742443450.893625755654673
20106.9111.632451357406-4.73245135740556
21114.2113.9867728842900.213227115710451
22125.9120.9068331717884.993166828212
23110.6113.200064343720-2.60006434372015
24110.5107.4235949949183.07640500508165
25106.7105.3506277545411.34937224545859
26104.799.23223798367735.46776201632267
27107.4109.761321499285-2.36132149928508
28109.8108.2842173357471.51578266425327
29103.4108.715201161332-5.31520116133168
30114.8112.5834305000302.21656949996962
31114.3108.8476504922525.45234950774837
32109.6109.999751133819-0.399751133818532
33118.3117.0736365018191.22636349818056
34127.3125.8816919569571.41830804304328
35112.3114.034649808660-1.73464980866022
36114.9114.1134251318240.786574868176337
37108.2109.62957457428-1.42957457427991
38105.4102.2495528124623.1504471875378
39122.1111.44491108049010.6550889195096
40113.5108.4025350922095.09746490779074
41110106.3085586239663.69144137603362
42125.3113.08681106247112.2131889375286
43114.3109.5575570310274.74244296897313
44115.6108.5388024921937.06119750780676
45127.1117.6461417750259.45385822497471
46123125.512320036244-2.51232003624391
47122.2113.7437323142768.45626768572438
48126.4115.12569927044811.2743007295524
49112.7107.8967919473774.80320805262312
50105.8103.2614028731062.53859712689399
51120.9119.0303939114781.86960608852223
52116.3112.0636002948664.2363997051344
53115.7108.3297142773737.37028572262692
54127.9124.5911985080483.30880149195223
55108.3113.202083192457-4.90208319245726
56121.1118.4741014112052.62589858879451
57128.6125.641283934842.95871606516006
58123.1129.616122650179-6.51612265017943
59127.7122.9012722176884.79872778231179
60126.6122.8689391100523.73106088994828
61118.4113.4543338772754.94566612272491
62110109.7319846942730.268015305727493
63129.6123.0052768194476.59472318055306
64115.8117.169923253882-1.36992325388158
65125.9116.4257869964649.47421300353598
66128.4129.209831789888-0.809831789888386
67114114.586273719675-0.586273719674945
68125.6123.4710122513422.12898774865788
69128.5131.493135982964-2.99313598296397
70136.6129.2658342385737.33416576142652
71133.1130.9744447258512.12555527414909
72124.6129.934926415352-5.33492641535229


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1833826953009460.3667653906018920.816617304699054
170.1205648573493070.2411297146986140.879435142650693
180.07616741649810230.1523348329962050.923832583501898
190.1350973131967730.2701946263935470.864902686803227
200.0872587051728790.1745174103457580.912741294827121
210.2050365922553920.4100731845107840.794963407744608
220.2657446602584320.5314893205168640.734255339741568
230.231363570426040.462727140852080.76863642957396
240.3578472799315710.7156945598631410.64215272006843
250.3516284775031640.7032569550063280.648371522496836
260.4231796321360460.8463592642720920.576820367863954
270.4481542294589260.8963084589178530.551845770541074
280.5411279656407990.9177440687184030.458872034359201
290.6255238375213010.7489523249573980.374476162478699
300.7309661418641760.5380677162716490.269033858135824
310.7897625585027970.4204748829944050.210237441497203
320.7852945062061130.4294109875877740.214705493793887
330.804820480171240.3903590396575190.195179519828759
340.7593261734636460.4813476530727080.240673826536354
350.8427956383547940.3144087232904110.157204361645206
360.8893532101475640.2212935797048730.110646789852437
370.902007607954020.1959847840919590.0979923920459795
380.8817329032332730.2365341935334550.118267096766727
390.9479904185443880.1040191629112240.0520095814556122
400.9430684480531620.1138631038936760.0569315519468382
410.9633208233730250.07335835325394920.0366791766269746
420.9794205649850260.04115887002994790.0205794350149739
430.9770720912602820.04585581747943620.0229279087397181
440.96921405338090.06157189323820040.0307859466191002
450.9712694363194850.05746112736102960.0287305636805148
460.9630306924669320.07393861506613510.0369693075330676
470.954410466394880.09117906721024010.0455895336051201
480.970040252949860.05991949410027980.0299597470501399
490.9530397211661770.09392055766764620.0469602788338231
500.9189871153472630.1620257693054740.0810128846527369
510.9096821862311470.1806356275377060.0903178137688528
520.8635518158665340.2728963682669320.136448184133466
530.8524619789604270.2950760420791460.147538021039573
540.7623978402543820.4752043194912360.237602159745618
550.6771198135222340.6457603729555320.322880186477766
560.5327592705616660.9344814588766680.467240729438334


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.0487804878048781OK
10% type I error level90.219512195121951NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/109v1c1229761109.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/109v1c1229761109.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/1v1un1229761108.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/1v1un1229761108.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/2gc251229761108.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/2gc251229761108.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/386bc1229761108.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/386bc1229761108.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/4zwup1229761108.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/4zwup1229761108.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/5r0zf1229761108.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/5r0zf1229761108.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/6j2k91229761109.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/6j2k91229761109.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/7yh2k1229761109.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/7yh2k1229761109.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/8jf4u1229761109.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/8jf4u1229761109.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/9dv941229761109.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229761215w5pbtvy40fiynul/9dv941229761109.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