Home » date » 2010 » Dec » 17 »

multi regression lin trend y-1

*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: Fri, 17 Dec 2010 14:32:33 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr.htm/, Retrieved Fri, 17 Dec 2010 15:31:33 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr.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 «
100.00 0 100,21 100.42 0 100.00 100.50 0 100.42 101.14 0 100.50 101.98 0 101.14 102.31 0 101.98 103.27 0 102.31 103.80 0 103.27 103.46 0 103.80 105.06 0 103.46 106.08 0 105.06 106.74 0 106.08 107.35 0 106.74 108.96 0 107.35 109.85 0 108.96 109.81 0 109.85 109.99 0 109.81 111.60 0 109.99 112.74 0 111.60 112.78 0 112.74 113.66 0 112.78 115.37 0 113.66 116.26 0 115.37 116.24 0 116.26 116.73 0 116.24 118.76 0 116.73 119.78 0 118.76 120.23 0 119.78 121.48 0 120.23 124.07 0 121.48 125.82 0 124.07 126.92 0 125.82 128.48 0 126.92 131.44 0 128.48 133.51 0 131.44 134.58 0 133.51 136.68 0 134.58 140.10 0 136.68 142.45 0 140.10 143.91 0 142.45 146.19 0 143.91 149.84 0 146.19 152.31 0 149.84 153.62 0 152.31 155.79 0 153.62 159.89 0 155.79 163.21 0 159.89 165.32 0 163.21 167.68 0 165.32 171.79 0 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'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
woningprijsindex_us[t] = + 3.26808178579541 -6.7292968674863Dummy_[t] + 0.960574149589203Y1[t] + 0.123234411445745t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)3.268081785795411.2896082.53420.0133570.006679
Dummy_-6.72929686748630.709424-9.485600
Y10.9605741495892030.01559361.601100
t0.1232344114457450.0315253.9090.0002020.000101


Multiple Linear Regression - Regression Statistics
Multiple R0.999235671676733
R-squared0.998471927551252
Adjusted R-squared0.998410804653302
F-TEST (value)16335.4808269943
F-TEST (DF numerator)3
F-TEST (DF denominator)75
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.69071015269754
Sum Squared Residuals214.38756153259


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
110099.65045172757530.349548272424711
2100.4299.57196556760720.848034432392764
3100.5100.098641121880.401358878119529
4101.14100.2987214652930.84127853470666
5101.98101.0367233324760.94327666752383
6102.31101.9668400295770.343159970423147
7103.27102.4070639103870.862936089612962
8103.8103.4524495054380.347550494561589
9103.46104.084788216166-0.62478821616644
10105.06103.8814274167521.17857258324815
11106.08105.541580467540.538419532459678
12106.74106.6446005115670.0953994884329456
13107.35107.401813861742-0.0518138617416712
14108.96108.1109985044370.84900149556317
15109.85109.7807572967210.0692427032788055
16109.81110.758902701301-0.948902701301321
17109.99110.843714146764-0.853714146763514
18111.6111.1398519051350.460148094864688
19112.74112.80961069742-0.0696106974196718
20112.78114.027899639397-1.2478996393971
21113.66114.189557016826-0.529557016826428
22115.37115.1580966799110.211903320089339
23116.26116.923912887154-0.663912887153949
24116.24117.902058291734-1.6620582917341
25116.73118.006081220188-1.27608122018804
26118.76118.5999969649330.160003035067501
27119.78120.673196900044-0.893196900044334
28120.23121.776216944071-1.54621694407106
29121.48122.331709722832-0.851709722831949
30124.07123.6556618212640.414338178735787
31125.82126.266783280146-0.446783280145984
32126.92128.071022453373-1.15102245337283
33128.48129.250888429367-0.770888429366717
34131.44130.8726185141720.567381485828401
35133.51133.839152408401-0.3291524084014
36134.58135.950775309497-1.37077530949677
37136.68137.101824061003-0.421824061002986
38140.1139.2422641865860.857735813413935
39142.45142.650662189627-0.20066218962688
40143.91145.031245852607-1.12124585260724
41146.19146.556918522453-0.366918522453228
42149.84148.8702619949620.969738005037648
43152.31152.499592052409-0.189592052408695
44153.62154.99544461334-1.37544461333977
45155.79156.377031160747-0.587031160747384
46159.89158.5847114768021.30528852319831
47163.21162.6462999015630.563700098436855
48165.32165.958640489645-0.63864048964508
49167.68168.108686356724-0.42868635672402
50171.79170.49887576121.29112423879969
51175.38174.5700699274580.80993007254233
52177.81178.141765535929-0.331765535928649
53181.09180.5991951308760.490804869123839
54186.48183.8731127529742.60688724702549
55191.07189.1738418307061.89615816929396
56194.23193.7061115887660.523888411233762
57197.82196.8647603129140.95523968708614
58204.41200.4364559213853.97354407861515
59209.26206.8898739786232.37012602137655
60212.24211.6718930155770.568106984423206
61214.88214.6576383927980.222361607201603
62218.87217.316788559161.55321144084038
63219.86221.272713827466-1.41271382746628
64219.75222.346916647005-2.59691664700536
65220.89222.364487901996-1.47448790199629
66224.02223.5827768439740.437223156026304
67222.27226.712608343634-4.44260834363367
68217.27218.425541125812-1.15554112581201
69213.23213.745904789312-0.515904789311758
70212.44209.9884196364172.4515803635829
71207.87209.352800469687-1.48280046968738
72199.46205.08621101751-5.62621101751047
73198.19197.1310168309111.05898316908897
74199.77196.0343220723783.73567792762153
75200.1197.6752636401752.42473635982482
76195.76198.115487520985-2.35548752098535
77191.27194.069830123214-2.79983012321393
78195.79189.8800866030045.90991339699581
79192.7194.345116170593-1.64511617059312


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.005889856615314530.01177971323062910.994110143384686
80.0007814207627925480.00156284152558510.999218579237207
90.001280058759407690.002560117518815380.998719941240592
100.0006131278699447040.001226255739889410.999386872130055
110.000441759043021910.000883518086043820.999558240956978
120.0001270042815583770.0002540085631167540.999872995718442
132.94736549857688e-055.89473099715376e-050.999970526345014
144.40469075945615e-058.80938151891231e-050.999955953092405
151.29116341812702e-052.58232683625404e-050.999987088365819
166.0742547010553e-061.21485094021106e-050.9999939257453
172.58203455716982e-065.16406911433963e-060.999997417965443
181.53027137041159e-063.06054274082318e-060.99999846972863
196.17017313810558e-071.23403462762112e-060.999999382982686
202.23233138337282e-074.46466276674564e-070.999999776766862
215.55984247773268e-081.11196849554654e-070.999999944401575
226.87053255762369e-081.37410651152474e-070.999999931294674
232.24999632188856e-084.49999264377711e-080.999999977500037
248.68974475672035e-091.73794895134407e-080.999999991310255
252.44805361163145e-094.89610722326289e-090.999999997551946
264.91414748636707e-099.82829497273414e-090.999999995085852
271.96878444005683e-093.93756888011366e-090.999999998031216
285.24939717740853e-101.04987943548171e-090.99999999947506
292.29558422548247e-104.59116845096493e-100.999999999770442
306.16062661332501e-091.232125322665e-080.999999993839373
315.22403812452502e-091.044807624905e-080.999999994775962
321.67540990725043e-093.35081981450085e-090.99999999832459
336.54932089112843e-101.30986417822569e-090.999999999345068
342.22462171744387e-094.44924343488774e-090.999999997775378
357.17672814030436e-101.43534562806087e-090.999999999282327
364.11238392099702e-108.22476784199405e-100.999999999588762
371.4235968569187e-102.8471937138374e-100.99999999985764
382.29540978994238e-104.59081957988477e-100.99999999977046
397.002618546597e-111.4005237093194e-100.999999999929974
405.42215336188816e-111.08443067237763e-100.999999999945778
411.73574047261901e-113.47148094523801e-110.999999999982643
421.55317161560564e-113.10634323121129e-110.999999999984468
435.26851013804443e-121.05370202760889e-110.999999999994731
441.21750415792041e-112.43500831584082e-110.999999999987825
455.6301240966949e-121.12602481933898e-110.99999999999437
468.18172785393371e-121.63634557078674e-110.999999999991818
472.78896076198704e-125.57792152397409e-120.999999999997211
482.83123082700073e-125.66246165400146e-120.999999999997169
492.19140704667363e-124.38281409334726e-120.999999999997809
501.62324870006575e-123.24649740013149e-120.999999999998377
516.66284694285265e-131.33256938857053e-120.999999999999334
521.26666588465889e-122.53333176931777e-120.999999999998733
531.15274983513013e-122.30549967026026e-120.999999999998847
543.49404012061374e-126.98808024122749e-120.999999999996506
551.7329603306646e-123.4659206613292e-120.999999999998267
563.98873659709799e-127.97747319419599e-120.999999999996011
578.94273998232906e-121.78854799646581e-110.999999999991057
584.46127829040043e-118.92255658080086e-110.999999999955387
591.43317621121009e-112.86635242242018e-110.999999999985668
604.45850638457971e-118.91701276915943e-110.999999999955415
611.67463135741857e-103.34926271483715e-100.999999999832537
625.50688325514802e-111.1013766510296e-100.999999999944931
631.61051361747654e-093.22102723495309e-090.999999998389486
641.28162736254926e-072.56325472509853e-070.999999871837264
652.79546797539384e-075.59093595078768e-070.999999720453203
661.44421333950313e-072.88842667900626e-070.999999855578666
672.57345315764893e-065.14690631529786e-060.999997426546842
681.40802528835106e-062.81605057670212e-060.999998591974712
697.5668707566483e-071.51337415132966e-060.999999243312924
705.67620062428038e-050.0001135240124856080.999943237993757
710.00275624216157110.00551248432314220.997243757838429
720.003250481629155570.006500963258311130.996749518370844


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level650.984848484848485NOK
5% type I error level661NOK
10% type I error level661NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/102m51292596344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/102m51292596344.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/10631y1292596344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/10631y1292596344.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/202m51292596344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/202m51292596344.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/3atmp1292596344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/3atmp1292596344.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/4atmp1292596344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/4atmp1292596344.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/5atmp1292596344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/5atmp1292596344.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/63k3a1292596344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/63k3a1292596344.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/7wu2v1292596344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/7wu2v1292596344.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/8wu2v1292596344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/8wu2v1292596344.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/9wu2v1292596344.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292596290va9uwp1xzvorzvr/9wu2v1292596344.ps (open in new window)


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