Home » date » 2010 » Dec » 10 »

WS10, Multiple Regression (MR):

*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, 10 Dec 2010 13:41:51 +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/10/t12919886264j7dj8805eyew5k.htm/, Retrieved Fri, 10 Dec 2010 14:43:46 +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/10/t12919886264j7dj8805eyew5k.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 «
12008.00 4.00 9169.00 5.90 8788.00 7.10 8417.00 10.50 8247.00 15.10 8197.00 16.80 8236.00 15.30 8253.00 18.40 7733.00 16.10 8366.00 11.30 8626.00 7.90 8863.00 5.60 10102.00 3.40 8463.00 4.80 9114.00 6.50 8563.00 8.50 8872.00 15.10 8301.00 15.70 8301.00 18.70 8278.00 19.20 7736.00 12.90 7973.00 14.40 8268.00 6.20 9476.00 3.30 11100.00 4.60 8962.00 7.10 9173.00 7.80 8738.00 9.90 8459.00 13.60 8078.00 17.10 8411.00 17.80 8291.00 18.60 7810.00 14.70 8616.00 10.50 8312.00 8.60 9692.00 4.40 9911.00 2.30 8915.00 2.80 9452.00 8.80 9112.00 10.70 8472.00 13.90 8230.00 19.30 8384.00 19.50 8625.00 20.40 8221.00 15.30 8649.00 7.90 8625.00 8.30 10443.00 4.50 10357.00 3.20 8586.00 5.00 8892.00 6.60 8329.00 11.10 8101.00 12.80 7922.00 16.30 8120.00 17.40 7838.00 18.90 7735.00 15.80 8406.00 11.70 8209.00 6.40 9451.00 2.90 10041.00 4.70 9411.00 2.40 10405.00 7.20 8467.00 10.70 8464.00 13.40 8102.00 18.30 7627.00 18.40 7513.00 16.80 7510.00 16.60 8291.00 14.10 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
Sterftegevallen[t] = + 9702.03898923781 -96.5432003817131Temperatuur[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9702.03898923781136.44724471.104700
Temperatuur-96.543200381713110.99678-8.779200


Multiple Linear Regression - Regression Statistics
Multiple R0.671217338794934
R-squared0.450532715898953
Adjusted R-squared0.44468731925958
F-TEST (value)77.0747895642017
F-TEST (DF numerator)1
F-TEST (DF denominator)94
p-value7.22755189030977e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation596.998497817072
Sum Squared Residuals33502277.401209


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1120089315.866187710942692.13381228906
291699132.434106985736.5658930142965
387889016.58226652765-228.582266527648
484178688.33538522982-271.335385229823
582478244.236663473942.76333652605708
681978080.11322282503116.886777174970
782368224.928023397611.0719766023999
882537925.64410221429327.355897785710
977338147.69346309223-414.69346309223
1083668611.10082492445-245.100824924453
1186268939.34770622228-313.347706222278
1288639161.39706710022-298.397067100218
13101029373.79210793999728.207892060013
1484639238.63162740559-775.631627405588
1591149074.5081867566839.4918132433241
1685638881.42178599325-318.421785993250
1788728244.23666347394627.763336526057
1883018186.31074324492114.689256755085
1983017896.68114209978404.318857900224
2082787848.40954190892429.590458091081
2177368456.63170431371-720.631704313712
2279738311.81690374114-338.816903741142
2382689103.47114687119-835.47114687119
2494769383.4464279781692.553572021842
25111009257.940267481931842.05973251807
2689629016.58226652765-54.582266527648
2791738949.00202626045223.997973739551
2887388746.26130545885-8.26130545885119
2984598389.0514640465169.9485359534874
3080788051.1502627105226.8497372894836
3184117983.57002244332427.429977556683
3282917906.33546213795384.664537862053
3378108282.85394362663-472.853943626628
3486168688.33538522982-72.3353852298233
3583128871.76746595508-559.767465955078
3696929277.24890755827414.751092441727
3799119479.98962835987431.010371640129
3889159431.71802816901-516.718028169014
3994528852.45882587874599.541174121264
4091128669.02674515348442.973254846519
4184728360.088503932111.911496068001
4282307838.75522187075391.244778129252
4383847819.4465817944564.553418205595
4486257732.55770145086892.442298549137
4582218224.9280233976-3.92802339760014
4686498939.34770622228-290.347706222278
4786258900.7304260696-275.730426069592
48104439267.59458752011175.40541247990
49103579393.10074801633963.89925198367
5085869219.32298732925-633.322987329246
5188929064.8538667185-172.853866718505
5283298630.4094650008-301.409465000795
5381018466.28602435188-365.286024351883
5479228128.38482301589-206.384823015887
5581208022.18730259697.8126974039973
5678387877.37250202343-39.3725020234331
5777358176.65642320674-441.656423206744
5884068572.48354477177-166.483544771768
5982099084.16250679485-875.162506794847
6094519422.0637081308428.9362918691568
61100419248.28594744376792.71405255624
6294119470.3353083217-59.3353083216996
63104059006.927946489481398.07205351052
6484678669.02674515348-202.026745153481
6584648408.3601041228655.6398958771448
6681027935.29842225246166.701577747539
6776277925.64410221429-298.64410221429
6875138080.11322282503-567.11322282503
6975108099.42186290137-589.421862901373
7082918340.77986385566-49.779863855656
7180649113.12546690936-1049.12546690936
7293839364.1377879018118.8622120981847
7397069537.9155485889168.084451411101
7485799479.98962835987-900.989628359871
7594749267.5945875201206.405412479898
7683188804.18722568788-486.187225687879
7782138331.12554381748-118.125543817485
7880598031.8416226341727.1583773658261
7991117481.545380458411629.45461954159
8077088128.38482301589-420.384823015887
8176807925.64410221429-245.644102214290
8280148331.12554381748-317.125543817485
8380078823.49586576422-816.495865764222
8487189132.4341069857-414.434106985704
8594869006.92794648948479.072053510523
8691139045.5452266421667.454773357838
8790258929.693386184195.3066138158938
8884768321.47122377931154.528776220687
8979528292.5082636648-340.508263664799
9077598012.53298255783-253.532982557831
9178358041.49594267235-206.495942672345
9276008041.49594267235-441.495942672345
9376518340.77986385566-689.779863855656
9483198697.989705268-378.989705267995
9588129045.54522664216-233.545226642162
9686309306.21186767279-676.211867672787


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.9969123107414850.006175378517029120.00308768925851456
60.9957688870439490.008462225912102090.00423111295605104
70.9906416766204880.01871664675902440.00935832337951222
80.9881921240988610.02361575180227700.0118078759011385
90.9810185070811190.03796298583776230.0189814929188811
100.9747257485829960.05054850283400790.0252742514170039
110.9762765176587760.04744696468244730.0237234823412236
120.97726662216580.04546675566840160.0227333778342008
130.9686620111278350.06267597774432970.0313379888721649
140.9855515947262780.02889681054744430.0144484052737222
150.9770748088563980.04585038228720480.0229251911436024
160.9696350779954940.06072984400901160.0303649220045058
170.9703073200357690.05938535992846260.0296926799642313
180.9560160056735470.08796798865290580.0439839943264529
190.945855842432520.1082883151349600.0541441575674798
200.9332407740848730.1335184518302550.0667592259151273
210.9434983531995870.1130032936008250.0565016468004126
220.9287690281498610.1424619437002780.0712309718501388
230.948818364499020.1023632710019620.0511816355009808
240.9286690614125150.1426618771749700.0713309385874852
250.994992954627120.01001409074576080.00500704537288041
260.9923629565919720.01527408681605640.0076370434080282
270.9887195008053370.02256099838932510.0112804991946626
280.9832101600406590.03357967991868280.0167898399593414
290.975487587800390.04902482439922110.0245124121996106
300.9649807065247950.07003858695040990.0350192934752049
310.958540566735850.08291886652830060.0414594332641503
320.9494468683670210.1011062632659580.050553131632979
330.9434890065216180.1130219869567630.0565109934783815
340.92483591683610.1503281663277990.0751640831638995
350.9242693203607560.1514613592784890.0757306796392444
360.9103318929545370.1793362140909270.0896681070454634
370.8963074820550440.2073850358899110.103692517944956
380.89381647306160.2123670538768020.106183526938401
390.8924626692855160.2150746614289690.107537330714484
400.8788976941723660.2422046116552680.121102305827634
410.8474901523915850.305019695216830.152509847608415
420.8262870147560350.3474259704879300.173712985243965
430.8217126385145760.3565747229708480.178287361485424
440.8666432560839420.2667134878321170.133356743916058
450.8337107175451810.3325785649096370.166289282454819
460.8054392352381060.3891215295237890.194560764761894
470.7728583595257510.4542832809484980.227141640474249
480.8874231536289270.2251536927421460.112576846371073
490.9375728119421390.1248543761157230.0624271880578614
500.9391843775565330.1216312448869340.060815622443467
510.921462463462940.157075073074120.07853753653706
520.9033684052618740.1932631894762520.0966315947381258
530.8853714626971060.2292570746057890.114628537302894
540.8572242598402240.2855514803195510.142775740159776
550.8231541167446120.3536917665107760.176845883255388
560.7817425379012320.4365149241975360.218257462098768
570.7576764178377250.4846471643245490.242323582162275
580.7109506709813790.5780986580372420.289049329018621
590.7575426537092680.4849146925814630.242457346290732
600.710903252498070.5781934950038610.289096747501930
610.7805009830073770.4389980339852460.219499016992623
620.7376746075160030.5246507849679940.262325392483997
630.9564945123788750.08701097524225020.0435054876211251
640.9405109068606770.1189781862786470.0594890931393234
650.9216460208443780.1567079583112440.0783539791556219
660.899374323300340.2012513533993210.100625676699661
670.8736970196982740.2526059606034520.126302980301726
680.8677077741766240.2645844516467510.132292225823376
690.8665435134524680.2669129730950650.133456486547532
700.8260328535369110.3479342929261780.173967146463089
710.8777454609115150.2445090781769700.122254539088485
720.8536333899092570.2927332201814860.146366610090743
730.8595762155028060.2808475689943880.140423784497194
740.8597035460789780.2805929078420430.140296453921022
750.8647265702410630.2705468595178730.135273429758937
760.8297773957857570.3404452084284860.170222604214243
770.7753392788000120.4493214423999760.224660721199988
780.7104906869571330.5790186260857340.289509313042867
790.9950430552270320.009913889545935840.00495694477296792
800.9911925145444080.01761497091118310.00880748545559155
810.9837887810866380.03242243782672410.0162112189133620
820.9711841239735190.05763175205296240.0288158760264812
830.9807334874515560.03853302509688750.0192665125484437
840.9708058416741420.05838831665171640.0291941583258582
850.9879514297614910.02409714047701730.0120485702385086
860.9847437444077950.03051251118441000.0152562555922050
870.98870799729160.02258400541679910.0112920027083995
880.9962992698249610.007401460350077080.00370073017503854
890.9878963631930670.02420727361386660.0121036368069333
900.9662516862723090.06749662745538230.0337483137276912
910.9339993473018960.1320013053962080.0660006526981042


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.0459770114942529NOK
5% type I error level230.264367816091954NOK
10% type I error level340.390804597701149NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/10q4d71291988502.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/10q4d71291988502.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/1jlyv1291988502.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/1jlyv1291988502.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/2jlyv1291988502.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/2jlyv1291988502.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/3cufg1291988502.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/3cufg1291988502.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/4cufg1291988502.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/4cufg1291988502.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/5cufg1291988502.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/5cufg1291988502.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/6n3x11291988502.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/6n3x11291988502.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/7gvw41291988502.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/7gvw41291988502.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/8gvw41291988502.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/8gvw41291988502.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/9gvw41291988502.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12919886264j7dj8805eyew5k/9gvw41291988502.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