Home » date » 2008 » Nov » 24 »

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Mon, 24 Nov 2008 15:49:19 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2.htm/, Retrieved Mon, 24 Nov 2008 22:50:57 +0000
 
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/2008/Nov/24/t1227567057ur4pshtj007itw2.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106.7 0 110.2 0 125.9 0 100.1 0 106.4 0 114.8 0 81.3 0 87 0 104.2 0 108 0 105 0 94.5 0 92 0 95.9 0 108.8 0 103.4 0 102.1 0 110.1 0 83.2 0 82.7 0 106.8 0 113.7 0 102.5 0 96.6 0 92.1 0 95.6 0 102.3 0 98.6 0 98.2 0 104.5 0 84 0 73.8 0 103.9 0 106 0 97.2 0 102.6 0 89 0 93.8 0 116.7 1 106.8 1 98.5 1 118.7 1 90 1 91.9 1 113.3 1 113.1 1 104.1 1 108.7 1 96.7 1 101 1 116.9 1 105.8 1 99 1 129.4 1 83 1 88.9 1 115.9 1 104.2 1 113.4 1 112.2 1 100.8 1 107.3 1 126.6 1 102.9 1 117.9 1 128.8 1 87.5 1 93.8 1 122.7 1 126.2 1 124.6 1 116.7 1 115.2 1 111.1 1 129.9 1 113.3 1 118.5 1 133.5 1 102.1 1 102.4 1
 
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
y[t] = + 99.5657894736842 + 10.1961152882206x[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)99.56578947368421.90059752.386600
x10.19611528822062.6230733.88710.0002120.000106


Multiple Linear Regression - Regression Statistics
Multiple R0.402835258883971
R-squared0.162276245800116
Adjusted R-squared0.151536197669348
F-TEST (value)15.1094523808727
F-TEST (DF numerator)1
F-TEST (DF denominator)78
p-value0.000211700505996615
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.7160664254836
Sum Squared Residuals10706.7645739348


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1106.799.56578947368447.13421052631564
2110.299.565789473684210.6342105263158
3125.999.565789473684226.3342105263158
4100.199.56578947368420.534210526315787
5106.499.56578947368426.8342105263158
6114.899.565789473684215.2342105263158
781.399.5657894736842-18.2657894736842
88799.5657894736842-12.5657894736842
9104.299.56578947368424.6342105263158
1010899.56578947368428.4342105263158
1110599.56578947368425.43421052631579
1294.599.5657894736842-5.06578947368421
139299.5657894736842-7.5657894736842
1495.999.5657894736842-3.6657894736842
15108.899.56578947368429.2342105263158
16103.499.56578947368423.8342105263158
17102.199.56578947368422.53421052631579
18110.199.565789473684210.5342105263158
1983.299.5657894736842-16.3657894736842
2082.799.5657894736842-16.8657894736842
21106.899.56578947368427.23421052631579
22113.799.565789473684214.1342105263158
23102.599.56578947368422.93421052631579
2496.699.5657894736842-2.96578947368421
2592.199.5657894736842-7.46578947368421
2695.699.5657894736842-3.96578947368421
27102.399.56578947368422.73421052631579
2898.699.5657894736842-0.965789473684213
2998.299.5657894736842-1.36578947368420
30104.599.56578947368424.93421052631579
318499.5657894736842-15.5657894736842
3273.899.5657894736842-25.7657894736842
33103.999.56578947368424.3342105263158
3410699.56578947368426.43421052631579
3597.299.5657894736842-2.36578947368420
36102.699.56578947368423.03421052631579
378999.5657894736842-10.5657894736842
3893.899.5657894736842-5.76578947368421
39116.7109.7619047619056.93809523809524
40106.8109.761904761905-2.96190476190477
4198.5109.761904761905-11.2619047619048
42118.7109.7619047619058.93809523809524
4390109.761904761905-19.7619047619048
4491.9109.761904761905-17.8619047619048
45113.3109.7619047619053.53809523809523
46113.1109.7619047619053.33809523809523
47104.1109.761904761905-5.66190476190477
48108.7109.761904761905-1.06190476190476
4996.7109.761904761905-13.0619047619048
50101109.761904761905-8.76190476190476
51116.9109.7619047619057.13809523809524
52105.8109.761904761905-3.96190476190477
5399109.761904761905-10.7619047619048
54129.4109.76190476190519.6380952380952
5583109.761904761905-26.7619047619048
5688.9109.761904761905-20.8619047619048
57115.9109.7619047619056.13809523809524
58104.2109.761904761905-5.56190476190476
59113.4109.7619047619053.63809523809524
60112.2109.7619047619052.43809523809524
61100.8109.761904761905-8.96190476190477
62107.3109.761904761905-2.46190476190477
63126.6109.76190476190516.8380952380952
64102.9109.761904761905-6.86190476190476
65117.9109.7619047619058.13809523809524
66128.8109.76190476190519.0380952380953
6787.5109.761904761905-22.2619047619048
6893.8109.761904761905-15.9619047619048
69122.7109.76190476190512.9380952380952
70126.2109.76190476190516.4380952380952
71124.6109.76190476190514.8380952380952
72116.7109.7619047619056.93809523809524
73115.2109.7619047619055.43809523809524
74111.1109.7619047619051.33809523809523
75129.9109.76190476190520.1380952380952
76113.3109.7619047619053.53809523809523
77118.5109.7619047619058.73809523809524
78133.5109.76190476190523.7380952380952
79102.1109.761904761905-7.66190476190477
80102.4109.761904761905-7.36190476190476


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.572991271774110.854017456451780.42700872822589
60.4412232784469810.8824465568939630.558776721553019
70.8675933875193660.2648132249612680.132406612480634
80.906133351419140.1877332971617210.0938666485808604
90.8519061028869940.2961877942260130.148093897113006
100.7936068760750390.4127862478499220.206393123924961
110.717434622962340.565130754075320.28256537703766
120.6764787675208830.6470424649582350.323521232479117
130.6541369140507850.6917261718984290.345863085949215
140.5890092557982220.8219814884035550.410990744201778
150.5337417801304210.9325164397391590.466258219869579
160.4510346230717190.9020692461434370.548965376928281
170.3709384557112850.741876911422570.629061544288715
180.3368583866795530.6737167733591060.663141613320447
190.4552457711814070.9104915423628140.544754228818593
200.5570140080935250.885971983812950.442985991906475
210.5042176296120330.9915647407759330.495782370387967
220.525446884271330.949106231457340.47455311572867
230.4572811809798840.9145623619597690.542718819020116
240.3960027627976280.7920055255952570.603997237202372
250.3620028118383750.724005623676750.637997188161625
260.3077480728572060.6154961457144110.692251927142794
270.2532729441505550.5065458883011090.746727055849445
280.2029154189639820.4058308379279640.797084581036018
290.1597293774839240.3194587549678470.840270622516076
300.1313625575890170.2627251151780330.868637442410984
310.1619801751254490.3239603502508980.838019824874551
320.3580977755517550.716195551103510.641902224448245
330.3067487542749850.6134975085499710.693251245725015
340.2719520885930590.5439041771861190.72804791140694
350.2216705198461550.4433410396923110.778329480153845
360.1867091378520510.3734182757041010.81329086214795
370.1678916876738630.3357833753477270.832108312326137
380.1350447052742970.2700894105485950.864955294725703
390.1065163826575330.2130327653150670.893483617342467
400.08524448474128280.1704889694825660.914755515258717
410.08205005518837840.1641001103767570.917949944811622
420.07348379148870880.1469675829774180.926516208511291
430.1156196031635960.2312392063271930.884380396836404
440.1424066684961160.2848133369922320.857593331503884
450.1186205934837860.2372411869675730.881379406516214
460.0952277107110850.190455421422170.904772289288915
470.07381219160262320.1476243832052460.926187808397377
480.05406864135171060.1081372827034210.94593135864829
490.0540935317184860.1081870634369720.945906468281514
500.04466961668306520.08933923336613040.955330383316935
510.03814518233542130.07629036467084270.961854817664579
520.02736127969993270.05472255939986550.972638720300067
530.02472641690553130.04945283381106250.975273583094469
540.04937338899635130.09874677799270270.950626611003649
550.1656314790768670.3312629581537340.834368520923133
560.2905628240781280.5811256481562560.709437175921872
570.2495485688437010.4990971376874030.750451431156299
580.2185850461305890.4371700922611770.781414953869412
590.1750700953212090.3501401906424190.82492990467879
600.1355080926515900.2710161853031800.86449190734841
610.1329526207738260.2659052415476530.867047379226174
620.1057958944103590.2115917888207190.89420410558964
630.1234419172820030.2468838345640060.876558082717997
640.1122567321637380.2245134643274750.887743267836262
650.08553381104492080.1710676220898420.91446618895508
660.1103069087736890.2206138175473790.88969309122631
670.3314095030566670.6628190061133340.668590496943333
680.5836499405285580.8327001189428840.416350059471442
690.5221741885649590.9556516228700830.477825811435041
700.5044154667749620.9911690664500760.495584533225038
710.4641774848496450.928354969699290.535822515150355
720.3532370676015090.7064741352030180.646762932398491
730.245867250666920.491734501333840.75413274933308
740.1625691971339890.3251383942679780.837430802866011
750.1832346355380570.3664692710761140.816765364461943


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.0140845070422535OK
10% type I error level50.0704225352112676OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/10cvfo1227566948.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/10cvfo1227566948.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/1ignl1227566948.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/1ignl1227566948.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/2kr9n1227566948.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/2kr9n1227566948.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/3is7f1227566948.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/3is7f1227566948.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/4hbfv1227566948.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/4hbfv1227566948.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/5y3se1227566948.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/5y3se1227566948.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/6xlpk1227566948.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/6xlpk1227566948.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/7kkug1227566948.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/7kkug1227566948.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/89s7s1227566948.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/89s7s1227566948.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/92i4b1227566948.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227567057ur4pshtj007itw2/92i4b1227566948.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