Home » date » 2008 » Nov » 25 »

Toon Wouters

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Tue, 25 Nov 2008 04:52:10 -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/Nov/25/t1227614041jtzvtujlt3n367b.htm/, Retrieved Tue, 25 Nov 2008 11:54:11 +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/Nov/25/t1227614041jtzvtujlt3n367b.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:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
124 0 113 0 109 0 109 0 106 0 101 0 98 0 93 0 91 0 122 1 139 1 140 1 132 1 117 0 114 0 113 0 110 0 107 0 103 0 98 0 98 0 137 1 148 1 147 1 139 1 130 0 128 0 127 0 123 0 118 0 114 0 108 0 111 0 151 1 159 1 158 1 148 1 138 0 137 0 136 0 133 0 126 0 120 0 114 0 116 0 153 1 162 1 161 1 149 1 139 0 135 0 130 0 127 0 122 0 117 0 112 0 113 0 149 1 157 1 157 1 147 1 137 0 132 0 125 0 123 0 117 0 114 0 111 0 112 0 144 1 150 1 149 1 134 1 123 0 116 0 117 0 111 0 105 0 102 0 95 0 93 0 124 1 130 1 124 1 115 1 106 0 105 0 105 0 101 0 95 0 93 0 84 0 87 0 116 1 120 1 117 1 109 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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework
error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 134.000000000000 + 15.9553571428573X[t] -9.89203042328045M1[t] -3.87433862433845M2[t] -7.1413690476189M3[t] -8.78339947089932M4[t] -12.1754298941797M5[t] -17.4424603174601M6[t] -21.0844907407406M7[t] -26.726521164021M8[t] -25.8685515873014M9[t] -7.34093915343917M10[t] + 1.39203042328042M11[t] -0.107969576719577t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)134.00000000000013.8966449.642600
X15.955357142857313.4168691.18920.2377520.118876
M1-9.892030423280456.21494-1.59170.1152640.057632
M2-3.8743386243384514.715624-0.26330.7929870.396493
M3-7.141369047618914.72206-0.48510.6288980.314449
M4-8.7833994708993214.728637-0.59630.5525660.276283
M5-12.175429894179714.735356-0.82630.4110180.205509
M6-17.442460317460114.742216-1.18320.2401220.120061
M7-21.084490740740614.749218-1.42950.1566040.078302
M8-26.72652116402114.75636-1.81120.073730.036865
M9-25.868551587301414.763644-1.75220.0834360.041718
M10-7.340939153439176.215453-1.18110.2409450.120472
M111.392030423280426.214940.2240.8233220.411661
t-0.1079695767195770.046138-2.34010.0216770.010839


Multiple Linear Regression - Regression Statistics
Multiple R0.79025662180139
R-squared0.624505528300945
Adjusted R-squared0.565693141167358
F-TEST (value)10.6186053438443
F-TEST (DF numerator)13
F-TEST (DF denominator)83
p-value7.49511563924443e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12.4295365269589
Sum Squared Residuals12822.9503968254


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1124124-8.43769498715119e-15
2113129.909722222222-16.9097222222223
3109126.534722222222-17.5347222222222
4109124.784722222222-15.7847222222223
5106121.284722222222-15.2847222222222
6101115.909722222222-14.9097222222222
798112.159722222222-14.1597222222222
893106.409722222222-13.4097222222223
991107.159722222222-16.1597222222222
10122141.534722222222-19.5347222222223
11139150.159722222222-11.1597222222222
12140148.659722222222-8.65972222222222
13132138.659722222222-6.65972222222221
14117128.614087301587-11.6140873015873
15114125.239087301587-11.2390873015873
16113123.489087301587-10.4890873015873
17110119.989087301587-9.9890873015873
18107114.614087301587-7.6140873015873
19103110.864087301587-7.8640873015873
2098105.114087301587-7.1140873015873
2198105.864087301587-7.86408730158731
22137140.239087301587-3.23908730158729
23148148.864087301587-0.864087301587299
24147147.364087301587-0.364087301587306
25139137.3640873015871.63591269841271
26130127.3184523809522.68154761904762
27128123.9434523809524.05654761904762
28127122.1934523809524.80654761904763
29123118.6934523809524.30654761904762
30118113.3184523809524.68154761904762
31114109.5684523809524.43154761904762
32108103.8184523809524.18154761904762
33111104.5684523809526.4315476190476
34151138.94345238095212.0565476190476
35159147.56845238095211.4315476190476
36158146.06845238095211.9315476190476
37148136.06845238095211.9315476190476
38138126.02281746031711.9771825396825
39137122.64781746031714.3521825396825
40136120.89781746031715.1021825396826
41133117.39781746031715.6021825396825
42126112.02281746031713.9771825396825
43120108.27281746031711.7271825396825
44114102.52281746031711.4771825396825
45116103.27281746031712.7271825396825
46153137.64781746031715.3521825396826
47162146.27281746031715.7271825396825
48161144.77281746031716.2271825396825
49149134.77281746031714.2271825396826
50139124.72718253968314.2728174603175
51135121.35218253968313.6478174603175
52130119.60218253968310.3978174603175
53127116.10218253968310.8978174603175
54122110.72718253968311.2728174603175
55117106.97718253968310.0228174603175
56112101.22718253968310.7728174603175
57113101.97718253968311.0228174603174
58149136.35218253968312.6478174603175
59157144.97718253968312.0228174603175
60157143.47718253968313.5228174603175
61147133.47718253968313.5228174603175
62137123.43154761904813.5684523809524
63132120.05654761904811.9434523809524
64125118.3065476190486.69345238095239
65123114.8065476190488.19345238095238
66117109.4315476190487.56845238095238
67114105.6815476190488.31845238095238
6811199.931547619047611.0684523809524
69112100.68154761904811.3184523809524
70144135.0565476190488.94345238095239
71150143.6815476190486.31845238095238
72149142.1815476190486.81845238095237
73134132.1815476190481.81845238095239
74123122.1359126984130.864087301587304
75116118.760912698413-2.7609126984127
76117117.010912698413-0.0109126984126943
77111113.510912698413-2.5109126984127
78105108.135912698413-3.1359126984127
79102104.385912698413-2.3859126984127
809598.6359126984127-3.6359126984127
819399.3859126984127-6.38591269841271
82124133.760912698413-9.76091269841268
83130142.385912698413-12.3859126984127
84124140.885912698413-16.8859126984127
85115130.885912698413-15.8859126984127
86106120.840277777778-14.8402777777778
87105117.465277777778-12.4652777777778
88105115.715277777778-10.7152777777778
89101112.215277777778-11.2152777777778
9095106.840277777778-11.8402777777778
9193103.090277777778-10.0902777777778
928497.3402777777778-13.3402777777778
938798.0902777777778-11.0902777777778
94116132.465277777778-16.4652777777778
95120141.090277777778-21.0902777777778
96117139.590277777778-22.5902777777778
97109129.590277777778-20.5902777777778


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
176.2641703918555e-050.000125283407837110.999937358296081
183.70343312513454e-057.40686625026908e-050.999962965668749
192.72705157862402e-065.45410315724804e-060.999997272948421
202.02094521616298e-074.04189043232596e-070.999999797905478
212.95669508954081e-075.91339017908162e-070.999999704330491
220.0005299576497851770.001059915299570350.999470042350215
230.0002536804099338420.0005073608198676850.999746319590066
249.58513692382124e-050.0001917027384764250.999904148630762
253.49499462636003e-056.98998925272007e-050.999965050053736
265.34025932889695e-050.0001068051865779390.99994659740671
279.42438345116769e-050.0001884876690233540.999905756165488
289.49460059119289e-050.0001898920118238580.999905053994088
297.48265972426933e-050.0001496531944853870.999925173402757
305.29004494029706e-050.0001058008988059410.999947099550597
314.37694205656377e-058.75388411312754e-050.999956230579434
324.7032167318997e-059.4064334637994e-050.99995296783268
339.84162002795716e-050.0001968324005591430.99990158379972
340.0007917337355231880.001583467471046380.999208266264477
350.000637622920838290.001275245841676580.999362377079162
360.00046885286215420.00093770572430840.999531147137846
370.0003708591116395140.0007417182232790280.99962914088836
380.0003359321741586290.0006718643483172580.999664067825841
390.0002551753374965140.0005103506749930280.999744824662503
400.0001658735544715830.0003317471089431660.999834126445528
410.0001068729892031180.0002137459784062360.999893127010797
428.33535612173559e-050.0001667071224347120.999916646438783
430.0001752267893177480.0003504535786354960.999824773210682
440.0005112382311763560.001022476462352710.999488761768824
450.0009738938196778250.001947787639355650.999026106180322
460.0008800850385817750.001760170077163550.999119914961418
470.001105501342012180.002211002684024370.998894498657988
480.001386081329148800.002772162658297610.998613918670851
490.004901548240659840.009803096481319690.99509845175934
500.00943700960949110.01887401921898220.99056299039051
510.02002063230499940.04004126460999870.979979367695
520.1025540156964990.2051080313929980.897445984303501
530.2347022899171810.4694045798343620.765297710082819
540.3752591443654920.7505182887309830.624740855634508
550.6206139541800370.7587720916399260.379386045819963
560.7969290712008160.4061418575983680.203070928799184
570.9219514715167820.1560970569664350.0780485284832175
580.9425186566026660.1149626867946670.0574813433973337
590.9570657045262330.08586859094753440.0429342954737672
600.9595476124627740.08090477507445230.0404523875372262
610.961436424707130.07712715058574070.0385635752928704
620.9604296456952360.07914070860952730.0395703543047637
630.960073797162990.0798524056740210.0399262028370105
640.9785891135071440.04282177298571270.0214108864928564
650.9799202710893430.04015945782131330.0200797289106567
660.9806830580249620.03863388395007600.0193169419750380
670.9795267432733750.04094651345325010.0204732567266251
680.9706866679732190.05862666405356180.0293133320267809
690.9588542498992250.08229150020155070.0411457501007753
700.959417275910160.08116544817967980.0405827240898399
710.9739825716559410.05203485668811770.0260174283440589
720.9984610539555780.003077892088843930.00153894604442197
730.9997012375753060.0005975248493881260.000298762424694063
740.999982054105413.58917891795488e-051.79458945897744e-05
750.9999627935664857.44128670306412e-053.72064335153206e-05
760.9999500087791089.99824417840524e-054.99912208920262e-05
770.9998262129713730.0003475740572541150.000173787028627058
780.9993887014896580.001222597020684770.000611298510342383
790.9970697594017630.005860481196474410.00293024059823721
800.9945816902025650.01083661959486950.00541830979743475


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level410.640625NOK
5% type I error level480.75NOK
10% type I error level570.890625NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/10tqxl1227613924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/10tqxl1227613924.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/169f41227613924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/169f41227613924.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/216b91227613924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/216b91227613924.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/3wzyl1227613924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/3wzyl1227613924.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/41rol1227613924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/41rol1227613924.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/5m95r1227613924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/5m95r1227613924.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/60gdq1227613924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/60gdq1227613924.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/7j6wz1227613924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/7j6wz1227613924.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/8hjap1227613924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/8hjap1227613924.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/9fqkx1227613924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227614041jtzvtujlt3n367b/9fqkx1227613924.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