Home » date » 2008 » Dec » 14 »

no lineair trend and no seisonal dummies

*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 06:33:27 -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/t1229261711k62h2k3mcim0a3x.htm/, Retrieved Sun, 14 Dec 2008 14:35:11 +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/t1229261711k62h2k3mcim0a3x.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 «
11554.5 180144 13182.1 173666 14800.1 165688 12150.7 161570 14478.2 156145 13253.9 153730 12036.8 182698 12653.2 200765 14035.4 176512 14571.4 166618 15400.9 158644 14283.2 159585 14485.3 163095 14196.3 159044 15559.1 155511 13767.4 153745 14634 150569 14381.1 150605 12509.9 179612 12122.3 194690 13122.3 189917 13908.7 184128 13456.5 175335 12441.6 179566 12953 181140 13057.2 177876 14350.1 175041 13830.2 169292 13755.5 166070 13574.4 166972 12802.6 206348 11737.3 215706 13850.2 202108 15081.8 195411 13653.3 193111 14019.1 195198 13962 198770 13768.7 194163 14747.1 190420 13858.1 189733 13188 186029 13693.1 191531 12970 232571 11392.8 243477 13985.2 227247 14994.7 217859 13584.7 208679 14257.8 213188 13553.4 216234 14007.3 213586 16535.8 209465 14721.4 204045 13664.6 200237 16805.9 203666 13829.4 241476 13735.6 260307 15870.5 243324 15962.4 244460 15744.1 233575 16083.7 237217 14863.9 235243 15533.1 230354 17473.1 227184 15925.5 221678 15573.7 217142 17495 219452 14155.8 256446 14913.9 265845 17250.4 248624 15879.8 241114 17647.8 229245 17749.9 231805 17111.8 219277 16934.8 219313 20280 212610 16238.2 214771 17896.1 211142 18089.3 211457 15660 240048 16162.4 240636 17850.1 230580 18520.4 208795 18524.7 197922 16843.7 194596
 
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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
invoer[t] = + 10341.3857439156 + 0.0218660314107394werkloosheid[t] + e[t]


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


Multiple Linear Regression - Regression Statistics
Multiple R0.352454518886459
R-squared0.124224187883486
Adjusted R-squared0.113543995052796
F-TEST (value)11.6312682601134
F-TEST (DF numerator)1
F-TEST (DF denominator)82
p-value0.00100870697995736
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1720.29808344907
Sum Squared Residuals242672890.665319


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
111554.514280.4201063718-2725.92010637183
213182.114138.7719548930-956.67195489305
314800.113964.3247562982835.775243701831
412150.713874.2804389487-1723.58043894874
514478.213755.6572185455722.542781454517
613253.913702.8507526885-448.950752688548
712036.814336.2659505948-2299.46595059485
812653.214731.3195400927-2078.11954009267
914035.414201.002680288-165.602680288013
1014571.413984.6601655102586.739834489842
1115400.913810.30043104091590.59956895908
1214283.213830.8763665984452.323633401574
1314485.313907.6261368501577.673863149877
1414196.313819.0468436052377.253156394782
1515559.113741.79415463111817.30584536893
1613767.413703.178743159764.2212568402906
171463413633.73222739921000.2677726008
1814381.113634.51940453746.580595470013
1912509.914268.7873776613-1758.88737766130
2012122.314598.4833992724-2476.18339927243
2113122.314494.1168313490-1371.81683134897
2213908.714367.5343755122-458.834375512203
2313456.514175.2663613176-718.766361317572
2412441.614267.7815402164-1826.18154021641
251295314302.1986736569-1349.19867365691
2613057.214230.8279471323-1173.62794713226
2714350.114168.8377480828181.262251917185
2813830.214043.1299335025-212.929933502473
2913755.513972.6775802971-217.177580297072
3013574.413992.4007406296-418.000740629559
3112802.614853.3975934588-2050.79759345883
3211737.315058.0199154005-3320.71991540053
3313850.214760.6856202773-910.485620277297
3415081.814614.2488079196467.551192080423
3513653.314563.9569356749-910.656935674876
3614019.114609.5913432291-590.491343229088
371396214687.6968074283-725.69680742825
3813768.714586.9600007190-818.260000718973
3914747.114505.1154451486241.984554851424
4013858.114490.0934815694-631.993481569398
411318814409.1017012240-1221.10170122402
4213693.114529.4086060459-836.308606045907
431297015426.7905351427-2456.79053514265
4411392.815665.2614737082-4272.46147370818
4513985.215310.3757839119-1325.17578391187
4614994.715105.0974810279-110.397481027853
4713584.714904.3673126773-1319.66731267727
4814257.815002.9612483083-745.161248308291
4913553.415069.5651799854-1516.16517998540
5014007.315011.6639288098-1004.36392880977
5116535.814921.55401336611614.24598663389
5214721.414803.0401231199-81.6401231199005
5313664.614719.7742755078-1055.17427550780
5416805.914794.75289721522011.14710278477
5513829.415621.5075448553-1792.10754485529
5613735.616033.2667823509-2297.66678235092
5715870.515661.9159709023208.584029097668
5815962.415686.7557825849275.644217415067
5915744.115448.7440306790295.355969320966
6016083.715528.3801170769555.319882923054
6114863.915485.2165710721-621.316571072148
6215533.115378.3135435050154.786456494958
6317473.115308.9982239332164.101776067
6415925.515188.6038549855736.896145014532
6515573.715089.4195365064484.280463493647
661749515139.93006906522355.06993093484
6714155.815948.8420350741-1793.04203507406
6814913.916154.3608643036-1240.46086430359
6917250.415777.80593737931472.59406262075
7015879.815613.5920414846266.207958515401
7117647.815354.06411467052293.73588532947
7217749.915410.04115508202339.85884491798
7317111.815136.10351356831975.69648643172
7416934.815136.89069069911797.90930930093
752028014990.32268215295289.67731784712
7616238.215037.57517603151200.62482396851
7717896.114958.22334804192937.87665195808
7818089.314965.11114793633124.1888520637
791566015590.282852000769.7171479992499
8016162.415603.1400784703559.259921529735
8117850.115383.25526660392466.84473339613
8218520.414906.90377232093613.49622767909
8318524.714669.15441279193855.54558720806
8416843.714596.42799231982247.27200768018


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.3689487644492470.7378975288984950.631051235550753
60.2616203324722670.5232406649445340.738379667527733
70.1544979078366870.3089958156733750.845502092163313
80.1254240658980450.2508481317960890.874575934101955
90.1010290935248770.2020581870497550.898970906475123
100.08495494786726750.1699098957345350.915045052132732
110.09113161969330640.1822632393866130.908868380306694
120.05439981551433660.1087996310286730.945600184485663
130.03408932212845450.06817864425690890.965910677871545
140.01854660544274180.03709321088548350.981453394557258
150.01662472962153360.03324945924306720.983375270378466
160.01062002024381180.02124004048762360.989379979756188
170.005664868096140840.01132973619228170.99433513190386
180.002965797141611330.005931594283222650.997034202858389
190.001788429579816420.003576859159632840.998211570420184
200.001051652032660300.002103304065320600.99894834796734
210.0006348848229709050.001269769645941810.99936511517703
220.0004777720397787690.0009555440795575370.999522227960221
230.0002286938027141160.0004573876054282320.999771306197286
240.0001585305749596030.0003170611499192070.99984146942504
258.10193440992273e-050.0001620386881984550.9999189806559
264.07536771759618e-058.15073543519236e-050.999959246322824
272.99827972827524e-055.99655945655047e-050.999970017202717
281.35620895968121e-052.71241791936243e-050.999986437910403
296.01379645653018e-061.20275929130604e-050.999993986203544
302.79352468054690e-065.58704936109381e-060.99999720647532
312.54323904516006e-065.08647809032012e-060.999997456760955
322.56633217247007e-065.13266434494014e-060.999997433667828
334.63878272254273e-069.27756544508546e-060.999995361217278
342.54127187642527e-055.08254375285053e-050.999974587281236
351.81297408992561e-053.62594817985122e-050.9999818702591
361.60000599984670e-053.20001199969339e-050.999983999940002
371.43141900879515e-052.8628380175903e-050.999985685809912
381.09566436415800e-052.19132872831601e-050.999989043356358
391.37422945245421e-052.74845890490841e-050.999986257705475
401.10798445726165e-052.2159689145233e-050.999988920155427
411.42840390632135e-052.8568078126427e-050.999985715960937
421.80269810085475e-053.60539620170949e-050.999981973018991
432.14153951718114e-054.28307903436228e-050.999978584604828
448.93547760008823e-050.0001787095520017650.999910645224
450.0001614260459440120.0003228520918880240.999838573954056
460.0004065506883788320.0008131013767576630.999593449311621
470.0007253641715060760.001450728343012150.999274635828494
480.001178088189255770.002356176378511540.998821911810744
490.002568995054188220.005137990108376440.997431004945812
500.005619899092781650.01123979818556330.994380100907218
510.02302698929639380.04605397859278750.976973010703606
520.04565333169389470.09130666338778930.954346668306105
530.2649037191663680.5298074383327350.735096280833632
540.4482561086610230.8965122173220470.551743891338977
550.5365211109665160.9269577780669670.463478889033484
560.5324410429439780.9351179141120430.467558957056022
570.5583390117036740.8833219765926530.441660988296326
580.566710948371650.86657810325670.43328905162835
590.56608509936070.86782980127860.4339149006393
600.5552028047990440.8895943904019120.444797195200956
610.5886141699779370.8227716600441250.411385830022063
620.6012162671938470.7975674656123060.398783732806153
630.6597905535557750.6804188928884510.340209446444225
640.678428294334980.643143411330040.32157170566502
650.7702321458240560.4595357083518880.229767854175944
660.77645290454840.4470941909031990.223547095451599
670.8109074299736510.3781851400526980.189092570026349
680.7719342563242620.4561314873514760.228065743675738
690.7722631879349540.4554736241300930.227736812065047
700.7312526219107950.537494756178410.268747378089205
710.7135314593187410.5729370813625180.286468540681259
720.7045290529523950.590941894095210.295470947047605
730.6447711988669650.710457602266070.355228801133035
740.5782578679623170.8434842640753670.421742132037683
750.9151032386582920.1697935226834150.0848967613417077
760.9163987104164090.1672025791671830.0836012895835914
770.8605635187983320.2788729624033360.139436481201668
780.7862206980664180.4275586038671640.213779301933582
790.7227313691213430.5545372617573140.277268630878657


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level320.426666666666667NOK
5% type I error level380.506666666666667NOK
10% type I error level400.533333333333333NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229261711k62h2k3mcim0a3x/100jnf1229261596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229261711k62h2k3mcim0a3x/100jnf1229261596.ps (open in new window)


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


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


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


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229261711k62h2k3mcim0a3x/65cgk1229261596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229261711k62h2k3mcim0a3x/65cgk1229261596.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229261711k62h2k3mcim0a3x/7ay3n1229261596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229261711k62h2k3mcim0a3x/7ay3n1229261596.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229261711k62h2k3mcim0a3x/8f0w01229261596.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229261711k62h2k3mcim0a3x/8f0w01229261596.ps (open in new window)


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


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by