Home » date » 2010 » Nov » 23 »

*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: Tue, 23 Nov 2010 16:41:37 +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/23/t1290530412fcsxp8tpp7sqhbm.htm/, Retrieved Tue, 23 Nov 2010 17:40:15 +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/23/t1290530412fcsxp8tpp7sqhbm.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 «
10 14 0 11 0 24 0 26 0 14 11 11 7 7 25 25 23 23 18 6 6 17 17 30 30 25 25 15 12 0 10 0 19 0 23 0 18 8 8 12 12 22 22 19 19 11 10 10 12 12 22 22 29 29 17 10 10 11 11 25 25 25 25 19 11 11 11 11 23 23 21 21 7 16 16 12 12 17 17 22 22 12 11 11 13 13 21 21 25 25 13 13 0 14 0 19 0 24 0 15 12 12 16 16 19 19 18 18 14 8 8 11 11 15 15 22 22 14 12 12 10 10 16 16 15 15 16 11 0 11 0 23 0 22 0 16 4 0 15 0 27 0 28 0 12 9 9 9 9 22 22 20 20 12 8 0 11 0 14 0 12 0 13 8 0 17 0 22 0 24 0 16 14 14 17 17 23 23 20 20 9 15 15 11 11 23 23 21 21 11 11 0 11 0 20 0 28 0 14 8 8 15 15 23 23 24 24 11 9 0 13 0 19 0 24 0 17 9 9 13 13 22 22 23 23 14 8 8 12 12 32 32 25 25 15 9 9 17 17 25 25 21 21 11 16 0 9 0 29 0 26 0 15 11 0 9 0 28 0 22 0 14 16 0 12 0 17 0 22 0 11 12 12 18 18 28 28 22 22 12 12 0 12 0 29 0 23 0 9 10 0 15 0 14 0 17 0 16 9 9 16 16 25 25 23 23 13 10 0 10 0 26 0 23 0 15 12 0 11 0 20 0 25 0 10 14 0 9 0 32 0 24 0 13 14 14 17 17 25 25 21 21 16 10 10 12 12 20 20 28 28 15 6 6 6 6 15 15 16 16 13 13 13 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'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Perceived_happiness[t] = + 18.0703506993062 -0.345268804897921Doubts_about_actions[t] -0.169898748342036`Doubts_about_actions*G`[t] -0.0551277931462227Parental_expectations[t] + 0.246451657746884`Parental_expectations*G`[t] -0.0770701169689628Personal_standards[t] + 0.172410480676388`Personal_standards*G`[t] + 0.0569201045809098Organization[t] -0.200013667756433`Organization*G`[t] + 0.00150951858246073t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)18.07035069930622.5652537.044300
Doubts_about_actions-0.3452688048979210.147741-2.3370.0223070.011153
`Doubts_about_actions*G`-0.1698987483420360.182982-0.92850.356340.17817
Parental_expectations-0.05512779314622270.138559-0.39790.6919410.345971
`Parental_expectations*G`0.2464516577468840.172581.4280.1577250.078862
Personal_standards-0.07707011696896280.10012-0.76980.4440210.22201
`Personal_standards*G`0.1724104806763880.1320781.30540.196040.09802
Organization0.05692010458090980.1233540.46140.6459160.322958
`Organization*G`-0.2000136677564330.14675-1.3630.1772660.088633
t0.001509518582460730.0111750.13510.8929350.446468


Multiple Linear Regression - Regression Statistics
Multiple R0.518248205118805
R-squared0.268581202108863
Adjusted R-squared0.174541642380002
F-TEST (value)2.85604486966176
F-TEST (DF numerator)9
F-TEST (DF denominator)70
p-value0.00631789732661947
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.25228355117066
Sum Squared Residuals355.094683641174


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11012.2619311365579-2.26193113655788
21412.83815084268481.16184915731519
31817.51925146565970.48074853434025
41513.22671536634941.77328463365062
51815.63115454273522.36884545726481
61113.1713933230825-2.17139332308251
71713.83997432088873.16002567911133
81913.70800981151845.29199018848158
9710.6098696830817-3.60986968308168
101213.3306215977677-1.33062159776772
111312.72842212352470.271577876475294
121514.20341889030850.796581109691524
131414.3552435913157-0.355243591315667
141413.20175433827370.798245661726278
151613.16826051005142.83173948994861
161615.3993806499440.600619350055991
171214.4170360555073-2.41703605550725
181214.3330254874041-2.3330254874041
191314.0702485663284-1.07024856632844
201613.47165812556762.52834187443244
21911.6669633401306-2.66696334013058
221113.751558118521-2.75155811852096
231415.6121700188513-1.61217001885127
241114.1842488778346-3.1842488778346
251714.7651269730432.23487302695698
261415.757696690988-1.75769669098798
271516.1056496860839-1.1056496860839
281111.3370555299361-0.337055529936082
291512.91429877165352.08570122834653
301411.87185217296622.12814782703375
311114.9004364932413-3.90043649324129
321212.3880251306762-0.38802513067621
33913.7292200066648-4.72922000666483
341615.63870532520940.361294674790579
351313.4245572334188-0.424557233418767
361513.25666226003481.74333773996524
371011.6961282469054-1.69612824690536
381313.5464166242912-0.546416624291184
391613.17362027206442.82637972793562
401515.3282777555719-0.328277755571851
411311.86940454116361.13059545883639
421613.20901751177782.79098248822217
431515.2307041669913-0.230704166991284
441611.94173453923934.05826546076072
451513.94264608094861.0573539190514
461313.486838896906-0.486838896906002
471113.2332835849634-2.2332835849634
481713.92854400062733.07145599937273
491013.1686396290431-3.16863962904307
501714.44781040126212.55218959873794
511413.06623414398890.933765856011064
521513.39273510385941.60726489614055
531615.23746235156380.762537648436204
541213.3116306536396-1.31163065363964
551113.0813973300353-2.0813973300353
561616.043988724088-0.0439887240879911
57912.95411824604-3.95411824604005
581513.30258140343481.69741859656521
591513.93032093666421.06967906333577
601313.8657852389493-0.865785238949253
611515.1162305074995-0.116230507499534
621514.27889481943150.721105180568487
631815.76805716108592.2319428389141
641612.83607158887153.16392841112854
651212.5350689078074-0.535068907807392
661515.3917013639606-0.391701363960622
671316.0847926361749-3.08479263617491
681315.1067698984458-2.10676989844584
691312.18436725235640.815632747643603
701413.17923203317510.82076796682491
711514.13785898044720.862141019552834
721113.3099557886439-2.30995578864391
731413.13610616747560.863893832524391
741714.6371957798462.36280422015396
751314.7164163389786-1.7164163389786
761214.2106230607561-2.21062306075612
771313.7363763671747-0.736376367174665
781614.49275263652241.50724736347762
791314.9421683791614-1.94216837916136
801916.02029289036222.97970710963783


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
130.4377722295350270.8755444590700530.562227770464973
140.5823814824666910.8352370350666170.417618517533309
150.4585966364781080.9171932729562160.541403363521892
160.3858733749596790.7717467499193590.61412662504032
170.829278036142410.3414439277151810.170721963857591
180.88577158158690.22845683682620.1142284184131
190.829822535217350.3403549295652990.170177464782649
200.8019357517809170.3961284964381660.198064248219083
210.8312277969501720.3375444060996570.168772203049828
220.814058671133970.3718826577320590.185941328866029
230.7532549340362260.4934901319275480.246745065963774
240.7390198505248530.5219602989502940.260980149475147
250.7970648353047570.4058703293904870.202935164695243
260.7707705569336910.4584588861326180.229229443066309
270.7159124607977740.5681750784044520.284087539202226
280.6474913740134580.7050172519730840.352508625986542
290.6219651919748210.7560696160503580.378034808025179
300.7604819762858080.4790360474283840.239518023714192
310.8273652647774570.3452694704450850.172634735222543
320.7755580631159860.4488838737680270.224441936884014
330.9064794176054510.1870411647890970.0935205823945485
340.8862982821455430.2274034357089140.113701717854457
350.8467090908978760.3065818182042480.153290909102124
360.8503731529944120.2992536940111760.149626847005588
370.8277065482488240.3445869035023530.172293451751176
380.806117541673830.3877649166523390.193882458326169
390.863819818800090.272360362399820.13618018119991
400.8273933505028870.3452132989942270.172606649497113
410.795117169387820.4097656612243590.204882830612179
420.8567789667806010.2864420664387970.143221033219399
430.8459253570135420.3081492859729160.154074642986458
440.9354240412771880.1291519174456240.0645759587228121
450.911348903756910.1773021924861790.0886510962430897
460.8767523600417170.2464952799165670.123247639958283
470.8716222430641060.2567555138717890.128377756935894
480.8898659015643340.2202681968713310.110134098435666
490.8930547915480150.213890416903970.106945208451985
500.8904770768424120.2190458463151760.109522923157588
510.8922751003496630.2154497993006730.107724899650337
520.8902929466011570.2194141067976850.109707053398843
530.854280284402450.29143943119510.14571971559755
540.8082226890745570.3835546218508850.191777310925443
550.7838496666910440.4323006666179130.216150333308956
560.7129593058166120.5740813883667760.287040694183388
570.7759589778687560.4480820442624880.224041022131244
580.7186347788718350.562730442256330.281365221128165
590.6404673230770220.7190653538459550.359532676922977
600.5451656233117380.9096687533765240.454834376688262
610.4425117442110540.885023488422110.557488255788946
620.3587374021948810.7174748043897630.641262597805119
630.434052969146230.868105938292460.56594703085377
640.346247076895130.692494153790260.65375292310487
650.289674198376790.579348396753580.71032580162321
660.2167545335510720.4335090671021440.783245466448928
670.287737223626680.575474447253360.71226277637332


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/23/t1290530412fcsxp8tpp7sqhbm/104mvn1290530486.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/104mvn1290530486.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/1x3gb1290530486.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/1x3gb1290530486.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/2x3gb1290530486.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/2x3gb1290530486.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/38cfw1290530486.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/38cfw1290530486.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/48cfw1290530486.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/48cfw1290530486.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/58cfw1290530486.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/58cfw1290530486.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/6jmez1290530486.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/6jmez1290530486.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/7cdw21290530486.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/7cdw21290530486.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/8cdw21290530486.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/8cdw21290530486.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/9cdw21290530486.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290530412fcsxp8tpp7sqhbm/9cdw21290530486.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