Home » date » 2010 » Nov » 28 »

multiple lin regr met 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 11:43:39 +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/t1290944515srr2gbch9s3lcx8.htm/, Retrieved Sun, 28 Nov 2010 12:42:05 +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/t1290944515srr2gbch9s3lcx8.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
geboortes[t] = + 9.19818672888627 + 0.0132098392350795huwelijken[t] + 0.293354221184415M1[t] -0.56153253458797M2[t] + 0.341103580197079M3[t] -0.121286781733764M4[t] + 0.198089975881454M5[t] + 0.00356981211022246M6[t] + 0.575092941052574M7[t] + 0.52683723983993M8[t] + 0.18183353163088M9[t] + 0.379895626257337M10[t] -0.364188821255045M11[t] + 0.00927576263272296t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9.198186728886270.22971240.042200
huwelijken0.01320983923507950.0882260.14970.8813470.440674
M10.2933542211844150.1662871.76410.0814320.040716
M2-0.561532534587970.149699-3.75110.0003270.000164
M30.3411035801970790.1493362.28410.0249490.012475
M4-0.1212867817337640.169829-0.71420.477150.238575
M50.1980899758814540.2511740.78870.4325870.216293
M60.003569812110222460.306570.01160.9907380.495369
M70.5750929410525740.3119491.84350.0688620.034431
M80.526837239839930.343621.53320.1290760.064538
M90.181833531630880.3150080.57720.5653630.282681
M100.3798956262573370.1618842.34670.0213530.010676
M11-0.3641888212550450.153352-2.37490.0198910.009945
t0.009275762632722960.001128.281100


Multiple Linear Regression - Regression Statistics
Multiple R0.842552367519587
R-squared0.709894492012861
Adjusted R-squared0.663902155380753
F-TEST (value)15.4350603599748
F-TEST (DF numerator)13
F-TEST (DF denominator)82
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.297327119757428
Sum Squared Residuals7.24908012374631


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
19.7699.521675048855620.247324951144384
29.3218.683554034562230.637445965437768
39.9399.59964022117830.33935977882171
49.3369.162813353657020.173186646342977
510.1959.506472251276010.688527748723986
69.4649.325230431425730.138769568574266
710.019.920771503587160.0892284964128417
810.2139.875318743782050.337681256217951
99.5639.546050409591680.0169495904083260
109.899.709373082519570.180626917480431
119.3058.959029626699460.345970373300543
129.3919.34065789123450.0503421087654952
139.9289.63208593138030.295914068619706
148.6868.79371393014146-0.107713930141456
159.8439.713234674958630.129765325041366
169.6279.263184758363050.363815241636948
1710.0749.612127591676080.461872408323924
189.5039.444280548810170.0587194511898332
1910.11910.00898985619690.110010143803086
20109.986482587143140.0135174128568620
219.3139.64914304118013-0.336143041180130
229.8669.819744335526550.0462556644734458
239.1729.070616184916070.101383815083931
249.2419.45289173157363-0.211891731573636
259.6599.73887731795457-0.079877317954572
268.9048.90627801646147-0.00227801646146475
279.7559.81944482860657-0.0644448286065678
289.089.37211613889341-0.292116138893414
299.4359.7228555103424-0.287855510342408
308.9719.55112477474139-0.580124774741386
3110.06310.1197309847025-0.0567309847024809
329.79310.1063649243994-0.313364924399381
339.4549.74683284852144-0.292832848521439
349.7599.93340483850307-0.174404838503073
358.829.18357656641313-0.36357656641313
369.4039.55945855088092-0.156458550880917
379.6769.85259066028803-0.176590660288033
388.6429.01843259776519-0.376432597765186
399.4029.93355446611708-0.531554466117082
409.619.487929845665250.122070154334747
419.2949.83977884361-0.545778843609992
429.4489.65705752176538-0.209057521765383
4310.31910.23299519250190.086004807498052
449.54810.2157058099460-0.667705809946029
459.8019.86095569587119-0.059955695871187
469.59610.0464708987140-0.450470898714015
478.9239.29518954430821-0.372189544308212
489.7469.672854857072740.0731451429272648
499.8299.96710980281483-0.138109802814832
509.1259.1330309993274-0.0080309993273959
519.78210.0417064661326-0.259706466132573
529.4419.60688749417504-0.165887494175038
539.1629.9497802211184-0.787780221118394
549.9159.7681949454480.146805054551996
5510.44410.35966738712500.0843326128749786
5610.20910.3168565951669-0.107856595166929
579.9859.974787926757760.0102120732422363
589.84210.1587179488924-0.316717948892381
599.4299.40759511255740.0214048874426007
6010.1329.784956599019520.347043400980484
619.84910.0782340166582-0.229234016658217
629.1729.23963744815238-0.0676374481523826
6310.31310.15261932254820.160380677451805
649.8199.71811738673230.100882613267697
659.95510.0608251759264-0.105825175926369
6610.0489.878368050866460.169631949133538
6710.08210.4715445618048-0.389544561804806
6810.54110.42960561923620.111394380763773
6910.20810.09046953513730.117530464862750
7010.23310.2680059950821-0.0350059950820889
719.4399.5190231527032-0.0800231527031908
729.9639.896503527718420.066496472281576
7310.15810.1885788499867-0.0305788499867327
749.2259.34937462887608-0.124374628876085
7510.47410.26782537671520.206174623284780
769.7579.82796024616989-0.0709602461698861
7710.4910.17189655041280.318103449587187
7810.2819.999161867029920.281838132970076
7910.44410.580185325872-0.136185325871995
8010.6410.54354352883670.0964564711633165
8110.69510.21331087638220.48168912361785
8210.78610.37849613664220.407503863357809
839.8329.629394405710180.202605594289825
849.74710.0110226702452-0.264022670245223
8510.41110.29984837206170.111151627938297
869.5119.46197834471380.0490216552862017
8710.40210.38197464374340.0200253562565613
889.7019.93199077634403-0.230990776344032
8910.5410.28126385563790.258736144362067
9010.11210.1185818599129-0.00658185991293939
9110.91510.70211518820970.212884811790324
9211.18310.65312219148960.529877808510436
9310.38410.32144966655840.0625503334415937
9410.83410.49178676412010.342213235879872
959.8869.741575406692370.144424593307632
9610.21610.12065417225500.0953458277449558


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.674174037277760.6516519254444810.325825962722241
180.6515909284878660.6968181430242680.348409071512134
190.5209605179940390.9580789640119210.479039482005961
200.4240974598080150.848194919616030.575902540191985
210.3568100782233990.7136201564467990.6431899217766
220.2766179679548980.5532359359097950.723382032045102
230.2207174395653160.4414348791306320.779282560434684
240.1512361618113820.3024723236227640.848763838188618
250.1059562983189730.2119125966379470.894043701681027
260.08333736872968850.1666747374593770.916662631270311
270.05808496503122140.1161699300624430.941915034968779
280.06763804049003220.1352760809800640.932361959509968
290.1923221379761910.3846442759523830.807677862023809
300.1985386310241610.3970772620483220.801461368975839
310.1654818809911790.3309637619823570.834518119008821
320.1234849523937550.2469699047875090.876515047606245
330.09927126223362550.1985425244672510.900728737766375
340.08172393163945610.1634478632789120.918276068360544
350.06178610457731840.1235722091546370.938213895422682
360.06679305570010410.1335861114002080.933206944299896
370.05878193203470.11756386406940.9412180679653
380.03970429298918680.07940858597837350.960295707010813
390.03300848906763000.06601697813526010.96699151093237
400.1301798088092430.2603596176184870.869820191190757
410.1342751967760960.2685503935521930.865724803223904
420.1547939185789090.3095878371578190.845206081421091
430.2116335853870600.4232671707741190.78836641461294
440.2529861579884460.5059723159768930.747013842011554
450.3133025977810310.6266051955620620.686697402218969
460.2961323717921560.5922647435843110.703867628207844
470.2651449659663060.5302899319326130.734855034033694
480.4055259338027970.8110518676055950.594474066197203
490.4002244843195620.8004489686391250.599775515680438
500.4722505664486150.944501132897230.527749433551385
510.4416364759633390.8832729519266770.558363524036661
520.4064762791271090.8129525582542190.59352372087289
530.7452647119856530.5094705760286940.254735288014347
540.8239575824234160.3520848351531690.176042417576584
550.8776764129205040.2446471741589920.122323587079496
560.8756874115847210.2486251768305580.124312588415279
570.8756393702217270.2487212595565450.124360629778273
580.911482676891420.1770346462171580.0885173231085792
590.9005375428401770.1989249143196460.099462457159823
600.9708809364427030.05823812711459350.0291190635572968
610.9606112894376560.07877742112468780.0393887105623439
620.9443101232440360.1113797535119290.0556898767559643
630.943084108971940.1138317820561190.0569158910280597
640.9607502196796360.07849956064072810.0392497803203640
650.9564806926328680.08703861473426450.0435193073671323
660.9515367978869150.096926404226170.048463202113085
670.9514864407503470.09702711849930540.0485135592496527
680.9371721388084790.1256557223830420.062827861191521
690.915898094021690.1682038119566180.0841019059783092
700.9298722791686510.1402554416626970.0701277208313486
710.9190769175127610.1618461649744770.0809230824872386
720.8902777677294470.2194444645411070.109722232270553
730.8417896325869940.3164207348260130.158210367413006
740.7813897269341780.4372205461316440.218610273065822
750.7316887430553450.5366225138893090.268311256944655
760.6288382224386270.7423235551227450.371161777561373
770.5322880965815640.9354238068368720.467711903418436
780.5725062477946920.8549875044106170.427493752205308
790.4121554755153250.824310951030650.587844524484675


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 level80.126984126984127NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290944515srr2gbch9s3lcx8/10io3d1290944611.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290944515srr2gbch9s3lcx8/10io3d1290944611.ps (open in new window)


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


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


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


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


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290944515srr2gbch9s3lcx8/9pw3a1290944611.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290944515srr2gbch9s3lcx8/9pw3a1290944611.ps (open in new window)


 
Parameters (Session):
par1 = 2 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 2 ; 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