Home » date » 2010 » Nov » 28 »

multiple linear regression zonder seiz en trend

*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 10:02:14 +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/t129093853571pgprob1300n9k.htm/, Retrieved Sun, 28 Nov 2010 11:02:25 +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/t129093853571pgprob1300n9k.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 «
1.579 9.769 2.146 9.321 2.462 9.939 3.695 9.336 4.831 10.195 5.134 9.464 6.250 10.010 5.760 10.213 6.249 9.563 2.917 9.890 1.741 9.305 2.359 9.391 1.511 9.928 2.059 8.686 2.635 9.843 2.867 9.627 4.403 10.074 5.720 9.503 4.502 10.119 5.749 10.000 5.627 9.313 2.846 9.866 1.762 9.172 2.429 9.241 1.169 9.659 2.154 8.904 2.249 9.755 2.687 9.080 4.359 9.435 5.382 8.971 4.459 10.063 6.398 9.793 4.596 9.454 3.024 9.759 1.887 8.820 2.070 9.403 1.351 9.676 2.218 8.642 2.461 9.402 3.028 9.610 4.784 9.294 4.975 9.448 4.607 10.319 6.249 9.548 4.809 9.801 3.157 9.596 1.910 8.923 2.228 9.746 1.594 9.829 2.467 9.125 2.222 9.782 3.607 9.441 4.685 9.162 4.962 9.915 5.770 10.444 5.480 10.209 5.000 9.985 3.228 9.842 1.993 9.429 2.288 10.132 1.580 9.849 2.111 9.172 2.192 10.313 3.601 9.819 4.665 9.955 4.876 10.048 5.813 10.082 5.589 10.541 5.331 10.208 3.075 10.233 2.002 9.439 2.306 9.963 1.507 10.158 1.992 9.225 2.487 10.474 3.490 9.757 4.647 10.490 5.5 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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
huwelijken[t] = -8.06040832663057 + 1.18849990912292geboortes[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-8.060408326630572.919378-2.7610.006930.003465
geboortes1.188499909122920.2969864.00190.0001256.3e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.381537512253697
R-squared0.14557087325674
Adjusted R-squared0.136481201695641
F-TEST (value)16.0149761493855
F-TEST (DF numerator)1
F-TEST (DF denominator)94
p-value0.00012532493577333
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.48456585486723
Sum Squared Residuals207.169963079142


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11.5793.55004728559125-1.97104728559125
22.1463.01759932630420-0.871599326304203
32.4623.75209227014217-1.29009227014217
43.6953.035426824941050.659573175058952
54.8314.056348246877640.774651753122361
65.1343.187554813308781.94644518669122
76.253.83647576368992.4135242363101
85.764.077741245241851.68225875475815
96.2493.305216304311952.94378369568805
102.9173.69385577459515-0.776855774595149
111.7412.99858332775824-1.25758332775824
122.3593.10079431994281-0.741794319942809
131.5113.73901877114182-2.22801877114182
142.0592.26290188401115-0.203901884011147
152.6353.63799627886637-1.00299627886637
162.8673.38128029849582-0.514280298495819
174.4033.912539757873770.490460242126234
185.723.233906309764582.48609369023542
194.5023.96602225378430.535977746215703
205.7493.824590764598671.92440923540133
215.6273.008091327031222.61890867296878
222.8463.6653317767762-0.819331776776197
231.7622.84051283984489-1.07851283984489
242.4292.92251933357437-0.49351933357437
251.1693.41931229558775-2.25031229558775
262.1542.52199486419994-0.367994864199944
272.2493.53340828686355-1.28440828686355
282.6872.73117084820558-0.0441708482055793
294.3593.153088315944221.20591168405578
305.3822.601624358111182.78037564188882
314.4593.899466258873410.559533741126585
326.3983.578571283410222.81942871658978
334.5963.175669814217551.42033018578245
343.0243.53816228650004-0.514162286500045
351.8872.42216087183362-0.535160871833619
362.073.11505631885228-1.04505631885228
371.3513.43951679404284-2.08851679404284
382.2182.210607888009740.00739211199026221
392.4613.11386781894316-0.65286781894316
403.0283.36107580004073-0.333075800040728
414.7842.985509828757881.79849017124211
424.9753.168538814762821.80646118523718
434.6074.203722235608880.403277764391117
446.2493.287388805675112.96161119432489
454.8093.588079282683211.22092071731679
463.1573.34443680131301-0.187436801313008
471.912.54457636247328-0.63457636247328
482.2283.52271178768145-1.29471178768145
491.5943.62135728013865-2.02735728013865
502.4672.78465334411611-0.317653344116111
512.2223.56549778440987-1.34349778440987
523.6073.160219315398960.446780684601045
534.6852.828627840753661.85637215924634
544.9623.723568272323221.23843172767678
555.774.352284724249251.41771527575075
565.484.072987245605361.40701275439464
5753.806763265961821.19323673403818
583.2283.63680777895725-0.408807778957248
591.9933.14595731648948-1.15295731648948
602.2883.98147275260289-1.69347275260289
611.583.64512727832111-2.06512727832111
622.1112.84051283984489-0.729512839844889
632.1924.19659123615414-2.00459123615415
643.6013.60947228104742-0.00847228104742098
654.6653.771108268688140.893891731311862
664.8763.881638760236570.99436123976343
675.8133.922047757146751.89095224285325
685.5894.467569215434171.12143078456583
695.3314.071798745696241.25920125430376
703.0754.10151124342431-1.02651124342431
712.0023.15784231558071-1.15584231558071
722.3063.78061626796112-1.47461626796112
731.5074.01237375024009-2.50537375024009
741.9922.9035033350284-0.911503335028403
752.4874.38793972152293-1.90093972152294
763.493.5357852866818-0.0457852866817981
774.6474.40695572006890.240044279931098
785.5944.158559239062211.43544076093779
795.6114.352284724249251.25871527575075
805.7884.585230706437341.20276929356266
816.2044.65059820143911.55340179856090
823.0134.75875169316929-1.74575169316929
831.9313.62492277986602-1.69392277986602
842.5493.52390028759057-0.97490028759057
851.5044.31306422724819-2.80906422724819
862.093.24341430903756-1.15341430903756
872.7024.30236772806608-1.60036772806608
882.9393.46922929177092-0.530229291770915
894.54.466380715525050.0336192844749527
906.2083.957702754420442.25029724557956
916.4154.912068181446141.50293181855386
925.6575.230586157091090.426413842908912
935.9644.280974729701871.68302527029813
943.1634.81579968880719-1.65279968880719
951.9973.68910177495865-1.69210177495865
962.4224.08130674496922-1.65930674496922


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.5420045493542470.9159909012915060.457995450645753
60.6845746760839130.6308506478321740.315425323916087
70.8034982572409180.3930034855181640.196501742759082
80.7519272035206090.4961455929587820.248072796479391
90.8611519792627620.2776960414744750.138848020737238
100.8420256003506720.3159487992986550.157974399649328
110.8281320914679740.3437358170640510.171867908532026
120.7769357320854220.4461285358291570.223064267914578
130.8630957577082220.2738084845835550.136904242291778
140.8108314594335240.3783370811329520.189168540566476
150.7793056108896010.4413887782207980.220694389110399
160.7201779169565640.5596441660868720.279822083043436
170.6524483444253020.6951033111493960.347551655574698
180.7554839570616390.4890320858767220.244516042938361
190.6948875481848150.610224903630370.305112451815185
200.7070149376910820.5859701246178350.292985062308918
210.7988036365876150.402392726824770.201196363412385
220.77177345673740.4564530865251990.228226543262600
230.7491010843588920.5017978312822170.250898915641108
240.6982391833062470.6035216333875060.301760816693753
250.7726068692944740.4547862614110510.227393130705526
260.7202240358722850.559551928255430.279775964127715
270.7082185976791710.5835628046416570.291781402320829
280.6494329804502030.7011340390995930.350567019549797
290.6261729616780660.7476540766438680.373827038321934
300.7553972074863840.4892055850272320.244602792513616
310.708366051639290.583267896721420.29163394836071
320.8142507988774280.3714984022451430.185749201122572
330.8056589405556750.3886821188886490.194341059444325
340.769266044545860.4614679109082790.230733955454139
350.7277209906474140.5445580187051720.272279009352586
360.7034083410502050.593183317899590.296591658949795
370.7546537985404670.4906924029190670.245346201459533
380.7050801404651740.5898397190696530.294919859534826
390.661716456406860.6765670871862790.338283543593140
400.6085735072398280.7828529855203450.391426492760172
410.6357324796277680.7285350407444630.364267520372232
420.6644645741544610.6710708516910780.335535425845539
430.6114428254147840.7771143491704320.388557174585216
440.7736001071392450.4527997857215110.226399892860755
450.7628060563224860.4743878873550270.237193943677514
460.717831338226260.5643373235474790.282168661773740
470.6737900742243710.6524198515512570.326209925775629
480.6591340678691850.681731864261630.340865932130815
490.7005949068756540.5988101862486930.299405093124346
500.6503437845938920.6993124308122160.349656215406108
510.6351600996639970.7296798006720050.364839900336002
520.590488425121720.8190231497565590.409511574878279
530.6665110877447980.6669778245104050.333488912255203
540.6644038361949630.6711923276100750.335596163805037
550.6566148340306130.6867703319387750.343385165969387
560.6579429660235260.6841140679529470.342057033976474
570.6555350287338430.6889299425323150.344464971266157
580.6037955103633070.7924089792733850.396204489636693
590.5641299268005450.8717401463989110.435870073199455
600.575519788265540.848960423468920.42448021173446
610.6077246979620390.7845506040759210.392275302037961
620.5543218221262660.8913563557474670.445678177873734
630.599150666050510.801698667898980.40084933394949
640.5415623786797330.9168752426405340.458437621320267
650.5188928622814020.9622142754371960.481107137718598
660.5021033085496990.9957933829006020.497896691450301
670.5810245555616860.8379508888766280.418975444438314
680.5564212423979350.8871575152041290.443578757602065
690.5667674169920040.8664651660159920.433232583007996
700.5204744580427640.9590510839144730.479525541957236
710.4653757886774420.9307515773548840.534624211322558
720.4333777077528610.8667554155057220.566622292247139
730.5188186187933660.9623627624132670.481181381206634
740.4551062513323230.9102125026646460.544893748667677
750.4907664453379740.9815328906759480.509233554662026
760.4287775697544220.8575551395088450.571222430245578
770.3587474239057550.717494847811510.641252576094245
780.3762650973398090.7525301946796170.623734902660191
790.3704926844936630.7409853689873260.629507315506337
800.3523523975284430.7047047950568860.647647602471557
810.3806257110590250.7612514221180510.619374288940975
820.3898895286185190.7797790572370380.610110471381481
830.3417067646034570.6834135292069140.658293235396543
840.2657257134631150.5314514269262290.734274286536885
850.420360810018370.840721620036740.57963918998163
860.3321482209720120.6642964419440250.667851779027988
870.3279221750152470.6558443500304930.672077824984753
880.2322344269314470.4644688538628930.767765573068553
890.1495993735478750.2991987470957490.850400626452125
900.311661485705070.623322971410140.68833851429493
910.2769724144972890.5539448289945770.723027585502711


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 level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/28/t129093853571pgprob1300n9k/102mg71290938526.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t129093853571pgprob1300n9k/102mg71290938526.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t129093853571pgprob1300n9k/1vljv1290938526.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t129093853571pgprob1300n9k/1vljv1290938526.ps (open in new window)


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Nov/28/t129093853571pgprob1300n9k/6h4z11290938526.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t129093853571pgprob1300n9k/6h4z11290938526.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t129093853571pgprob1300n9k/79vgm1290938526.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t129093853571pgprob1300n9k/79vgm1290938526.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t129093853571pgprob1300n9k/89vgm1290938526.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t129093853571pgprob1300n9k/89vgm1290938526.ps (open in new window)


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