Home » date » 2010 » Nov » 24 »

Multiple Regression Final m/v

*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: Tue, 23 Nov 2010 23:46:10 +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/Nov/24/t1290556050buxxdees1gdynww.htm/, Retrieved Wed, 24 Nov 2010 00:47:30 +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/Nov/24/t1290556050buxxdees1gdynww.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 «
7 7 1 7 7 1 7 7 4 5 2 5 6 2 5 6 5 6 1 5 5 1 5 5 7 7 1 7 7 1 7 6 6 6 2 5 6 1 4 5 5 4 1 7 7 1 4 7 5 6 2 5 6 2 5 6 5 6 1 6 7 1 6 7 6 7 1 7 5 1 6 7 5 6 2 5 6 3 6 6 6 7 1 5 6 1 5 7 7 7 1 7 7 1 6 7 6 7 1 3 7 2 7 7 3 7 1 7 7 1 6 7 6 6 1 6 6 1 5 6 3 3 1 5 5 1 4 4 4 6 1 5 6 1 4 5 6 7 1 7 6 1 6 7 6 7 1 3 6 1 6 6 5 5 1 7 6 1 5 6 6 6 1 7 7 1 7 7 6 6 1 7 6 1 6 6 3 4 1 7 7 1 4 7 4 5 3 4 3 3 4 5 5 6 2 6 7 2 6 6 4 4 1 5 5 1 6 7 5 7 1 7 7 0 5 7 6 6 2 6 6 2 5 5 2 5 1 4 5 1 2 6 5 7 1 5 7 1 5 5 3 6 1 7 7 2 5 7 7 7 1 7 7 1 7 7 6 5 1 7 6 1 6 5 6 6 1 7 6 2 7 5 6 5 1 7 6 1 6 5 7 3 1 6 5 1 6 6 5 6 1 3 6 1 5 7 5 5 1 4 6 2 4 5 7 6 1 5 6 1 5 6 5 4 3 7 7 3 6 7 5 5 1 5 5 1 6 6 2 6 3 6 7 2 4 7 5 4 4 5 3 6 5 1 6 7 1 6 7 1 6 6 5 6 1 7 7 1 5 7 1 4 1 7 7 1 6 6 5 7 1 7 6 1 5 6 5 3 2 7 7 1 6 7 5 7 1 6 7 1 5 7 6 4 1 7 6 1 5 4 6 5 1 6 7 1 7 6 6 7 1 7 6 1 5 6 5 6 2 7 6 2 5 6 6 6 1 6 6 2 6 6 5 6 4 6 6 4 3 6 5 6 1 5 7 1 6 7 6 6 2 5 6 2 5 6 6 6 1 6 7 1 6 7 4 6 2 5 6 2 4 5 5 6 1 6 6 2 6 6 4 5 1 3 5 1 6 5 6 7 1 7 7 2 5 6 6 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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Q1_2[t] = + 0.683448246864695 + 0.198926748843929Q1_3[t] -0.0928214103551924Q1_5[t] + 0.0904997968487101Q1_7[t] -0.075972113093604Q1_8[t] + 0.116383027938451Q1_12[t] + 0.580006004424285Q1_16[t] -0.00989775749926517Q1_22[t] + 0.124131261356080Q1_2v[t] -0.261297359223972Q1_3v[t] + 0.227200441858429Q1_5v[t] -0.128064165925015Q1_7v[t] + 0.308882429796853Q1_8v[t] -0.158991872319213Q1_12v[t] + 0.0889780949233021Q1_16v[t] -0.102927253819690Q1_22v[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)0.6834482468646950.9262710.73780.4626380.231319
Q1_30.1989267488439290.1066261.86570.0655390.032769
Q1_5-0.09282141035519240.14066-0.65990.5111020.255551
Q1_70.09049979684871010.0867631.04310.2998750.149938
Q1_8-0.0759721130936040.111699-0.68020.4982570.249129
Q1_120.1163830279384510.1253180.92870.3556720.177836
Q1_160.5800060044242850.1019825.687300
Q1_22-0.009897757499265170.11257-0.08790.9301430.465071
Q1_2v0.1241312613560800.1126681.10170.2736810.136841
Q1_3v-0.2612973592239720.107925-2.42110.0176010.008801
Q1_5v0.2272004418584290.2392370.94970.3449640.172482
Q1_7v-0.1280641659250150.129997-0.98510.3273560.163678
Q1_8v0.3088824297968530.1613011.91490.0588620.029431
Q1_12v-0.1589918723192130.142698-1.11420.2683390.13417
Q1_16v0.08897809492330210.1613120.55160.5826760.291338
Q1_22v-0.1029272538196900.153545-0.67030.5044590.252229


Multiple Linear Regression - Regression Statistics
Multiple R0.673124912686542
R-squared0.453097148079265
Adjusted R-squared0.356584880093253
F-TEST (value)4.69471039831883
F-TEST (DF numerator)15
F-TEST (DF denominator)85
p-value1.81266670795655e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.90392117898313
Sum Squared Residuals69.4512473142114


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
176.558704710353650.441295289646353
255.20280688402397-0.202806884023974
364.619775372521051.38022462747895
455.0896922847082-0.0896922847081988
565.923463056852770.0765369431472323
665.114060656032780.885939343967223
765.636958940604450.363041059395548
865.333384896877180.66661510312282
943.921909726610160.07809027338984
1065.502363749094220.497636250905775
1166.11138431853196-0.111384318531962
1233.50548105551907-0.505481055519066
1355.59298873631076-0.592988736310762
1455.24413792494949-0.244137924949490
1523.09630144067017-1.09630144067017
1635.22552251065442-2.22552251065442
1765.461132669779660.538867330220338
1866.15542426851204-0.155424268512041
1954.952683022678970.0473169773210339
2075.59707835872631.40292164127370
2155.2682410732817-0.268241073281701
2255.2148943607927-0.214894360792697
2355.16219315114779-0.162193151147789
2456.32908536327162-1.32908536327162
2555.69927039284263-0.699270392842633
2665.481580076191310.518419923808686
2755.02987609146532-0.0298760914653231
2854.195367473799870.804632526200128
2965.213823546064280.786176453935721
3044.1546369894868-0.154636989486803
3144.94180722238501-0.941807222385013
3264.927339977437471.07266002256253
3333.03556652955895-0.0355665295589454
3464.958001709593531.04199829040647
3554.292158770753940.707841229246058
3666.12563144103092-0.125631441030924
3775.29648131631991.70351868368010
3844.59423748477401-0.594237484774013
3954.489438735213160.510561264786845
4044.89315052491175-0.893150524911754
4154.858346394320.141653605679998
4234.85705273681687-1.85705273681687
4355.01173793183049-0.0117379318304941
4465.978385569120850.021614430879145
4565.915357666118320.0846423338816765
4644.14414985171917-0.144149851719168
4744.29273383980916-0.292733839809155
4865.084704306851830.915295693148168
4965.84601164078080.153988359219196
5055.0012968806686-0.00129688066859569
5166.00876467935651-0.00876467935650707
5243.746788792654090.253211207345913
5344.73897302711348-0.738973027113485
5455.13605548000944-0.136055480009441
5534.07988695643614-1.07988695643614
5666.0055067618141-0.0055067618141013
5765.673514568083060.326485431916937
5844.20304535869686-0.203045358696862
5954.720930318842910.279069681157086
6054.774500006497790.225499993502207
6145.18469068820968-1.18469068820968
6265.094156281449660.905843718550336
6355.79742881096996-0.797428810969963
6444.85526770443865-0.855267704438649
6564.669864103168921.33013589683108
6655.92044923057021-0.920449230570208
6765.408385941592280.591614058407717
6856.19194862111634-1.19194862111634
6965.529398895786580.470601104213425
7054.700795375161830.299204624838168
7144.05848111772794-0.0584811177279371
7265.611942616692050.388057383307947
7353.49763272331461.5023672766854
7455.18323680512411-0.183236805124113
7533.96240861283944-0.96240861283944
7654.992537778234510.0074622217654881
7744.65301480590733-0.653014805907328
7854.654956487463360.345043512536640
7953.281630758525551.71836924147445
8076.191948621116340.808051378883662
8175.223986876503461.77601312349654
8254.201684522131250.798315477868746
8343.980187391127850.0198126088721492
8465.367330993416570.632669006583427
8554.89341702672390.106582973276100
8655.35597544608194-0.355975446081937
8744.57286602021234-0.572866020212344
8855.07529374484956-0.075293744849557
8923.42809714193190-1.42809714193190
9075.896475134748441.10352486525156
9144.63935094582333-0.639350945823334
9254.768393297664870.23160670233513
9355.63782584778179-0.637825847781794
9476.164761613458150.835238386541853
9525.43194755917554-3.43194755917554
9643.925835214061470.0741647859385272
9765.764106633219510.23589336678049
9855.32778390224284-0.327783902242838
9954.548851148974620.451148851025376
10044.71345469906492-0.713454699064917
10144.41641927952197-0.416419279521968


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.5289245606111650.942150878777670.471075439388835
200.4257719336642310.8515438673284620.574228066335769
210.4618119030163530.9236238060327060.538188096983647
220.3709452473800060.7418904947600130.629054752619994
230.2659450772071210.5318901544142410.73405492279288
240.2804636111337870.5609272222675740.719536388866213
250.2284211227402080.4568422454804160.771578877259792
260.1613666733344230.3227333466688460.838633326665577
270.1141060681969470.2282121363938950.885893931803053
280.1635964512997200.3271929025994390.83640354870028
290.1446866789244670.2893733578489340.855313321075533
300.1401563468368360.2803126936736710.859843653163164
310.3245579838664810.6491159677329610.675442016133519
320.2842798836721470.5685597673442930.715720116327853
330.219630825308620.439261650617240.78036917469138
340.2509240361011140.5018480722022280.749075963898886
350.2174689807351260.4349379614702510.782531019264874
360.1657463896782560.3314927793565110.834253610321744
370.2674830227112060.5349660454224120.732516977288794
380.552801685997520.894396628004960.44719831400248
390.5267455073774470.9465089852451070.473254492622553
400.526901028991240.946197942017520.47309897100876
410.455464180975610.910928361951220.54453581902439
420.5784724706145840.8430550587708330.421527529385416
430.5089811786246330.9820376427507340.491018821375367
440.4452933573630880.8905867147261750.554706642636912
450.3926648335240620.7853296670481250.607335166475938
460.3334758556740660.6669517113481320.666524144325934
470.2760285793257210.5520571586514420.723971420674279
480.2749923054433090.5499846108866180.725007694556691
490.220618926719510.441237853439020.77938107328049
500.1876959338707640.3753918677415280.812304066129236
510.1473170730270140.2946341460540290.852682926972986
520.1249880263243150.2499760526486290.875011973675685
530.1119106263804830.2238212527609650.888089373619517
540.0831148251047170.1662296502094340.916885174895283
550.1159391853078010.2318783706156020.884060814692199
560.08682063781467910.1736412756293580.91317936218532
570.06251099612379680.1250219922475940.937489003876203
580.04593917345018220.09187834690036440.954060826549818
590.03262051016807750.0652410203361550.967379489831923
600.02176437550857430.04352875101714860.978235624491426
610.01944936291129350.03889872582258710.980550637088706
620.01490795175882950.02981590351765900.98509204824117
630.01136506139674550.02273012279349100.988634938603254
640.01142006359739340.02284012719478690.988579936402607
650.01573003314180380.03146006628360760.984269966858196
660.01388071426030250.02776142852060490.986119285739698
670.01025522691575750.02051045383151490.989744773084243
680.01054407729316980.02108815458633970.98945592270683
690.00718796094011970.01437592188023940.99281203905988
700.00440951610969230.00881903221938460.995590483890308
710.002494227953836190.004988455907672370.997505772046164
720.001533164853472920.003066329706945840.998466835146527
730.003535054917919120.007070109835838240.99646494508208
740.001948071354513260.003896142709026530.998051928645487
750.001412720429518110.002825440859036230.998587279570482
760.0006845047610693710.001369009522138740.99931549523893
770.0004244825301909740.0008489650603819490.999575517469809
780.0002006093050272820.0004012186100545640.999799390694973
790.0007029230251257640.001405846050251530.999297076974874
800.0003737418109946020.0007474836219892050.999626258189005
810.001006575444997650.002013150889995310.998993424555002
820.0005887961518047180.001177592303609440.999411203848195


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.203125NOK
5% type I error level230.359375NOK
10% type I error level250.390625NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/101zc01290555959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/101zc01290555959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/1uyf61290555959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/1uyf61290555959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/2uyf61290555959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/2uyf61290555959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/3n7w91290555959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/3n7w91290555959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/4n7w91290555959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/4n7w91290555959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/5n7w91290555959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/5n7w91290555959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/6yhdc1290555959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/6yhdc1290555959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/7qqcx1290555959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/7qqcx1290555959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/8qqcx1290555959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/8qqcx1290555959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/9qqcx1290555959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/24/t1290556050buxxdees1gdynww/9qqcx1290555959.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