Home » date » 2009 » Dec » 28 »

paper multiple regressie 4 vertragingen

*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: Mon, 28 Dec 2009 08:21:46 -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/28/t1262013801odw4xfd85uc99xe.htm/, Retrieved Mon, 28 Dec 2009 16:23:33 +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/28/t1262013801odw4xfd85uc99xe.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 «
97.7 0 98.3 91.6 104.6 111.6 106.3 0 97.7 98.3 91.6 104.6 102.3 0 106.3 97.7 98.3 91.6 106.6 0 102.3 106.3 97.7 98.3 108.1 0 106.6 102.3 106.3 97.7 93.8 0 108.1 106.6 102.3 106.3 88.2 0 93.8 108.1 106.6 102.3 108.9 0 88.2 93.8 108.1 106.6 114.2 0 108.9 88.2 93.8 108.1 102.5 0 114.2 108.9 88.2 93.8 94.2 0 102.5 114.2 108.9 88.2 97.4 0 94.2 102.5 114.2 108.9 98.5 0 97.4 94.2 102.5 114.2 106.5 0 98.5 97.4 94.2 102.5 102.9 0 106.5 98.5 97.4 94.2 97.1 0 102.9 106.5 98.5 97.4 103.7 0 97.1 102.9 106.5 98.5 93.4 0 103.7 97.1 102.9 106.5 85.8 0 93.4 103.7 97.1 102.9 108.6 0 85.8 93.4 103.7 97.1 110.2 0 108.6 85.8 93.4 103.7 101.2 0 110.2 108.6 85.8 93.4 101.2 0 101.2 110.2 108.6 85.8 96.9 0 101.2 101.2 110.2 108.6 99.4 0 96.9 101.2 101.2 110.2 118.7 0 99.4 96.9 101.2 101.2 108.0 0 118.7 99.4 96.9 101.2 101.2 0 108.0 118.7 99.4 96.9 119.9 0 101.2 108.0 118.7 99.4 94.8 0 119.9 101.2 108.0 118.7 95.3 0 94.8 119.9 101.2 108.0 118.0 0 95.3 94.8 119.9 101.2 115.9 0 118.0 95.3 94.8 119.9 111. etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
y[t] = + 26.0461632964373 -10.2213845284438dummy[t] + 0.125376118603902y1[t] + 0.337853297204397y2[t] + 0.467867221487526y3[t] -0.270421115181480y4[t] + 7.57100304186504M1[t] + 20.2817619430677M2[t] + 8.2751637314311M3[t] + 3.52015731458482M4[t] + 10.4266568702843M5[t] -3.97297815958595M6[t] -8.19458109756605M7[t] + 16.2000655477651M8[t] + 27.6669497311364M9[t] + 7.35926726402566M10[t] -9.44548316094506M11[t] + 0.152995688107594t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)26.04616329643738.7063922.99160.0037680.001884
dummy-10.22138452844382.348664-4.3524.3e-052.1e-05
y10.1253761186039020.1099121.14070.2576760.128838
y20.3378532972043970.0930563.63060.0005180.000259
y30.4678672214875260.0909855.14222e-061e-06
y4-0.2704211151814800.102597-2.63580.0102220.005111
M17.571003041865042.3516183.21950.0019080.000954
M220.28176194306772.6072727.778900
M38.27516373143113.6006082.29830.0243730.012187
M43.520157314584823.2602451.07970.2837730.141886
M510.42665687028432.6413663.94740.0001788.9e-05
M6-3.972978159585952.923126-1.35920.1782260.089113
M7-8.194581097566052.603545-3.14750.0023740.001187
M816.20006554776512.3949556.764200
M927.66694973113643.607227.669900
M107.359267264025664.6511131.58230.1178550.058928
M11-9.445483160945063.659829-2.58090.0118360.005918
t0.1529956881075940.0419253.64930.0004870.000244


Multiple Linear Regression - Regression Statistics
Multiple R0.958661560930972
R-squared0.919031988406609
Adjusted R-squared0.900431228986505
F-TEST (value)49.4083046638048
F-TEST (DF numerator)17
F-TEST (DF denominator)74
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.13270459506508
Sum Squared Residuals1263.86429798533


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
197.795.80191142243861.89808857756136
2106.3106.664731358788-0.364731358788428
3102.3102.336836358256-0.0368363582559164
4106.698.0463177064518.55368229354897
5108.1108.479427845339-0.37942784533893
693.891.67653138295022.12346861704984
788.289.4153390959708-1.21533909597075
8108.9107.9685630521560.931436947844315
9114.2113.1956171743471.00438282565310
10102.5101.9459525828400.554047417159545
1194.296.817129463303-2.61712946330304
1297.498.3040821402792-0.904082140279151
1398.596.71782368112191.78217631887813
14106.5110.081251661227-3.58125166122733
15102.9103.343967078221-0.443967078220730
1697.1100.642735075199-3.54273507519872
17103.7109.204251506368-5.50425150636793
1893.489.97785450479863.42214549520143
1985.885.10759112488060.692408875119415
20108.6109.878852125595-1.27885212559467
21110.2115.185810700970-4.98581070096981
22101.2102.164327491057-0.964327491057168
23101.297.64732608758083.55267391241919
2496.998.7881113900362-1.88811139003620
2599.4101.329514032334-1.92951403233395
26118.7115.4877297768083.21227022319161
27108104.8866905329493.1133094670507
28101.2107.796202820193-6.59620282019291
29119.9118.7418947641621.15810523583802
3094.894.31707962638330.482920373616732
3195.393.13139728360172.16860271639827
32118119.849590541563-1.84959054156286
33115.9117.684092840722-1.78409284072194
34111.4111.956889660989-0.556889660989302
35108.2104.5168258364553.68317416354451
36108.8105.0726807888123.72731921118750
37109.5110.253256484081-0.753256484080629
38124.8123.1272062442931.67279375570715
39115.3114.5744235449200.725576455080155
40109.5114.115749522604-4.61574952260375
41124.2124.207530663199-0.00753066319855891
4292.9101.262189474720-8.36218947471959
4398.498.0911238910460.308876108953988
44120.9121.199617298228-0.299617298227808
45111.7118.879218547191-7.17921854719137
46116.1116.210221287493-0.110221287492951
47109.4106.0415674881783.35843251182228
48111.7105.8977273210155.80227267898494
49114.3116.192964066722-1.89296406672194
50133.7125.8351958572087.86480414279245
51114.3120.180224688463-5.88022468846286
52126.5120.2947574355246.20524256447606
53131130.7030165579200.296983442080493
54104106.819586244389-2.81958624438931
55108.9111.840313366300-2.94031336629978
56128.5126.6865245478591.81347545214125
57132.4128.5699475017963.83005249820421
58128125.1200717057432.87992829425713
59116.4117.079423982886-0.679423982885972
60120.9120.2614136546780.638586345321618
61118.6121.517248547045-2.91724854704468
62133.1131.3755710385291.72442896147103
63121.1125.805147083985-4.70514708398544
64127.6122.3045061137265.29549388627428
65135.4133.5307498384921.86925016150806
66114.9112.9225778256871.9774221743135
67114.3115.205206184475-0.905206184475013
68128.9134.643257332984-5.74325733298437
69138.9136.1903538188482.70964618115224
70129.4127.4849988933961.91500110660438
71115120.013818104666-5.01381810466618
72128125.3277984556072.67220154439346
73127122.6676494917404.33235050825972
74128.8135.629833430907-6.82983343090748
75137.9133.6403925616124.25960743838776
76128.4126.8040987282901.59590127170979
77135.9136.859567963779-0.959567963779292
78122.2124.114476896314-1.91447689631391
79113.1113.956545798318-0.856545798317991
80136.2128.5912955076987.60870449230236
81138131.5949594161266.40504058387357
82115.2118.917538378482-3.71753837848163
83111113.283909036931-2.28390903693078
8499.2109.248186249572-10.0481862495722
85102.4102.919632274518-0.519632274518023
86112.7116.398480632239-3.69848063223902
87105.5102.5323181515942.96768184840633
8898.3105.195632598014-6.89563259801373
89116.4112.8735608607423.52643913925815
9097.492.30970404475875.0902959552413
9193.390.55248325540812.74751674459186
92117.4118.582299593918-1.18229959391823


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.4714630031748260.9429260063496530.528536996825174
220.3036415967108040.6072831934216090.696358403289196
230.4323268469626860.8646536939253710.567673153037314
240.3037825781143230.6075651562286460.696217421885677
250.2441156914200920.4882313828401830.755884308579908
260.3588272628422940.7176545256845880.641172737157706
270.2679850785428670.5359701570857330.732014921457133
280.2385410113102210.4770820226204420.761458988689779
290.2084729450139630.4169458900279270.791527054986037
300.2330010461402430.4660020922804860.766998953859757
310.2568713185514390.5137426371028770.743128681448561
320.1949742448297980.3899484896595960.805025755170202
330.1425396472572940.2850792945145870.857460352742706
340.09970377409229910.1994075481845980.900296225907701
350.07587348366594190.1517469673318840.924126516334058
360.07437826354413750.1487565270882750.925621736455863
370.04876699522345860.09753399044691730.951233004776541
380.03180299714014190.06360599428028370.968197002859858
390.02186985835857960.04373971671715910.97813014164142
400.02313346757752350.04626693515504690.976866532422477
410.01405925898948450.02811851797896890.985940741010516
420.07481329078447040.1496265815689410.92518670921553
430.05070213754160970.1014042750832190.94929786245839
440.03363066885385590.06726133770771180.966369331146144
450.06498728728534730.1299745745706950.935012712714653
460.04806548356362270.09613096712724530.951934516436377
470.03732002268275450.0746400453655090.962679977317246
480.05932418011057170.1186483602211430.940675819889428
490.04414654675635690.08829309351271370.955853453243643
500.1125833430544200.2251666861088400.88741665694558
510.136309841695590.272619683391180.86369015830441
520.1704872357792510.3409744715585010.829512764220749
530.1288402090252440.2576804180504890.871159790974755
540.1171711445031600.2343422890063190.88282885549684
550.1083683070032040.2167366140064080.891631692996796
560.07722945889243820.1544589177848760.922770541107562
570.07440610386279040.1488122077255810.92559389613721
580.05677142437315160.1135428487463030.943228575626848
590.04097886636668560.08195773273337120.959021133633314
600.02856111454881020.05712222909762050.97143888545119
610.02772639452355480.05545278904710960.972273605476445
620.02501815502934460.05003631005868910.974981844970655
630.04918329058744090.09836658117488190.950816709412559
640.07169406673355980.1433881334671200.92830593326644
650.04933384012664250.0986676802532850.950666159873357
660.03111740809804120.06223481619608240.96888259190196
670.02739036206989190.05478072413978380.972609637930108
680.1357040187482600.2714080374965200.86429598125174
690.1070995240143140.2141990480286290.892900475985686
700.06125071653235070.1225014330647010.93874928346765
710.301796195071570.603592390143140.69820380492843


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level30.0588235294117647NOK
10% type I error level170.333333333333333NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/10jllv1262013699.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/10jllv1262013699.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/1oa5m1262013698.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/1oa5m1262013698.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/2tiea1262013698.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/2tiea1262013698.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/3i6221262013698.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/3i6221262013698.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/4ocl11262013698.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/4ocl11262013698.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/54swh1262013698.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/54swh1262013698.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/6066m1262013698.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/6066m1262013698.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/78fum1262013699.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/78fum1262013699.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/8gsmh1262013699.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/8gsmh1262013699.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/95fd41262013699.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262013801odw4xfd85uc99xe/95fd41262013699.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