Home » date » 2009 » Dec » 05 »

multiple regression

*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 08:21:45 -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/t1260027076a7umdhikxr4vno0.htm/, Retrieved Sat, 05 Dec 2009 16:31:28 +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/t1260027076a7umdhikxr4vno0.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 «
9051 0 8823 0 8776 0 8255 0 7969 0 8758 0 8693 0 8271 0 7790 0 7769 0 8170 0 8209 0 9395 0 9260 0 9018 0 8501 0 8500 0 9649 0 9319 0 8830 0 8436 0 8169 0 8269 0 7945 0 9144 0 8770 0 8834 0 7837 0 7792 0 8616 0 8518 0 7940 0 7545 0 7531 0 7665 0 7599 0 8444 0 8549 0 7986 0 7335 0 7287 0 7870 0 7839 0 7327 0 7259 0 6964 0 7271 0 6956 0 7608 0 7692 0 7255 0 6804 0 6655 0 7341 0 7602 0 7086 0 6625 0 6272 0 6576 0 6491 0 7649 0 7400 0 6913 0 6532 0 6486 0 7295 0 7556 0 7088 1 6952 1 6773 1 6917 1 7371 1 8221 1 7953 1 8027 1 7287 1 8076 1 8933 1 9433 1 9479 1 9199 1 9469 1 10015 1 10999 1 13009 1 13699 1 13895 1 13248 1 13973 1 15095 1 15201 1 14823 1 14538 1 14547 1 14407 1
 
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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 7888.67164179105 + 2776.57835820895X[t] + e[t]


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


Multiple Linear Regression - Regression Statistics
Multiple R0.577988961847573
R-squared0.334071240017635
Adjusted R-squared0.326910715716750
F-TEST (value)46.6545780699768
F-TEST (DF numerator)1
F-TEST (DF denominator)93
p-value8.61620108594252e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1806.41452043425
Sum Squared Residuals303471408.026119


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
190517888.671641791031162.32835820897
288237888.67164179104934.328358208957
387767888.67164179104887.328358208955
482557888.67164179104366.328358208955
579697888.6716417910480.328358208955
687587888.67164179104869.328358208955
786937888.67164179104804.328358208955
882717888.67164179104382.328358208955
977907888.67164179104-98.671641791045
1077697888.67164179104-119.671641791045
1181707888.67164179104281.328358208955
1282097888.67164179104320.328358208955
1393957888.671641791041506.32835820896
1492607888.671641791041371.32835820896
1590187888.671641791041129.32835820896
1685017888.67164179104612.328358208955
1785007888.67164179104611.328358208955
1896497888.671641791041760.32835820896
1993197888.671641791041430.32835820896
2088307888.67164179104941.328358208955
2184367888.67164179104547.328358208955
2281697888.67164179104280.328358208955
2382697888.67164179104380.328358208955
2479457888.6716417910456.328358208955
2591447888.671641791041255.32835820896
2687707888.67164179104881.328358208955
2788347888.67164179104945.328358208955
2878377888.67164179104-51.671641791045
2977927888.67164179104-96.671641791045
3086167888.67164179104727.328358208955
3185187888.67164179104629.328358208955
3279407888.6716417910451.328358208955
3375457888.67164179104-343.671641791045
3475317888.67164179104-357.671641791045
3576657888.67164179104-223.671641791045
3675997888.67164179104-289.671641791045
3784447888.67164179104555.328358208955
3885497888.67164179104660.328358208955
3979867888.6716417910497.328358208955
4073357888.67164179104-553.671641791045
4172877888.67164179104-601.671641791045
4278707888.67164179104-18.6716417910449
4378397888.67164179104-49.671641791045
4473277888.67164179104-561.671641791045
4572597888.67164179104-629.671641791045
4669647888.67164179104-924.671641791045
4772717888.67164179104-617.671641791045
4869567888.67164179104-932.671641791045
4976087888.67164179104-280.671641791045
5076927888.67164179104-196.671641791045
5172557888.67164179104-633.671641791045
5268047888.67164179104-1084.67164179104
5366557888.67164179104-1233.67164179104
5473417888.67164179104-547.671641791045
5576027888.67164179104-286.671641791045
5670867888.67164179104-802.671641791045
5766257888.67164179104-1263.67164179104
5862727888.67164179104-1616.67164179104
5965767888.67164179104-1312.67164179104
6064917888.67164179104-1397.67164179104
6176497888.67164179104-239.671641791045
6274007888.67164179104-488.671641791045
6369137888.67164179104-975.671641791045
6465327888.67164179104-1356.67164179104
6564867888.67164179104-1402.67164179104
6672957888.67164179104-593.671641791045
6775567888.67164179104-332.671641791045
68708810665.25-3577.25
69695210665.25-3713.25
70677310665.25-3892.25
71691710665.25-3748.25
72737110665.25-3294.25
73822110665.25-2444.25
74795310665.25-2712.25
75802710665.25-2638.25
76728710665.25-3378.25
77807610665.25-2589.25
78893310665.25-1732.25
79943310665.25-1232.25
80947910665.25-1186.25
81919910665.25-1466.25
82946910665.25-1196.25
831001510665.25-650.25
841099910665.25333.75
851300910665.252343.75
861369910665.253033.75
871389510665.253229.75
881324810665.252582.75
891397310665.253307.75
901509510665.254429.75
911520110665.254535.75
921482310665.254157.75
931453810665.253872.75
941454710665.253881.75
951440710665.253741.75


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.02825349856035250.05650699712070490.971746501439648
60.006786309718563630.01357261943712730.993213690281436
70.001430408692646350.00286081738529270.998569591307354
80.0003832227687875680.0007664455375751360.999616777231212
90.0003340972150631080.0006681944301262160.999665902784937
100.0002050120884188820.0004100241768377650.999794987911581
115.43962744442585e-050.0001087925488885170.999945603725556
121.32531381304222e-052.65062762608444e-050.99998674686187
132.20557365529464e-054.41114731058927e-050.999977944263447
141.60151474374326e-053.20302948748652e-050.999983984852563
156.42826746521932e-061.28565349304386e-050.999993571732535
161.71405999983858e-063.42811999967715e-060.99999828594
174.4080701235009e-078.8161402470018e-070.999999559192988
188.38234541824112e-071.67646908364822e-060.999999161765458
195.03167780658305e-071.00633556131661e-060.99999949683222
201.51835047873197e-073.03670095746394e-070.999999848164952
214.44359877803178e-088.88719755606357e-080.999999955564012
221.64939558617211e-083.29879117234422e-080.999999983506044
235.24274667484043e-091.04854933496809e-080.999999994757253
242.65436806618254e-095.30873613236509e-090.999999997345632
251.23952975945155e-092.47905951890310e-090.99999999876047
263.53248785525986e-107.06497571051972e-100.999999999646751
271.04020148541567e-102.08040297083133e-100.99999999989598
286.92311581986717e-111.38462316397343e-100.99999999993077
294.66177224697494e-119.32354449394987e-110.999999999953382
301.26624727267042e-112.53249454534084e-110.999999999987337
313.34193066304222e-126.68386132608444e-120.999999999996658
321.54423429299077e-123.08846858598153e-120.999999999998456
331.76614884829276e-123.53229769658551e-120.999999999998234
341.77132868694403e-123.54265737388805e-120.999999999998229
351.13786126165427e-122.27572252330853e-120.999999999998862
367.8273818467608e-131.56547636935216e-120.999999999999217
372.19916105246470e-134.39832210492940e-130.99999999999978
386.32964321121567e-141.26592864224313e-130.999999999999937
392.18030833929713e-144.36061667859426e-140.999999999999978
402.68539181132149e-145.37078362264299e-140.999999999999973
413.20491037141878e-146.40982074283756e-140.999999999999968
421.16270274262040e-142.32540548524079e-140.999999999999988
434.28230258633098e-158.56460517266196e-150.999999999999996
443.79049321380814e-157.58098642761629e-150.999999999999996
453.55098374850178e-157.10196749700357e-150.999999999999996
466.20132383366803e-151.24026476673361e-140.999999999999994
474.5191056946561e-159.0382113893122e-150.999999999999996
485.99659188757903e-151.19931837751581e-140.999999999999994
492.36245786956794e-154.72491573913589e-150.999999999999998
508.42022231659214e-161.68404446331843e-151
515.12545414536227e-161.02509082907245e-151
527.32646799047137e-161.46529359809427e-151
531.27657565865882e-152.55315131731763e-150.999999999999999
545.74837954563833e-161.14967590912767e-151
551.97910298104689e-163.95820596209379e-161
561.1980075782973e-162.3960151565946e-161
571.62369813479999e-163.24739626959997e-161
584.33284141600166e-168.66568283200332e-161
594.8440266399452e-169.6880532798904e-161
605.77014206560861e-161.15402841312172e-151
611.76138521656478e-163.52277043312956e-161
625.9496520018796e-171.18993040037592e-161
633.14666080510727e-176.29332161021454e-171
642.8592739854673e-175.7185479709346e-171
652.66571924079631e-175.33143848159263e-171
668.66741132170579e-181.73348226434116e-171
672.37182806182964e-184.74365612365929e-181
682.37273597438096e-184.74547194876192e-181
693.29913653892463e-186.59827307784926e-181
707.46380382025737e-181.49276076405147e-171
712.07898685346107e-174.15797370692214e-171
725.70462204037328e-171.14092440807466e-161
731.59559599635218e-163.19119199270436e-161
745.33706820432813e-161.06741364086563e-151
752.48234412083168e-154.96468824166336e-150.999999999999998
766.5450849624582e-141.30901699249164e-130.999999999999934
771.36499553033344e-122.72999106066688e-120.999999999998635
782.71229904723371e-115.42459809446742e-110.999999999972877
796.06851097136876e-101.21370219427375e-090.999999999393149
801.82873071695125e-083.65746143390251e-080.999999981712693
811.76583774099185e-063.53167548198369e-060.99999823416226
820.0003540318816251090.0007080637632502190.999645968118375
830.05303648917480820.1060729783496160.946963510825192
840.7223233314515970.5553533370968050.277676668548403
850.9099382236259440.1801235527481130.0900617763740564
860.9396287959148620.1207424081702770.0603712040851383
870.9410026946253460.1179946107493070.0589973053746537
880.9876579667411250.02468406651775050.0123420332588753
890.9918551897461710.01628962050765810.00814481025382907
900.9816440735422370.03671185291552510.0183559264577626


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level760.883720930232558NOK
5% type I error level800.930232558139535NOK
10% type I error level810.94186046511628NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260027076a7umdhikxr4vno0/10tln01260026500.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260027076a7umdhikxr4vno0/10tln01260026500.ps (open in new window)


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


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


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


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260027076a7umdhikxr4vno0/49cbw1260026500.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260027076a7umdhikxr4vno0/49cbw1260026500.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260027076a7umdhikxr4vno0/6pt3l1260026500.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260027076a7umdhikxr4vno0/6pt3l1260026500.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260027076a7umdhikxr4vno0/712n31260026500.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260027076a7umdhikxr4vno0/712n31260026500.ps (open in new window)


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


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


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = 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