Home » date » 2010 » Dec » 05 »

multiple lineair regression zonder trens/seizoenaliteit

*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, 05 Dec 2010 10:28:13 +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/Dec/05/t12915448288d5kj6k04e4dprq.htm/, Retrieved Sun, 05 Dec 2010 11:27:08 +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/Dec/05/t12915448288d5kj6k04e4dprq.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 «
9769 1579 9321 2146 9939 2462 9336 3695 10195 4831 9464 5134 10010 6250 10213 5760 9563 6249 9890 2917 9305 1741 9391 2359 9928 1511 8686 2059 9843 2635 9627 2867 10074 4403 9503 5720 10119 4502 10000 5749 9313 5627 9866 2846 9172 1762 9241 2429 9659 1169 8904 2154 9755 2249 9080 2687 9435 4359 8971 5382 10063 4459 9793 6398 9454 4596 9759 3024 8820 1887 9403 2070 9676 1351 8642 2218 9402 2461 9610 3028 9294 4784 9448 4975 10319 4607 9548 6249 9801 4809 9596 3157 8923 1910 9746 2228 9829 1594 9125 2467 9782 2222 9441 3607 9162 4685 9915 4962 10444 5770 10209 5480 9985 5000 9842 3228 9429 1993 10132 2288 9849 1580 9172 2111 10313 2192 9819 3601 9955 4665 10048 4876 10082 5813 10541 5589 10208 5331 10233 3075 9439 2002 9963 2306 10158 1507 9225 1992 10474 2487 9757 3490 10490 4647 10281 5594 10444 5611 10640 5788 10695 6204 10786 3013 9832 1931 9747 2549 10411 1504 9511 2090 10402 2702 9701 2939 10540 4500 10112 6208 10915 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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
geboortes[t] = + 9374.9968309701 + 0.122482864440576huwelijken[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9374.9968309701120.63291977.715100
huwelijken0.1224828644405760.0306064.00190.0001256.3e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.381537512253696
R-squared0.145570873256740
Adjusted R-squared0.136481201695641
F-TEST (value)16.0149761493854
F-TEST (DF numerator)1
F-TEST (DF denominator)94
p-value0.000125324935773441
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation476.581915316111
Sum Squared Residuals21350250.2685991


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
197699568.39727392173200.602726078269
293219637.84505805956-316.845058059564
399399676.54964322279262.450356777214
493369827.57101507802-491.571015078016
5101959966.7115490825228.288450917490
6946410003.823857008-539.823857008004
71001010140.5147337237-130.514733723686
81021310080.4981301478132.501869852196
9956310140.3922508592-577.392250859246
1098909732.27934654325157.720653456752
1193059588.23949796113-283.239497961131
1293919663.9339081854-272.933908185407
1399289560.0684391398367.931560860202
1486869627.18904885323-941.189048853234
1598439697.739178771145.260821228995
1696279726.15520332122-99.155203321219
17100749914.28888310194159.711116898057
18950310075.5988155702-572.598815570181
19101199926.41468668156192.58531331844
201000010079.1508186390-79.150818638958
21931310064.2079091772-751.207909177208
2298669723.58306316797142.416936832033
2391729590.81163811438-418.811638114383
2492419672.50770869625-431.507708696247
2596599518.17929950112140.820700498878
2689049638.82492097509-734.824920975089
2797559650.46079309694104.539206903057
2890809704.10828772192-624.108287721915
2994359908.89963706656-473.899637066558
30897110034.1996073893-1063.19960738927
31100639921.14792351062141.852076489385
32979310158.6421976609-365.642197660892
3394549937.92807593897-483.928075938974
3497599745.3850130383913.6149869616106
3588209606.12199616946-786.121996169455
3694039628.53636036208-225.53636036208
3796769540.4711808293135.528819170694
3886429646.66382429928-1004.66382429929
3994029676.42716035835-274.427160358345
4096109745.87494449615-135.874944496152
4192949960.9548544538-666.954854453803
4294489984.34908156195-536.349081561952
43103199939.27538744782379.724612552179
44954810140.3922508592-592.392250859246
4598019964.01692606482-163.016926064817
4695969761.67523400899-165.675234008986
4789239608.93910205159-685.939102051588
4897469647.888652943798.1113470563089
4998299570.23451688837258.765483111634
5091259677.16205754499-552.162057544989
5197829647.15375575705134.846244242952
5294419816.79252300725-375.792523007245
5391629948.82905087418-786.829050874186
5499159982.75680432422-67.756804324225
551044410081.7229587922362.27704120779
561020910046.2029281044162.797071895557
5799859987.41115317297-2.41115317296683
5898429770.3715173842771.6284826157332
5994299619.10517980016-190.105179800156
60101329655.23762481013476.762375189874
6198499568.5197567862280.480243213802
6291729633.55815780414-461.558157804144
63103139643.47926982383669.52073017617
6498199816.05762582062.94237417939849
6599559946.379393585378.62060641462601
66100489972.2232779823475.7767220176646
671008210086.9897219632-4.98972196315485
681054110059.5535603285481.446439671534
691020810027.9529813028180.047018697203
70102339751.63163912486481.368360875141
7194399620.20752558012-181.207525580121
7299639657.44231637006305.557683629944
73101589559.57850768204598.421492317964
7492259618.98269693571-393.982696935715
75104749679.6117148338794.3882851662
7697579802.4620278677-45.4620278676976
77104909944.17470202544545.825297974556
781028110060.1659746507220.834025349331
791044410062.2481833462381.751816653842
801064010083.9276503521556.07234964786
811069510134.8805219594560.11947804058
82107869744.037701529541041.96229847046
8398329611.51124220484220.48875779516
8497479687.2056524291259.7943475708841
85104119559.21105908872851.788940911286
8695119630.9860176509-119.986017650892
87104029705.94553068852696.054469311476
8897019734.97396956094-33.9739695609404
89105409926.16972095268613.830279047321
901011210135.3704534172-23.3704534171822
911091510160.7244063564754.275593643619
921118310067.88239511041115.11760488957
931038410105.4846344937278.515365506318
94108349762.410131195631071.58986880437
9598869619.59511125792266.404888742082
96102169671.65032864516544.349671354837


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.4518981365112760.9037962730225520.548101863488724
60.3850846406857390.7701692813714780.614915359314261
70.2687013383337550.537402676667510.731298661666245
80.2149034196070080.4298068392140160.785096580392992
90.1962729262028530.3925458524057050.803727073797147
100.1366442722218470.2732885444436950.863355727778153
110.1091445202367760.2182890404735520.890855479763224
120.0760104712418740.1520209424837480.923989528758126
130.07062697313589130.1412539462717830.929373026864109
140.2504224211694350.5008448423388690.749577578830566
150.2036228309292540.4072456618585080.796377169070746
160.1464969422037670.2929938844075340.853503057796233
170.1219995619395010.2439991238790010.8780004380605
180.1147360833887830.2294721667775670.885263916611217
190.1007904189315150.2015808378630310.899209581068485
200.07155792743867180.1431158548773440.928442072561328
210.09544891717123650.1908978343424730.904551082828764
220.0736471610870010.1472943221740020.926352838912999
230.06775411718893890.1355082343778780.932245882811061
240.05961077624038640.1192215524807730.940389223759614
250.04402225432686480.08804450865372960.955977745673135
260.06998219491639540.1399643898327910.930017805083605
270.05360957703227170.1072191540645430.946390422967728
280.06253354025866930.1250670805173390.93746645974133
290.05451405092207550.1090281018441510.945485949077924
300.1382215084532000.2764430169064000.8617784915468
310.1258153845595260.2516307691190520.874184615440474
320.1054625090529640.2109250181059280.894537490947036
330.09703076055514550.1940615211102910.902969239444855
340.07595577967315030.1519115593463010.92404422032685
350.1231030328096660.2462060656193320.876896967190334
360.0984795154475070.1969590308950140.901520484552493
370.0802681683050850.160536336610170.919731831694915
380.2018201130423060.4036402260846110.798179886957694
390.1746410521173260.3492821042346530.825358947882674
400.144738502805760.289477005611520.85526149719424
410.1780442776478260.3560885552956520.821955722352174
420.1911281354509930.3822562709019870.808871864549007
430.2189231889418620.4378463778837230.781076811058138
440.2587223080238310.5174446160476620.741277691976169
450.23416928187990.46833856375980.7658307181201
460.2053904648522950.410780929704590.794609535147705
470.2892255233806810.5784510467613610.71077447661932
480.256484718029580.512969436059160.74351528197042
490.2372017407136780.4744034814273560.762798259286322
500.2923735061942070.5847470123884130.707626493805793
510.2605159020108270.5210318040216550.739484097989173
520.276217411161870.552434822323740.72378258883813
530.4869147405278570.9738294810557140.513085259472143
540.4748153171655480.9496306343310970.525184682834452
550.4964899173212550.992979834642510.503510082678745
560.4788726410414180.9577452820828360.521127358958582
570.4599228521274890.9198457042549780.540077147872511
580.4261735206832160.8523470413664330.573826479316784
590.420643090173290.841286180346580.57935690982671
600.4301628145448830.8603256290897660.569837185455117
610.3945927854705420.7891855709410850.605407214529458
620.5009818699625980.9980362600748040.499018130037402
630.556422635132910.887154729734180.44357736486709
640.5330295724214920.9339408551570150.466970427578508
650.5174450710230880.9651098579538240.482554928976912
660.4969804408769190.9939608817538380.503019559123081
670.503186966453590.993626067092820.49681303354641
680.4969936675362680.9939873350725360.503006332463732
690.4726677632394220.9453355264788440.527332236760578
700.4510386848967320.9020773697934630.548961315103268
710.4726803584516160.9453607169032330.527319641548384
720.4252362116805090.8504724233610180.574763788319491
730.4189403838745650.837880767749130.581059616125435
740.5685802891448050.862839421710390.431419710855195
750.6102956970306260.7794086059387480.389704302969374
760.6300157536860220.7399684926279550.369984246313978
770.5949449404110190.8101101191779620.405055059588981
780.5624225558179740.8751548883640530.437577444182027
790.5132121442005360.9735757115989280.486787855799464
800.4645561464237880.9291122928475760.535443853576212
810.4109896071001480.8219792142002950.589010392899852
820.5346460761007860.930707847798430.465353923899215
830.460636626273590.921273252547180.53936337372641
840.4316708842933120.8633417685866230.568329115706688
850.4567979046398930.9135958092797870.543202095360107
860.4979983564453950.995996712890790.502001643554605
870.4298306394642290.8596612789284590.570169360535771
880.4827624837234250.965524967446850.517237516276575
890.3720015801361700.7440031602723410.62799841986383
900.5143931896694820.9712136206610350.485606810330518
910.3671566462500970.7343132925001950.632843353749903


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 level10.0114942528735632OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/1098bm1291544884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/1098bm1291544884.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/126es1291544884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/126es1291544884.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/2dgdv1291544884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/2dgdv1291544884.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/3dgdv1291544884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/3dgdv1291544884.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/4dgdv1291544884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/4dgdv1291544884.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/567cy1291544884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/567cy1291544884.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/667cy1291544884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/667cy1291544884.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/7gguj1291544884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/7gguj1291544884.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/8gguj1291544884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/8gguj1291544884.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/998bm1291544884.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t12915448288d5kj6k04e4dprq/998bm1291544884.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