Home » date » 2008 » Nov » 26 »

11.3

*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: Wed, 26 Nov 2008 12:36:19 -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/26/t1227728308keax9ox9ab4lq33.htm/, Retrieved Wed, 26 Nov 2008 19:38:38 +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/26/t1227728308keax9ox9ab4lq33.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 «
78,40 97,80 114,60 107,40 113,30 117,50 117,00 105,60 99,60 97,40 99,40 99,50 101,90 98,00 115,20 104,30 108,50 100,60 113,80 101,10 121,00 103,90 92,20 96,90 90,20 95,50 101,50 108,40 126,60 117,00 93,90 103,80 89,80 100,80 93,40 110,60 101,50 104,00 110,40 112,60 105,90 107,30 108,40 98,90 113,90 109,80 86,10 104,90 69,40 102,20 101,20 123,90 100,50 124,90 98,00 112,70 106,60 121,90 90,10 100,60 96,90 104,30 125,90 120,40 112,00 107,50 100,00 102,90 123,90 125,60 79,80 107,50 83,40 108,80 113,60 128,40 112,90 121,10 104,00 119,50 109,90 128,70 99,00 108,70 106,30 105,50 128,90 119,80 111,10 111,30 102,90 110,60 130,00 120,10 87,00 97,50 87,50 107,70 117,60 127,30 103,40 117,20 110,80 119,80 112,60 116,20 102,50 111,00 112,40 112,40 135,60 130,60 105,10 109,10 127,70 118,80 137,00 123,90 91,00 101,60 90,50 112,80 122,40 128,00 123,30 129,60 124,30 125,80 120,00 119,50 118,10 115,70 119,00 113,60 142,70 129,70 123,60 112,00 129,60 116,80 151,60 127,00 110,40 112,10 99,20 114,20 130,50 121,10 136,20 131,60 129,70 125,00 128,00 120,40 121,60 117,70 135,80 117,50 143,80 120,60 147,50 127,50 136,20 112,30 156,60 124,50 123,30 115,20 100,40 105,40
 
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'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
investerings[t] = + 53.60002807051 + 0.082379831183076consumptie[t] + 0.411324526534124V3[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)53.6000280705114.575353.67740.000420.00021
consumptie0.0823798311830760.1325770.62140.5360770.268039
V30.4113245265341240.1015414.05080.0001155.8e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.461354168942973
R-squared0.212847669201062
Adjusted R-squared0.193648831864502
F-TEST (value)11.0864874507659
F-TEST (DF numerator)2
F-TEST (DF denominator)82
p-value5.47532894894509e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12.8214665322626
Sum Squared Residuals13479.9803311102


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
178.4108.794566301026-30.3945663010255
2107.4111.264294811312-3.86429481131201
3117103.26726108624213.7327389137585
497.4102.715373680253-5.31537368025304
5101.9109.057836983182-7.15783698318247
6104.3103.9174871232070.382512876793430
7113.8111.6988967137482.10110328625207
8103.9101.0527951267462.84720487325383
990.2103.216741391707-13.0167413917073
10108.4112.154284302780-3.75428430277987
1193.999.0879970300776-5.18799703007757
12100.8106.786796937683-5.98679693768336
13101.5107.577758242917-6.07775824291714
14112.6106.4591738899096.1408261100908
15108.4108.597256946753-0.197256946752883
16109.8103.8408743688025.9591256311976
1769.4103.645288902674-34.2452889026736
18123.9113.25363446852110.6463655314788
1998106.731429573380-8.73142957338023
20121.9102.40169822943819.4983017705620
2196.9113.978002353551-17.0780023535510
22120.4107.04395576543313.3560442345672
23100113.040021536826-13.0400215368264
24125.6104.39132520133821.2086747986623
2583.4109.289419917505-25.8894199175051
26128.4112.71211117436215.6878888256384
27104108.648983362988-4.64898336298776
28128.7106.46660739189422.2333926081062
29106.3115.310831730573-9.01083173057305
30119.8108.53284711819811.2671528818023
31102.9116.183425848794-13.2834258487943
32120.1100.87121472051519.2287852794853
3387.5110.844100209340-23.3441002093402
34127.3110.32533712463916.9746628753607
35110.8109.7842735339851.01572646601519
36116.2107.7009832120638.499016787937
37112.4118.635126893515-6.23512689351489
38130.6107.13365417272423.4663458272758
39127.7119.7382121502347.96178784976564
40123.9102.88716460403721.0128353959631
4190.5113.238595075738-22.7385950757377
42128117.06511989420610.9348801057943
43124.3113.32235401743610.9776459825642
44119.5110.9193338532298.58066614677063
45119121.654386829327-2.65438682932686
46129.7109.8505221765619.8494778234400
47129.6125.5787905752664.02120942473358
48127108.80424085759718.1957591424032
4999.2116.685655504320-17.4856555043204
50121.1118.9504687695362.14953123046439
51129.7116.54704636476213.1529536352377
52120.4112.0303123154388.36968768456162
53135.8122.42812515012813.3718748498716
54120.6118.1949303031142.40506969688553
55136.2127.2647039676138.9352960323868
56124.5111.14204671211413.3579532878857
57100.494.53070515748155.86929484251852
5897.8107.217010873855-9.41701087385538
59113.3111.4046278390141.89537216098612
60105.6101.8680681407683.73193185923200
6199.4103.710790527053-4.31079052705324
6298105.991332740309-7.99133274030944
63108.5108.696170207111-0.196170207110701
64101.1106.304605950558-5.20460595055763
6592.298.684106005528-6.484106005528
6695.5106.549159611891-11.0491596118912
67126.6101.86184136048424.7381586395159
68103.8102.4592491853901.34075081461013
6993.4104.460676842572-11.0606768425717
70104109.009903120864-5.0099031208639
71105.9107.026962632753-1.12696263275304
7298.9108.146523855709-9.24652385570911
7386.190.7875945030828-4.68759450308284
74102.2112.899975823815-10.6999758238152
75100.5104.199072585620-3.69907258562029
76112.7112.5221778591360.177822140864439
7790.1101.744785708684-11.6447857086840
78104.3113.495121811168-9.19512181116775
79112103.5883125761038.41168742389698
80102.9115.469249686779-12.5692496867790
8179.896.7603254356366-16.9603254356366
82108.8115.772446099889-6.9724460998889
83112.9106.3539763863296.54602361367066
84119.5115.5910380824723.90896191752825
8599106.278512890688-7.27851289068769


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.5321536796229590.9356926407540810.467846320377041
70.6496693209615720.7006613580768560.350330679038428
80.558547000079390.882905999841220.44145299992061
90.487419315805550.97483863161110.51258068419445
100.4094245042331820.8188490084663650.590575495766818
110.353354771723180.706709543446360.64664522827682
120.2662829583831010.5325659167662010.7337170416169
130.1887056753698640.3774113507397280.811294324630136
140.1640135195564750.3280270391129510.835986480443525
150.127585067029380.255170134058760.87241493297062
160.128111160934430.256222321868860.87188883906557
170.5525363917908490.89492721641830.44746360820915
180.5698376370398520.8603247259202970.430162362960148
190.5058341170604640.9883317658790720.494165882939536
200.6373587931274550.7252824137450890.362641206872545
210.6483912032306090.7032175935387830.351608796769391
220.6852823728264130.6294352543471750.314717627173587
230.6568561820061840.6862876359876320.343143817993816
240.7368891678060260.5262216643879490.263110832193974
250.83525126062370.3294974787526010.164748739376301
260.8887320441181720.2225359117636550.111267955881828
270.856002961249820.287994077500360.14399703875018
280.9171080751418130.1657838497163740.082891924858187
290.8973233888221660.2053532223556680.102676611177834
300.8974853682733580.2050292634532840.102514631726642
310.8881034104527310.2237931790945370.111896589547269
320.9089048583449380.1821902833101250.0910951416550624
330.9477274450493620.1045451099012760.0522725549506379
340.9637128683813560.07257426323728720.0362871316186436
350.9515217637683940.09695647246321150.0484782362316058
360.9429402115915180.1141195768169630.0570597884084816
370.9270142932770790.1459714134458420.072985706722921
380.9693142430300080.06137151393998380.0306857569699919
390.9671874509356260.06562509812874780.0328125490643739
400.9862568642800360.02748627143992750.0137431357199637
410.9945307167410160.01093856651796710.00546928325898353
420.9947155848809190.01056883023816280.00528441511908141
430.9942985073891870.01140298522162640.00570149261081321
440.9928434839106120.01431303217877570.00715651608938783
450.9892404968904750.02151900621905090.0107595031095255
460.9945651708373680.01086965832526450.00543482916263225
470.9921412775448580.01571744491028320.00785872245514158
480.996293465547430.007413068905140490.00370653445257025
490.9980276753916710.003944649216657620.00197232460832881
500.9967502692999070.006499461400185950.00324973070009297
510.996868882344070.006262235311859070.00313111765592953
520.995929995249470.008140009501061550.00407000475053078
530.9968138871713140.006372225657371190.00318611282868559
540.9946274246908870.01074515061822650.00537257530911323
550.9951442688704520.009711462259095050.00485573112954752
560.9970062992622830.005987401475432950.00299370073771648
570.9958616428599980.008276714280004770.00413835714000239
580.994356525956010.01128694808797850.00564347404398925
590.991501836464850.01699632707029940.0084981635351497
600.9885266548165950.02294669036681100.0114733451834055
610.981616958268830.03676608346234170.0183830417311709
620.9739447365871730.05211052682565350.0260552634128268
630.9622876885697970.07542462286040550.0377123114302028
640.9447066501509550.1105866996980910.0552933498490453
650.9204613944596450.159077211080710.079538605540355
660.8997496687229920.2005006625540150.100250331277008
670.994682542499940.01063491500012030.00531745750006014
680.9917319697841940.01653606043161220.0082680302158061
690.9877795427530270.02444091449394530.0122204572469726
700.9773657339248170.04526853215036590.0226342660751829
710.9625609943692040.07487801126159240.0374390056307962
720.941494518784970.1170109624300610.0585054812150307
730.9039482645687740.1921034708624530.0960517354312264
740.8719021242501140.2561957514997720.128097875749886
750.8048851295671190.3902297408657620.195114870432881
760.7093377443095160.5813245113809680.290662255690484
770.6399046829261910.7201906341476180.360095317073809
780.505012363421140.989975273157720.49498763657886
790.5374524219234880.9250951561530240.462547578076512


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level90.121621621621622NOK
5% type I error level260.351351351351351NOK
10% type I error level330.445945945945946NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/10eb861227728173.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/10eb861227728173.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/1w7bc1227728172.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/1w7bc1227728172.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/2tk921227728172.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/2tk921227728172.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/3tjv81227728172.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/3tjv81227728172.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/45qc01227728172.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/45qc01227728172.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/5ezbw1227728172.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/5ezbw1227728172.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/6vdpm1227728172.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/6vdpm1227728172.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/76f3a1227728172.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/76f3a1227728172.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/8zgip1227728173.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/8zgip1227728173.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/927sf1227728173.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227728308keax9ox9ab4lq33/927sf1227728173.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by