Home » date » 2008 » Dec » 09 »

Multiple..

*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, 09 Dec 2008 10:33:14 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0.htm/, Retrieved Tue, 09 Dec 2008 17:34:44 +0000
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
101,02 0 100,67 0 100,47 0 100,38 0 100,33 0 100,34 0 100,37 0 100,39 0 100,21 0 100,21 0 100,22 0 100,28 0 100,25 0 100,25 0 100,21 0 100,16 0 100,18 0 100,1 1 99,96 1 99,88 1 99,88 1 99,86 1 99,84 1 99,8 1 99,82 1 99,81 1 99,92 1 100,03 1 99,99 1 100,02 1 100,01 1 100,13 1 100,33 1 100,13 1 99,96 1 100,05 1 99,83 1 99,8 1 100,01 1 100,1 1 100,13 1 100,16 1 100,41 1 101,34 1 101,65 1 101,85 1 102,07 1 102,12 1 102,14 1 102,21 1 102,28 1 102,19 1 102,33 1 102,54 1 102,44 1 102,78 1 102,9 1 103,08 1 102,77 1 102,65 1 102,71 1 103,29 1 102,86 1 103,45 1 103,72 1 103,65 1 103,83 1 104,45 1 105,14 1 105,07 1 105,31 1 105,19 1 105,3 1 105,02 1 105,17 1 105,28 1 105,45 1 105,38 1 105,8 1 105,96 1 105,08 1 105,11 1 105,61 1 105,5 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 time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
Suiker[t] = + 99.35609689441 -2.49431304347826dummie[t] + 0.145857660455483M1[t] + 0.0386457556935807M2[t] -0.084280434782609M3[t] -0.0929209109730872M4[t] -0.120132815734991M5[t] + 0.140414285714285M6[t] + 0.126059523809522M7[t] + 0.323133333333331M8[t] + 0.255921428571428M9[t] + 0.168709523809519M10[t] + 0.131497619047617M11[t] + 0.104354761904762t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)99.356096894410.283309350.69900
dummie-2.494313043478260.239469-10.41600
M10.1458576604554830.3363830.43360.6659080.332954
M20.03864575569358070.3361750.1150.9088080.454404
M3-0.0842804347826090.336013-0.25080.8026840.401342
M4-0.09292091097308720.335897-0.27660.7828750.391438
M5-0.1201328157349910.335827-0.35770.7216280.360814
M60.1404142857142850.3357310.41820.6770560.338528
M70.1260595238095220.3354760.37580.7082290.354115
M80.3231333333333310.3352670.96380.338460.16923
M90.2559214285714280.3351050.76370.4476090.223804
M100.1687095238095190.3349880.50360.6161040.308052
M110.1314976190476170.3349190.39260.6957890.347895
t0.1043547619047620.00394726.440500


Multiple Linear Regression - Regression Statistics
Multiple R0.960511194532887
R-squared0.922581754822994
Adjusted R-squared0.908204080718693
F-TEST (value)64.1676635685463
F-TEST (DF numerator)13
F-TEST (DF denominator)70
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.626531715411946
Sum Squared Residuals27.4779393291925


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1101.0299.60630931677021.41369068322981
2100.6799.6034521739131.06654782608696
3100.4799.58488074534160.885119254658385
4100.3899.6805950310560.699404968944095
5100.3399.75773788819880.572262111801242
6100.34100.1226397515530.217360248447209
7100.37100.2126397515530.157360248447211
8100.39100.514068322981-0.124068322981365
9100.21100.551211180124-0.341211180124230
10100.21100.568354037267-0.358354037267083
11100.22100.63549689441-0.415496894409936
12100.28100.608354037267-0.328354037267080
13100.25100.858566459627-0.608566459627327
14100.25100.855709316770-0.60570931677019
15100.21100.837137888199-0.627137888198765
16100.16100.932852173913-0.772852173913046
17100.18101.009995031056-0.829995031055894
18100.198.88058385093171.21941614906832
1999.9698.97058385093170.989416149068318
2099.8899.27201242236020.607987577639749
2199.8899.30915527950310.570844720496891
2299.8699.3262981366460.533701863354041
2399.8499.39344099378880.446559006211186
2499.899.3662981366460.433701863354034
2599.8299.61651055900620.203489440993786
2699.8199.6136534161490.196346583850936
2799.9299.59508198757760.324918012422362
28100.0399.6907962732920.339203726708078
2999.9999.76793913043480.222060869565214
30100.02100.132840993789-0.112840993788824
31100.01100.222840993789-0.212840993788814
32100.13100.524269565217-0.394269565217394
33100.33100.561412422360-0.231412422360249
34100.13100.578555279503-0.448555279503106
3599.96100.645698136646-0.685698136645967
36100.05100.618555279503-0.568555279503108
3799.83100.868767701863-1.03876770186335
3899.8100.865910559006-1.06591055900621
39100.01100.847339130435-0.837339130434778
40100.1100.943053416149-0.843053416149071
41100.13101.020196273292-0.89019627329193
42100.16101.385098136646-1.22509813664597
43100.41101.475098136646-1.06509813664596
44101.34101.776526708075-0.436526708074529
45101.65101.813669565217-0.163669565217385
46101.85101.8308124223600.0191875776397507
47102.07101.8979552795030.17204472049689
48102.12101.8708124223600.249187577639756
49102.14102.1210248447200.0189751552795065
50102.21102.1181677018630.0918322981366409
51102.28102.0995962732920.180403726708075
52102.19102.195310559006-0.0053105590062117
53102.33102.2724534161490.0575465838509305
54102.54102.637355279503-0.0973552795030992
55102.44102.727355279503-0.287355279503106
56102.78103.028783850932-0.248783850931675
57102.9103.065926708075-0.165926708074528
58103.08103.083069565217-0.00306956521738853
59102.77103.150212422360-0.38021242236025
60102.65103.123069565217-0.473069565217386
61102.71103.373281987578-0.663281987577644
62103.29103.370424844721-0.0804248447204903
63102.86103.351853416149-0.49185341614907
64103.45103.4475677018630.00243229813665016
65103.72103.5247105590060.195289440993788
66103.65103.889612422360-0.239612422360244
67103.83103.979612422360-0.14961242236025
68104.45104.2810409937890.168959006211183
69105.14104.3181838509320.821816149068323
70105.07104.3353267080750.734673291925461
71105.31104.4024695652170.907530434782612
72105.19104.3753267080750.814673291925462
73105.3104.6255391304350.674460869565217
74105.02104.6226819875780.397318012422357
75105.17104.6041105590060.565889440993789
76105.28104.6998248447200.580175155279505
77105.45104.7769677018630.673032298136649
78105.38105.1418695652170.238130434782603
79105.8105.2318695652170.568130434782605
80105.96105.5332981366460.426701863354031
81105.08105.570440993789-0.490440993788822
82105.11105.587583850932-0.477583850931675
83105.61105.654726708075-0.0447267080745334
84105.5105.627583850932-0.127583850931678


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.04739462936067640.09478925872135290.952605370639324
180.01573572271323450.03147144542646910.984264277286765
190.005752186363091660.01150437272618330.994247813636908
200.002084928999907610.004169857999815230.997915071000092
210.0006138617707099480.001227723541419900.99938613822929
220.0001741580847734300.0003483161695468610.999825841915227
234.7329813757484e-059.4659627514968e-050.999952670186243
241.54969089090967e-053.09938178181935e-050.99998450309109
251.19054237988529e-052.38108475977059e-050.999988094576201
263.55590764633136e-067.11181529266273e-060.999996444092354
272.48861646712502e-064.97723293425004e-060.999997511383533
286.3645167365997e-061.27290334731994e-050.999993635483263
296.96619572297149e-061.39323914459430e-050.999993033804277
308.9026245970264e-061.78052491940528e-050.999991097375403
319.55590881929488e-061.91118176385898e-050.99999044409118
321.56062880303316e-053.12125760606633e-050.99998439371197
330.0001204992245135320.0002409984490270650.999879500775486
340.0001147162923122090.0002294325846244180.999885283707688
355.71275652025656e-050.0001142551304051310.999942872434797
363.20822685141228e-056.41645370282456e-050.999967917731486
372.19664935047045e-054.3932987009409e-050.999978033506495
381.40624935799802e-052.81249871599605e-050.99998593750642
397.47639518307626e-061.49527903661525e-050.999992523604817
405.65536923268882e-061.13107384653776e-050.999994344630767
416.53245986843546e-061.30649197368709e-050.999993467540132
426.88008963528944e-061.37601792705789e-050.999993119910365
431.91768231993571e-053.83536463987142e-050.9999808231768
440.003223315748796400.006446631497592790.996776684251204
450.04420732373952990.08841464747905980.95579267626047
460.1807084942257250.3614169884514500.819291505774275
470.3980895934701310.7961791869402610.601910406529869
480.5668454968249460.8663090063501070.433154503175054
490.6093474312535870.7813051374928270.390652568746413
500.6410886647791040.7178226704417920.358911335220896
510.6699360553353080.6601278893293840.330063944664692
520.6443423364466010.7113153271067980.355657663553399
530.6208307426787820.7583385146424370.379169257321218
540.5764898090557520.8470203818884970.423510190944248
550.5096136090852670.9807727818294660.490386390914733
560.4455106472728470.8910212945456950.554489352727153
570.374860991307240.749721982614480.62513900869276
580.3173679948596650.634735989719330.682632005140335
590.2672148265042790.5344296530085570.732785173495721
600.2284453489817800.4568906979635600.77155465101822
610.2824004665662140.5648009331324290.717599533433786
620.2345654946199940.4691309892399870.765434505380006
630.2788653754752040.5577307509504090.721134624524796
640.2688559600205660.5377119200411310.731144039979434
650.2645972829609310.5291945659218610.73540271703907
660.2684346407989420.5368692815978830.731565359201058
670.5021870160777760.9956259678444480.497812983922224


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level250.490196078431373NOK
5% type I error level270.529411764705882NOK
10% type I error level290.568627450980392NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/10ucya1228843981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/10ucya1228843981.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/13wp21228843981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/13wp21228843981.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/2qk191228843981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/2qk191228843981.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/3yjra1228843981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/3yjra1228843981.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/46nb41228843981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/46nb41228843981.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/5t73v1228843981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/5t73v1228843981.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/6o03e1228843981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/6o03e1228843981.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/7my1z1228843981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/7my1z1228843981.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/8qvyl1228843981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/8qvyl1228843981.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/9udak1228843981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844084she7men3bdo2df0/9udak1228843981.ps (open in new window)


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