Home » date » 2010 » Nov » 28 »

paper 2

*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: Sun, 28 Nov 2010 13:36:17 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx.htm/, Retrieved Sun, 28 Nov 2010 14:34:39 +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/2010/Nov/28/t12909512793yrw7poh9uktzmx.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
9939 2462 9321 9769 9336 3695 9939 9321 10195 4831 9336 9939 9464 5134 10195 9336 10010 6250 9464 10195 10213 5760 10010 9464 9563 6249 10213 10010 9890 2917 9563 10213 9305 1741 9890 9563 9391 2359 9305 9890 9928 1511 9391 9305 8686 2059 9928 9391 9843 2635 8686 9928 9627 2867 9843 8686 10074 4403 9627 9843 9503 5720 10074 9627 10119 4502 9503 10074 10000 5749 10119 9503 9313 5627 10000 10119 9866 2846 9313 10000 9172 1762 9866 9313 9241 2429 9172 9866 9659 1169 9241 9172 8904 2154 9659 9241 9755 2249 8904 9659 9080 2687 9755 8904 9435 4359 9080 9755 8971 5382 9435 9080 10063 4459 8971 9435 9793 6398 10063 8971 9454 4596 9793 10063 9759 3024 9454 9793 8820 1887 9759 9454 9403 2070 8820 9759 9676 1351 9403 8820 8642 2218 9676 9403 9402 2461 8642 9676 9610 3028 9402 8642 9294 4784 9610 9402 9448 4975 9294 9610 10319 4607 9448 9294 9548 6249 10319 9448 9801 4809 9548 10319 9596 3157 9801 9548 8923 1910 9596 9801 9746 2228 8923 9596 9829 1594 9746 8923 9125 2467 982 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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
geboortes[t] = + 3636.49072146088 -0.112892682481442huwelijk[t] + 0.263683500627482`geboortes-1`[t] + 0.288035361724047`geboortes-2`[t] + 1160.87808712201M1[t] + 804.780496030499M2[t] + 1154.06440433495M3[t] + 1093.94205740715M4[t] + 1625.10788116370M5[t] + 1529.28339577008M6[t] + 984.223018622452M7[t] + 980.829801148078M8[t] + 147.756081412069M9[t] + 717.42433813678M10[t] + 1000.90518467358M11[t] + 5.07968162684446t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)3636.490721460881159.9356493.13510.0024220.001211
huwelijk-0.1128926824814420.086241-1.3090.1943660.097183
`geboortes-1`0.2636835006274820.1135012.32320.0227770.011388
`geboortes-2`0.2880353617240470.1033062.78820.0066560.003328
M11160.87808712201179.0148036.484800
M2804.780496030499173.4080914.6411.4e-057e-06
M31154.06440433495273.3831484.22146.5e-053.3e-05
M41093.94205740715308.8092873.54250.0006730.000336
M51625.10788116370324.6399345.00593e-062e-06
M61529.28339577008331.6429734.61121.5e-058e-06
M7984.223018622452310.6834423.16790.0021920.001096
M8980.829801148078169.0870855.800700
M9147.756081412069141.1533511.04680.2984350.149218
M10717.42433813678167.2579714.28935.1e-052.5e-05
M111000.90518467358153.9081616.503300
t5.079681626844461.5190143.34410.0012710.000635


Multiple Linear Regression - Regression Statistics
Multiple R0.884336823751576
R-squared0.782051617843026
Adjusted R-squared0.740138467428223
F-TEST (value)18.6588602885558
F-TEST (DF numerator)15
F-TEST (DF denominator)78
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation262.90500426931
Sum Squared Residuals5391285.21904797


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
199399796.1180639714142.881936028592
293369339.82003834253-3.82003834253125
3101959584.942243642610.057756358004
494649548.51189946857-84.5118994685679
51001010013.4389079649-3.43890796494149
6102139911.4288605364301.571139463594
795639527.038701410935.961298589096
898909791.9604866136698.0395133863438
993058995.72976268722309.270237312777
1093919440.64273868193-49.642738681932
1199289679.11235603523248.887643964766
1286868787.7907439339-101.790743933896
1398439715.90240903992127.097590960079
1496279286.03528820429340.96471179571
15100749743.29699522327330.703004776725
1695039595.22555374235-92.2255537423492
171011910247.1628742205-128.162874220497
181000010013.6017402415-13.6017402414689
1993139633.44539823076-320.445398230761
2098669733.65963938788132.340360612121
2191728975.97795143117196.022048568825
2292419451.71367616553-210.713676165533
2396599700.8166047626-41.8166047625996
2489048723.8859526929180.114047307107
2597559800.43665483291-45.4366548329134
2690809406.8997113737-326.899711373707
2794359639.63846609964-204.638466099642
2889719368.2903601792-397.290360179195
29100639988.6392206138574.3607793861538
3097939833.28948036081-40.2894803608146
3194549740.08146850483-286.081468504826
3297599752.076975139916.9230248600869
3388209035.22139707908-215.221397079078
3494039429.56195277316-26.5619527731574
3596769682.5545958479-6.5545958478979
3686428828.76134864618-186.761348646177
3794029773.27110965389-371.271109653890
3896109260.81394567647349.186054323533
3992949690.69102821114-396.69102821114
4094489590.67322959654-142.673229596545
411031910118.0513269249200.948673075055
42954810115.9625132757-567.962513275689
4398019786.1261016060314.873898393965
4495969818.94793898736-222.947938987360
4589239150.5489048201-227.548904820103
4697469452.89072506683293.109274933166
4798299836.18893649984-7.18893649984465
4891259000.74695489778124.253045102215
49978210032.6371814359-250.637181435941
5094419495.726071993-54.726071993004
5191629827.71450914803-665.71450914803
5299159569.61281577675345.387184223254
531044410132.8328437666311.167156233379
541020910431.2061171296-222.206117129616
55998510035.8189929045-50.8189929044848
56984210110.7978762684-268.797876268363
5794299319.99963940786109.000360592138
58101329711.3538939417420.646106058297
59984910146.2533378513-297.253337851294
6091729218.34824902134-46.3482490213436
611031310115.1339731965197.86602680351
6298199710.91320844425108.086791555751
63995510143.5476826325-188.547682632449
64100489958.2561487215789.7438512784332
651008210452.4165853727-370.416585372677
661054110422.7122701434118.287729856578
671020810042.6818157895165.31818421052
681023310343.4557969425-110.455796942469
6994399547.27191919747-108.271919197471
7099639885.5366666195577.4633333804525
711015810173.7685252058-15.7685252057688
7292259325.5388833213-100.538883321297
731047410245.7649636926228.235036307415
7497579842.11939349422-85.1193934942221
751049010236.5612466379253.438753362083
761028110061.3678626308219.632137369163
771044410751.7142609246-307.71426092463
781064010623.768472360616.2315276393991
791069510135.4561510115559.54384898846
801078610568.3406883947217.659311605284
8198329902.3336761824-70.333676182395
82974710181.9710950787-434.971095078689
831041110291.3056437974119.694356202639
8495119379.9278674866131.072132513392
851040210430.7356441769-28.7356441768527
86970110028.6723424715-327.672342471529
871054010278.6078284056261.392171594448
881011210050.062129884261.9378701158072
891091510691.7439802118223.256019788158
901118310775.0305459520407.969454048017
911038410502.3513705420-118.351370541969
921083410686.7605982656147.239401734356
9398869878.91674919477.08325080530635
941021610285.3292516726-69.329251672604


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.2011826338594200.4023652677188390.79881736614058
200.1047739928353370.2095479856706740.895226007164663
210.07067286281174680.1413457256234940.929327137188253
220.03407869819969800.06815739639939610.965921301800302
230.03695076193291270.07390152386582530.963049238067087
240.04639207865869570.09278415731739140.953607921341304
250.02967776033687930.05935552067375870.97032223966312
260.04523780300110220.09047560600220440.954762196998898
270.2511339678924080.5022679357848160.748866032107592
280.2532022653636220.5064045307272440.746797734636378
290.2058274693673760.4116549387347520.794172530632624
300.1615545308744460.3231090617488920.838445469125554
310.1382949374914890.2765898749829770.861705062508511
320.1032647114077280.2065294228154550.896735288592272
330.07557841358631550.1511568271726310.924421586413685
340.0941304277345390.1882608554690780.905869572265461
350.06699254251524110.1339850850304820.933007457484759
360.0481968602958170.0963937205916340.951803139704183
370.03791807845558040.07583615691116090.96208192154442
380.1433210672057040.2866421344114090.856678932794296
390.1540414809197450.3080829618394910.845958519080255
400.1688885975675490.3377771951350990.83111140243245
410.2440969863016490.4881939726032970.755903013698351
420.2648102883117030.5296205766234070.735189711688297
430.3299392819863960.6598785639727910.670060718013604
440.3335935057472880.6671870114945760.666406494252712
450.3061111486547430.6122222973094870.693888851345256
460.4343530356912750.868706071382550.565646964308725
470.4183656767164870.8367313534329740.581634323283513
480.5142013464888320.9715973070223360.485798653511168
490.4604659292884170.9209318585768330.539534070711584
500.4078313113082550.815662622616510.592168688691745
510.7917325306124020.4165349387751970.208267469387598
520.8432703011892330.3134593976215340.156729698810767
530.8768632734799870.2462734530400260.123136726520013
540.852611893084460.2947762138310810.147388106915540
550.8295434583703470.3409130832593070.170456541629653
560.8865763264561980.2268473470876040.113423673543802
570.8603323459541340.2793353080917330.139667654045867
580.9339982302290010.1320035395419980.0660017697709988
590.9092521980903110.1814956038193780.090747801909689
600.8763314460887960.2473371078224090.123668553911204
610.864236806830290.2715263863394190.135763193169710
620.8983913474830020.2032173050339950.101608652516998
630.8703202157295520.2593595685408970.129679784270448
640.8522413021042350.2955173957915300.147758697895765
650.8794656961025350.2410686077949300.120534303897465
660.8361076023744530.3277847952510940.163892397625547
670.7998481304190260.4003037391619470.200151869580974
680.838727087474010.3225458250519820.161272912525991
690.8481508472290670.3036983055418650.151849152770933
700.7738066747067280.4523866505865440.226193325293272
710.7124341347608980.5751317304782040.287565865239102
720.5977337762263740.8045324475472520.402266223773626
730.4874974494068010.9749948988136020.512502550593199
740.3562878027387680.7125756054775370.643712197261232
750.2772591919422680.5545183838845360.722740808057732


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level70.122807017543860NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/10dxf1290951367.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/10dxf1290951367.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/10oeu91290951367.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/10oeu91290951367.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/2b4w01290951367.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/2b4w01290951367.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/3b4w01290951367.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/3b4w01290951367.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/4b4w01290951367.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/4b4w01290951367.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/5b4w01290951367.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/5b4w01290951367.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/63ddl1290951367.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/63ddl1290951367.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/7emu61290951367.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/7emu61290951367.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/8emu61290951367.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/8emu61290951367.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/9emu61290951367.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909512793yrw7poh9uktzmx/9emu61290951367.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