Home » date » 2010 » Nov » 20 »

WS 7

*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: Sat, 20 Nov 2010 16:26:00 +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/20/t129027032029ozstnaigfj9a6.htm/, Retrieved Sat, 20 Nov 2010 17:25:20 +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/20/t129027032029ozstnaigfj9a6.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 «
9 15 6 25 68 14 10 8 23 48 8 10 7 17 44 8 12 9 19 67 14 9 8 29 46 15 18 11 23 54 9 14 9 23 61 11 11 11 21 52 14 11 12 26 46 14 9 6 24 55 6 17 8 25 52 10 21 12 26 76 9 16 9 23 49 11 21 7 29 30 14 14 8 24 75 8 24 20 20 51 11 7 8 23 50 10 9 6 29 38 16 18 16 24 47 8 14 6 22 52 11 13 6 22 66 11 13 6 22 66 7 18 11 17 33 13 14 12 24 48 10 12 8 21 57 9 12 8 24 64 9 9 7 23 58 15 11 9 21 59 13 8 9 24 42 16 5 4 24 39 11 9 6 19 59 6 11 8 26 37 14 11 8 24 49 4 15 4 28 80 12 16 14 22 62 10 12 8 23 44 14 14 10 24 53 9 13 6 23 58 10 10 8 23 69 14 18 10 30 63 14 17 11 20 36 10 12 8 23 38 9 13 8 21 46 14 13 10 27 56 8 11 8 12 37 9 13 10 15 51 8 12 7 22 44 10 12 8 27 58 9 12 8 21 37 9 12 7 21 65 9 13 6 21 48 9 17 9 21 53 11 18 5 18 51 15 7 5 24 39 8 17 7 24 64 12 14 7 28 47 8 12 7 25 47 14 9 9 14 64 11 9 5 30 59 10 13 8 19 54 12 10 8 29 55 9 12 9 25 72 13 10 6 25 58 14 11 8 25 59 15 13 8 16 36 8 6 6 25 62 7 7 4 28 63 10 13 6 24 50 10 11 5 24 70 11 9 6 22 59 8 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Intrinsic[t] = + 54.2386642084418 -0.587744609266962Doubts[t] + 0.0524751067601769PerantalExpectations[t] -0.423549311998046ParentalCriticism[t] + 0.371892413952631Organization[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)54.23866420844189.9980495.42491e-060
Doubts-0.5877446092669620.452204-1.29970.1973790.09869
PerantalExpectations0.05247510676017690.3954550.13270.8947630.447382
ParentalCriticism-0.4235493119980460.546946-0.77440.4409550.220477
Organization0.3718924139526310.325551.14230.2566740.128337


Multiple Linear Regression - Regression Statistics
Multiple R0.219898124366846
R-squared0.0483551851000568
Adjusted R-squared0.00136037942598555
F-TEST (value)1.02894744230714
F-TEST (DF numerator)4
F-TEST (DF denominator)81
p-value0.39745463009183
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.0129215191381
Sum Squared Residuals9824.03967132238


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16856.492103803269311.5078961967307
24851.7001217712323-3.70012177123229
34453.4187842551163-9.41878425511632
46753.420420672545813.5795793274542
54653.8790011481879-7.8790011481879
65450.26153008005263.73846991994739
76154.42519593260986.57480406739024
85251.5013979418940.498602058106046
94651.1740768718582-5.17407687185818
105552.86663770242082.13336229757916
115257.5131892205945-5.51318922059449
127654.049806376527821.9501936234722
134954.5301461461301-5.53014614613011
143056.695485569109-26.6954855691090
157552.281914612225622.7180853877744
165149.76297193564211.2370280643579
175053.3059302787526-3.30593027875264
183857.0770782092518-19.0770782092518
194747.9279313247481-0.927931324748048
205255.9116960639182-3.91169606391823
216654.095987129357211.9040128706428
226654.095987129357211.9040128706428
233352.7321324704725-19.7321324704725
244851.1754619735004-3.17546197350041
255753.41226559391523.58773440608477
266455.11568744504018.88431255495992
275855.0099190228052.99008097719503
285949.99751812882229.0024818711778
294252.1312592689335-10.1312592689335
303952.3283466808423-13.3283466808423
315952.77040946045866.22959053954143
323757.570230993986-20.5702309939861
334952.1244892919451-3.1244892919451
348061.393602715458118.6063972845419
356250.277273344386411.7227266556136
364454.1560504218205-10.1560504218205
375351.43481598822951.56518401177046
385855.64336876184372.35663123815628
396954.051100208300114.9488997916999
406353.8760708989869.12392910101397
413649.6811223407015-13.6811223407015
423854.1560504218205-16.1560504218205
434654.0524853099424-8.05248530994237
445652.49801812332733.50198187667275
453751.1882479801153-14.1882479801153
465150.97403220223050.0259677977695099
474455.3831965383998-11.3831965383998
485855.6436200776312.35637992236898
493754.0000102031822-17.0000102031822
506554.423559515180210.5764404848198
514854.8995839339385-6.89958393393846
525353.838836424985-0.838836424985029
535153.2943423193456-2.29434231934557
543952.5974921916316-13.5974921916316
556456.3893569001067.61064309989403
564755.3685227985681-8.36852279856812
574756.4988737802577-9.49887378025772
586447.877065626900416.1229343730996
595957.28477532593561.71522467406445
605452.72095587277011.27904412722986
615555.106965473482-0.106965473482001
627255.064030546994716.9359694530053
635853.87874983240064.12125016759940
645952.49638170589776.50361829410227
653648.6665555845774-12.6665555845774
666256.60757245169475.39242754830529
676359.21056803357583.78943196642417
685055.4275165665294-5.42751656652939
697055.746115665007114.2538843349929
705953.88608670231655.11391329768354
717352.787789142221920.2122108577781
726255.33179095614176.66820904385829
734152.7225922901997-11.7225922901997
745654.63150794765121.36849205234875
755254.9531285652007-2.95312856520069
765451.05476849564632.94523150435371
777351.333678493978721.6663215060213
784050.6812396642641-10.6812396642641
794155.0264804958535-14.0264804958535
805454.2596155336986-0.259615533698615
814249.9004716781452-7.90047167814517
827053.671870924431716.3281290755683
835151.7472120026463-0.747212002646311
846056.22434339412233.77565660587770
854954.788115059217-5.78811505921701
865255.4373080625895-3.43730806258953


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.2862379894996560.5724759789993120.713762010500344
90.1681259896082390.3362519792164780.83187401039176
100.1691051165114310.3382102330228630.830894883488569
110.2763966138686450.552793227737290.723603386131355
120.3254498842732830.6508997685465650.674550115726717
130.3414471032443300.6828942064886610.65855289675567
140.7792697218700580.4414605562598850.220730278129942
150.9178295602267780.1643408795464440.0821704397732218
160.9072518746338060.1854962507323890.0927481253661944
170.8670270045704960.2659459908590090.132972995429504
180.8696752461060470.2606495077879060.130324753893953
190.8353863536976920.3292272926046160.164613646302308
200.7890538362796150.4218923274407690.210946163720385
210.7685239256057120.4629521487885750.231476074394288
220.7427557477817930.5144885044364140.257244252218207
230.8984057713825320.2031884572349360.101594228617468
240.8645297866298190.2709404267403630.135470213370181
250.8237445652600790.3525108694798430.176255434739921
260.8199979774565350.360004045086930.180002022543465
270.7773124450086610.4453751099826770.222687554991339
280.7394903969073650.5210192061852710.260509603092635
290.7229308817180460.5541382365639090.277069118281954
300.7642123323725560.4715753352548880.235787667627444
310.7165250561546430.5669498876907140.283474943845357
320.7794562483204040.4410875033591930.220543751679596
330.7322272106130750.5355455787738510.267772789386925
340.8622759962367080.2754480075265840.137724003763292
350.8717646386526740.2564707226946510.128235361347326
360.8640009971636270.2719980056727460.135999002836373
370.8258384354202070.3483231291595860.174161564579793
380.7819123573832880.4361752852334250.218087642616712
390.8231851210082960.3536297579834070.176814878991704
400.824566843937580.3508663121248390.175433156062420
410.8482422681518720.3035154636962550.151757731848128
420.8838881566174350.2322236867651290.116111843382565
430.8665131829545050.2669736340909890.133486817045495
440.8343256903369790.3313486193260430.165674309663021
450.8676229207271880.2647541585456240.132377079272812
460.8298677888766630.3402644222466750.170132211123337
470.8381855202154850.3236289595690300.161814479784515
480.7976692608512610.4046614782974780.202330739148739
490.868564540378330.2628709192433380.131435459621669
500.8600284967828550.2799430064342910.139971503217145
510.8453678492449230.3092643015101550.154632150755077
520.8014229004877890.3971541990244220.198577099512211
530.7548514427794860.4902971144410280.245148557220514
540.8165435734480370.3669128531039260.183456426551963
550.8136906217799440.3726187564401120.186309378220056
560.7845958615512490.4308082768975020.215404138448751
570.7802580308091990.4394839383816020.219741969190801
580.8150814574054770.3698370851890470.184918542594523
590.7743708757561360.4512582484877280.225629124243864
600.7155439239082920.5689121521834160.284456076091708
610.6546356886104980.6907286227790040.345364311389502
620.7563405134163820.4873189731672360.243659486583618
630.6943457345700890.6113085308598220.305654265429911
640.6434713005940020.7130573988119970.356528699405998
650.6673350687369810.6653298625260380.332664931263019
660.6026832856586740.7946334286826520.397316714341326
670.5678378855108690.8643242289782610.432162114489131
680.5399905134918160.9200189730163670.460009486508184
690.492985141447670.985970282895340.50701485855233
700.415152358474810.830304716949620.58484764152519
710.7635431118688910.4729137762622180.236456888131109
720.7679140496759770.4641719006480470.232085950324023
730.6854844747325870.6290310505348260.314515525267413
740.5758423423851350.848315315229730.424157657614865
750.4592461776264210.9184923552528420.540753822373579
760.4396618305239340.8793236610478680.560338169476066
770.4624350760509670.9248701521019340.537564923949033
780.538171418317440.923657163365120.46182858168256


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/20/t129027032029ozstnaigfj9a6/106hlu1290270350.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/106hlu1290270350.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/1hy6i1290270350.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/1hy6i1290270350.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/2a7n31290270350.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/2a7n31290270350.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/3a7n31290270350.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/3a7n31290270350.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/4a7n31290270350.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/4a7n31290270350.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/5lh4o1290270350.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/5lh4o1290270350.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/6lh4o1290270350.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/6lh4o1290270350.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/7v84r1290270350.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/7v84r1290270350.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/8v84r1290270350.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/8v84r1290270350.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/96hlu1290270350.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t129027032029ozstnaigfj9a6/96hlu1290270350.ps (open in new window)


 
Parameters (Session):
par1 = 5 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 5 ; 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