Home » date » 2009 » Dec » 05 »

*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, 05 Dec 2009 11:46:25 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1.htm/, Retrieved Sat, 05 Dec 2009 19:47:44 +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/2009/Dec/05/t1260038852e2eky82zlzaa6q1.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
7969 0 8255 8776 8823 9051 8758 0 7969 8255 8776 8823 8693 0 8758 7969 8255 8776 8271 0 8693 8758 7969 8255 7790 0 8271 8693 8758 7969 7769 0 7790 8271 8693 8758 8170 0 7769 7790 8271 8693 8209 0 8170 7769 7790 8271 9395 0 8209 8170 7769 7790 9260 0 9395 8209 8170 7769 9018 0 9260 9395 8209 8170 8501 0 9018 9260 9395 8209 8500 0 8501 9018 9260 9395 9649 0 8500 8501 9018 9260 9319 0 9649 8500 8501 9018 8830 0 9319 9649 8500 8501 8436 0 8830 9319 9649 8500 8169 0 8436 8830 9319 9649 8269 0 8169 8436 8830 9319 7945 0 8269 8169 8436 8830 9144 0 7945 8269 8169 8436 8770 0 9144 7945 8269 8169 8834 0 8770 9144 7945 8269 7837 0 8834 8770 9144 7945 7792 0 7837 8834 8770 9144 8616 0 7792 7837 8834 8770 8518 0 8616 7792 7837 8834 7940 0 8518 8616 7792 7837 7545 0 7940 8518 8616 7792 7531 0 7545 7940 8518 8616 7665 0 7531 7545 7940 8518 7599 0 7665 7531 7545 7940 8444 0 7599 7665 7531 7545 8549 0 8444 7599 7665 7531 7986 0 8549 8444 7599 7665 7335 0 7986 8549 8444 7599 7287 0 7335 7986 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = -53.6518988484805 + 389.313447739161X[t] + 1.06481823529856Y1[t] -0.253504368502961Y2[t] -0.202623347892135Y3[t] + 0.390229059988102Y4[t] + 0.938161684005079t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-53.6518988484805278.585629-0.19260.8477470.423874
X389.313447739161203.3307781.91470.0589370.029469
Y11.064818235298560.10080710.56300
Y2-0.2535043685029610.151694-1.67120.0984120.049206
Y3-0.2026233478921350.15203-1.33280.1862070.093103
Y40.3902290599881020.1048553.72160.0003570.000178
t0.9381616840050793.2853110.28560.7759160.387958


Multiple Linear Regression - Regression Statistics
Multiple R0.97728926035259
R-squared0.955094298400514
Adjusted R-squared0.951886748286265
F-TEST (value)297.764419691423
F-TEST (DF numerator)6
F-TEST (DF denominator)84
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation493.393695460646
Sum Squared Residuals20448736.4525063


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
179698256.82388074314-287.823880743136
287588005.85087479543752.149125204573
386939006.6588719542-313.658871954206
482718593.00983883832-322.009838838315
577907889.59715653553-99.5971565355306
677697806.39783649278-37.3978364927831
781707967.0525803967202.947419603304
882098333.09161319512-124.091613195121
993958090.457346737541304.54265326246
1092609254.936492349525.06350765048006
1190188960.0475537111557.9524462888555
1285018512.43043494026-11.4304349402629
1385008514.37144326396-14.3714432639594
1496498641.66047232021007.3395276798
1593199876.64912907386-557.64912907386
1688309033.37495303348-203.374953033483
1784368364.0689834744271.931016525579
1881698584.67129137948-415.671291379477
1982698371.49093275211-102.490932752115
2079458435.60817309158-490.608173091585
2191447966.544973940451177.45502605955
2287709201.88212133634-431.882121336345
2388348605.2993958995228.700604100497
2478378399.8169489039-562.816948903907
2577927866.57282544846-74.572825448457
2686167913.42445924083702.575540759168
2785189030.17068108118-512.170681081177
2879408337.9287339065-397.928733906492
2975457563.72343733864-18.7234373386381
3075317631.98975459805-100.989754598051
3176657797.02853374937-132.028533749366
3275997798.68522586669-199.685225866689
3384447544.07204681678899.927953183218
3485498428.89817019188120.101829808118
3579868393.09489019652-407.09489019652
3673357570.95057978656-235.950579786559
3772877329.88313391964-42.8831339196438
3878707599.79236036677270.207639633231
3978398145.89660162245-306.896601622452
4073277721.71915382154-394.719153821543
4172597048.46860775574210.531392244264
4269647340.57823187068-376.578231870675
4372717136.27936446095134.720635539050
4469567352.88162203274-396.881622032741
4576086973.81451001628634.185489983719
4676927571.545096694120.454903305999
4772557680.26981788152-425.269817881525
4868046939.55546706389-135.555467063888
4966556808.45099955334-153.450999553342
5073416886.38735844056454.612641559439
5176027576.4160111308725.5839888691315
5270867535.56530821606-449.565308216059
5366256723.7488737145-98.7488737145055
5462726579.42652442540-307.426524425395
5565766527.7527950981148.2472049018884
5664916833.93391081884-342.933910818836
5776496558.927639628971090.07236037103
5874007615.12483317645-215.124833176446
5969137193.2178143519-280.217814351898
6065326470.9047762446661.0952237553373
6164866691.94228283222-205.942282832224
6272956741.99450457856553.005495421444
6375567503.1897629029352.810237097074
6470887826.9172997677-738.917299767692
6569527081.48306194851-129.48306194851
6667737319.05660382183-546.056603821826
6769177360.5464069742-443.546406974206
6873717405.12525174213-34.1252517421308
6982217836.18469030156384.815309698436
7079538528.09860485466-575.098604854659
7180277992.388750946434.6112490536075
7272878144.99678032757-857.996780327568
7380767725.2078828464350.792117153598
7489338634.30534905233298.694650947671
7594339526.59601951766-93.5960195176592
7694799394.0507291658184.949270834186
7791999451.46086460913-252.460864609126
7894699375.7033499221493.2966500778647
79100159920.917514308694.0824856914075
801099910509.4853271391489.51467286094
811300911255.81880642671753.18119357332
821369913142.3228207016556.677179298449
831389513382.1254764783512.874523521749
841324813393.5624637788-145.562463778832
851397313300.4266715286672.573328471395
861509514466.9192554304628.08074456959
871520115686.3750117986-485.375011798626
881482315116.3718759299-293.371875929857
891453814743.5099537661-205.509953766094
901454714953.1585001142-406.158500114213
911440715153.8846768012-746.884676801216


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.893973141284920.212053717430160.10602685871508
110.8493658680157150.3012682639685690.150634131984284
120.7553062928908170.4893874142183660.244693707109183
130.6521370051277380.6957259897445240.347862994872262
140.774445693252230.4511086134955410.225554306747771
150.7382351596245120.5235296807509750.261764840375488
160.664782166326330.6704356673473390.335217833673669
170.5969211904400570.8061576191198870.403078809559943
180.6181928499333020.7636143001333970.381807150066698
190.5707726532398920.8584546935202160.429227346760108
200.6277159148003870.7445681703992250.372284085199613
210.7518779382587750.4962441234824490.248122061741225
220.7362106215597690.5275787568804630.263789378440231
230.6803414727284780.6393170545430450.319658527271522
240.7216874335397760.5566251329204470.278312566460224
250.6884041556258630.6231916887482740.311595844374137
260.7059443590456180.5881112819087640.294055640954382
270.6901544329249120.6196911341501760.309845567075088
280.694325364538120.6113492709237610.305674635461880
290.653741749140220.692516501719560.34625825085978
300.6079939945485250.784012010902950.392006005451475
310.554083740427370.8918325191452590.445916259572629
320.5024696639425550.995060672114890.497530336057445
330.6222411808360770.7555176383278460.377758819163923
340.5682420193392130.8635159613215740.431757980660787
350.525340791732570.949318416534860.47465920826743
360.4812929514676910.9625859029353830.518707048532309
370.4276031316368630.8552062632737260.572396868363137
380.3996946672313590.7993893344627180.600305332768641
390.3486766605249610.6973533210499220.651323339475039
400.3208001890955170.6416003781910340.679199810904483
410.2874769690217160.5749539380434320.712523030978284
420.2624920128663580.5249840257327160.737507987133642
430.2260240423406090.4520480846812180.77397595765939
440.2028743033699100.4057486067398210.79712569663009
450.2596935467855210.5193870935710430.740306453214479
460.2281555872647740.4563111745295480.771844412735226
470.1938899635553260.3877799271106510.806110036444674
480.1610758765888690.3221517531777380.838924123411131
490.1338680314043170.2677360628086340.866131968595683
500.1698920779930990.3397841559861990.8301079220069
510.1510927159519510.3021854319039020.848907284048049
520.1232235953534240.2464471907068480.876776404646576
530.09976258636404360.1995251727280870.900237413635956
540.08292249124074820.1658449824814960.917077508759252
550.06893520493223920.1378704098644780.931064795067761
560.05524226147055410.1104845229411080.944757738529446
570.2088175509117180.4176351018234360.791182449088282
580.1656520010659680.3313040021319360.834347998934032
590.1295631056127980.2591262112255950.870436894387202
600.0976465991999820.1952931983999640.902353400800018
610.07396988614656240.1479397722931250.926030113853438
620.08032350981371660.1606470196274330.919676490186283
630.06023770534785350.1204754106957070.939762294652146
640.04391085115375030.08782170230750060.95608914884625
650.03719719829807910.07439439659615820.962802801701921
660.02474036616615610.04948073233231220.975259633833844
670.01583006880180930.03166013760361850.98416993119819
680.01175524340320380.02351048680640750.988244756596796
690.01992187046236240.03984374092472490.980078129537638
700.01519106718321100.03038213436642190.984808932816789
710.01198080240155950.02396160480311890.98801919759844
720.02448534409903600.04897068819807190.975514655900964
730.02888427067740960.05776854135481920.97111572932259
740.02566301020177260.05132602040354530.974336989798227
750.01878292917147980.03756585834295960.98121707082852
760.01741069039859390.03482138079718790.982589309601406
770.02751492781578640.05502985563157290.972485072184214
780.02866313972891150.05732627945782310.971336860271088
790.09568509002632940.1913701800526590.90431490997367
800.5727148038215670.8545703923568670.427285196178433
810.5206789828282340.9586420343435320.479321017171766


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level90.125NOK
10% type I error level150.208333333333333NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/10sedt1260038780.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/10sedt1260038780.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/1e8i61260038780.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/1e8i61260038780.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/2mnz91260038780.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/2mnz91260038780.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/3aa1l1260038780.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/3aa1l1260038780.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/4tz4y1260038780.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/4tz4y1260038780.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/5hgzj1260038780.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/5hgzj1260038780.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/6373u1260038780.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/6373u1260038780.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/7wumi1260038780.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/7wumi1260038780.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/8pmyj1260038780.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/8pmyj1260038780.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/9xgdl1260038780.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260038852e2eky82zlzaa6q1/9xgdl1260038780.ps (open in new window)


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