Home » date » 2010 » Dec » 18 »

*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, 18 Dec 2010 15:03:03 +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/18/t12926849268ps5qod9f32h70x.htm/, Retrieved Sat, 18 Dec 2010 16:08:48 +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/18/t12926849268ps5qod9f32h70x.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 «
13.193 0.651 3.063 5.951 15.234 0.736 3.547 6.789 14.718 0.878 3.240 6.302 16.961 0.916 3.708 6.961 13.945 0.724 3.337 6.162 15.876 0.841 4.104 7.534 16.226 1.028 4.846 7.462 18.316 0.994 4.590 8.894 16.748 0.855 3.917 7.734 17.904 0.889 4.376 8.968 17.209 1.117 4.312 8.383 18.950 1.132 4.941 9.790 17.225 0.899 4.659 9.656 18.710 0.944 5.227 10.440 17.236 1.167 4.933 9.820 18.687 1.089 5.381 10.947 17.580 0.970 5.472 10.439 19.568 1.151 6.405 12.289 17.381 1.246 5.622 11.303 19.580 1.583 6.229 12.240 17.260 1.120 5.671 11.392 18.661 1.063 5.606 11.120 15.658 1.015 4.516 9.597 18.674 1.175 5.483 10.692 15.908 0.882 4.985 9.217 17.475 0.911 5.332 9.371 17.725 1.076 5.377 9.526 19.562 1.147 5.948 10.837 16.368 0.946 5.308 9.749 19.555 1.032 6.721 9.939 17.743 1.090 5.840 9.309 19.867 1.131 6.152 10.316 15.703 0.870 5.184 8.546 19.324 1.113 6.610 9.885 18.162 1.172 6.417 9.266 19.074 1.147 6.529 9.978 15.323 0.891 5.412 8.685 19.704 1.036 6.807 10.066 18.375 1.204 6.817 9.668 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 time7 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
huis[t] = + 7.45966125213115 -0.533844764417756villa[t] + 0.826992844213572app[t] + 0.668882973188407grond[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7.459661252131150.7713449.67100
villa-0.5338447644177560.163834-3.25840.0015360.000768
app0.8269928442135720.094778.726300
grond0.6688829731884070.06326210.573200


Multiple Linear Regression - Regression Statistics
Multiple R0.810470701148701
R-squared0.656862757420467
Adjusted R-squared0.646464659160481
F-TEST (value)63.171432025048
F-TEST (DF numerator)3
F-TEST (DF denominator)99
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.94576717537569
Sum Squared Residuals88.5530794517931


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
113.19313.6257299657656-0.432729965765566
215.23414.54114162892130.692858371078686
314.71813.88570286125770.83229713874233
416.96114.69324329063292.26775670936709
513.94513.9544896446203-0.00948964462034433
615.87615.44404075790980.431959242090229
716.22615.90968090330060.316319096699443
818.31616.67396187477791.64203812522212
916.74815.41569586397771.33230413602234
1017.90416.6025364463961.30146355360401
1117.20916.03659575876391.17240424123615
1218.9517.4898849295841.46011507041599
1317.22517.2914284592179-0.0664284592178717
1418.7118.26154163131210.448458368687907
1517.23617.4846509092713-0.248650909271331
1618.68718.65061470588690.0363852941130694
1717.5818.4496060312964-0.869606031296371
1819.56820.3619979529866-0.79399795298657
1917.38119.0042286917839-1.62322869178389
2019.5819.9530510084903-0.373051008490281
2117.2619.1715463660808-1.91154636608076
2218.66118.9662848140714-0.30528481407144
2315.65817.0717783944048-1.41377839440476
2418.67418.51849216809370.155507831906254
2515.90817.2764638621969-1.36846386219689
2617.47517.6509568588419-0.175956858841897
2717.72517.70376401154680.0212359884532193
2819.56219.01497952516910.547020474830928
2916.36817.8652622276914-1.49726222769137
3019.55519.1149802317310.440019768268983
3117.74317.9340402665339-0.191040266533934
3219.86718.84373955258821.02326044741183
3315.70316.998621100359-1.29562110035898
3419.32418.94382291955330.380177080446703
3518.16218.3386778991158-0.176677899115808
3619.07418.92089189368830.153108106311685
3715.32317.2689394620601-1.94593946206009
3819.70419.26891437487060.435085625129359
3918.37518.9212829595616-0.546282959561607
4018.35218.7355809159117-0.383580915911692
4113.92716.4789062142223-2.55190621422226
4217.79517.18406814738950.610931852610513
4316.76116.59613930962510.16486069037486
4418.90217.68504610417251.2169538958275
4516.23917.2721467115394-1.03314671153936
4619.15818.9095941701540.248405829845987
4718.27917.71694858186710.562051418132896
4815.69816.7566832984825-1.05868329848249
4916.23917.2721467115394-1.03314671153936
5018.43118.24102662057240.189973379427608
5118.41417.8020404865150.611959513485017
5219.80119.24399071748730.557009282512736
5314.99516.702757735928-1.70775773592795
5418.70617.85165891618760.854341083812365
5518.23217.29206135861150.939938641388543
5619.40918.22339482623681.18560517376317
5716.26316.9722744234301-0.709274423430069
5819.01718.28742688695660.729573113043416
5920.29818.96915629768121.32884370231881
6019.89118.83717850036571.05382149963428
6115.20316.2689718620543-1.06597186205429
6217.84517.48637100887440.358628991125568
6317.50217.23147248079840.270527519201555
6418.53217.61889875751710.913101242482854
6515.73717.0043727190716-1.26737271907164
6617.7717.52865967599280.241340324007248
6717.22417.05026242308570.173737576914326
6817.60116.7717131842380.829286815762012
6914.9415.9560564909747-1.0160564909747
7018.50717.51422419878860.992775801211414
7117.63516.86329929089590.771700709104063
7219.39217.35472162942772.03727837057227
7315.69916.21586446236-0.516864462359963
7417.66117.13120742946710.529792570532931
7518.24317.23592549556741.00707450443255
7619.64318.36882827651191.27417172348812
7715.7716.9650291893289-1.19502918932895
7817.34417.6068093404419-0.262809340441922
7917.22917.4683389525122-0.239338952512231
8017.32217.9583112500517-0.636311250051686
8116.15215.57747354320290.574526456797066
8217.91916.91468383210081.00431616789922
8316.91815.92729835394680.99070164605317
8418.11417.77278382939580.34121617060419
8516.30816.9766418910719-0.668641891071944
8617.75917.38826578362460.370734216375354
8716.02116.3385010321415-0.317501032141531
8817.95217.60743270754610.344567292453876
8915.95416.8371941408161-0.883194140816053
9017.76217.9194924235511-0.157492423551087
9116.6116.7726300786081-0.162630078608061
9217.75117.68061867125880.0703813287411989
9315.45816.6872729416993-1.22927294169931
9418.10618.3899238390765-0.283923839076458
9515.9916.314014000869-0.324014000869013
9615.34916.1052292397915-0.756229239791487
9713.18514.7712719053561-1.58627190535615
9815.40915.7595405299778-0.350540529977769
9916.00715.73181345551460.275186544485449
10016.63316.9440342299498-0.311034229949756
10114.815.9324060355567-1.13240603555671
10215.97416.5847259933666-0.6107259933666
10315.69315.7119242844302-0.0189242844302001


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.2948115747845710.5896231495691420.705188425215429
80.2366721030185810.4733442060371610.763327896981419
90.1461641456862740.2923282913725480.853835854313726
100.09535338338986820.1907067667797360.904646616610132
110.2176224959647860.4352449919295730.782377504035214
120.2031798531866380.4063597063732750.796820146813362
130.2833793706347940.5667587412695870.716620629365206
140.2092378290678210.4184756581356420.790762170932179
150.5060990792392960.9878018415214070.493900920760704
160.4665946401578710.9331892803157420.533405359842129
170.4580920743623530.9161841487247070.541907925637647
180.4177782445251670.8355564890503330.582221755474833
190.7637763677388940.4724472645222120.236223632261106
200.7364931238744760.5270137522510480.263506876125524
210.8754431842030330.2491136315939350.124556815796967
220.8397082077827740.3205835844344510.160291792217226
230.9037311583048790.1925376833902420.0962688416951211
240.8743479255122650.2513041489754710.125652074487735
250.8927564828564750.214487034287050.107243517143525
260.8597776160514250.2804447678971490.140222383948575
270.8202299008339830.3595401983320340.179770099166017
280.8134158461294560.3731683077410890.186584153870544
290.8527393282736420.2945213434527160.147260671726358
300.8348309897716690.3303380204566620.165169010228331
310.8004738992058720.3990522015882560.199526100794128
320.809534507943810.3809309841123820.190465492056191
330.8447795235839390.3104409528321230.155220476416061
340.8082897481455650.3834205037088710.191710251854435
350.7812323742124320.4375352515751360.218767625787568
360.7364058719274880.5271882561450250.263594128072512
370.867389289841420.2652214203171610.132610710158581
380.854452454257360.2910950914852810.14554754574264
390.8626337381401370.2747325237197260.137366261859863
400.8524247636324650.295150472735070.147575236367535
410.97245070638660.05509858722679870.0275492936133993
420.9671467774581240.06570644508375270.0328532225418763
430.9567619461940860.08647610761182840.0432380538059142
440.9597545952258260.08049080954834820.0402454047741741
450.9721332764096550.05573344718068950.0278667235903447
460.965174910912170.0696501781756580.034825089087829
470.9569545919413170.08609081611736670.0430454080586834
480.9703175852932720.0593648294134550.0296824147067275
490.978500979364060.04299804127187880.0214990206359394
500.9732643354280070.05347132914398550.0267356645719928
510.9628967111128760.07420657777424860.0371032888871243
520.9555892060012730.08882158799745330.0444107939987267
530.990903011694190.01819397661162230.00909698830581116
540.9870757432091090.02584851358178250.0129242567908913
550.9822407148166610.03551857036667720.0177592851833386
560.9775610773627850.04487784527443070.0224389226372153
570.9796974971096760.04060500578064890.0203025028903244
580.9721920806411480.05561583871770460.0278079193588523
590.9630046871631940.07399062567361110.0369953128368056
600.949169942538890.1016601149222180.050830057461109
610.971273992752970.05745201449406010.0287260072470301
620.9609580250164930.0780839499670150.0390419749835075
630.9558858851816230.08822822963675350.0441141148183768
640.9403857518794540.1192284962410910.0596142481205457
650.9817636580983870.0364726838032260.018236341901613
660.9759220771005920.04815584579881590.0240779228994079
670.9684963768847530.06300724623049360.0315036231152468
680.9589111382752740.08217772344945130.0410888617247257
690.9728037283652670.05439254326946640.0271962716347332
700.9666518141427850.06669637171443030.0333481858572152
710.9591432489691230.08171350206175470.0408567510308773
720.9938176892533590.01236462149328210.00618231074664106
730.9910759320808460.01784813583830780.00892406791915391
740.991752162421910.01649567515618250.00824783757809126
750.9982329306651850.003534138669629710.00176706933481485
760.9999391593674340.0001216812651314726.08406325657358e-05
770.9999127255892080.0001745488215836998.72744107918497e-05
780.999963968414617.20631707817129e-053.60315853908565e-05
790.9999782109511884.35780976234401e-052.178904881172e-05
800.9999983551156653.28976866944537e-061.64488433472268e-06
810.999997777553494.44489301924421e-062.2224465096221e-06
820.999997065591945.86881612033e-062.934408060165e-06
830.9999992124776071.57504478631371e-067.87522393156856e-07
840.9999975303743864.93925122770396e-062.46962561385198e-06
850.99999604251287.9149743994462e-063.9574871997231e-06
860.999995631850618.73629878156748e-064.36814939078374e-06
870.9999845055046663.09889906676765e-051.54944953338382e-05
880.9999478042467830.0001043915064341635.21957532170816e-05
890.9998401357149570.0003197285700851080.000159864285042554
900.9995781501893450.0008436996213098040.000421849810654902
910.9987591382707760.002481723458448840.00124086172922442
920.9964889611949790.007022077610042210.0035110388050211
930.990679197459780.01864160508043910.00932080254021955
940.9923581102950810.01528377940983740.00764188970491869
950.9776284466518720.04474310669625510.0223715533481276
960.9290078899529430.1419842200941140.070992110047057


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level180.2NOK
5% type I error level320.355555555555556NOK
10% type I error level530.588888888888889NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/10hiv21292684573.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/10hiv21292684573.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/1tzg81292684573.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/1tzg81292684573.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/2tzg81292684573.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/2tzg81292684573.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/3lqfb1292684573.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/3lqfb1292684573.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/4lqfb1292684573.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/4lqfb1292684573.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/5lqfb1292684573.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/5lqfb1292684573.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/6ezee1292684573.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/6ezee1292684573.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/779eh1292684573.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/779eh1292684573.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/879eh1292684573.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/879eh1292684573.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/979eh1292684573.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926849268ps5qod9f32h70x/979eh1292684573.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