Home » date » 2010 » Dec » 18 »

*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, 18 Dec 2010 17:25:25 +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/18/t1292693086vdea7gmpvrycyp9.htm/, Retrieved Sat, 18 Dec 2010 18:24: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/18/t1292693086vdea7gmpvrycyp9.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 «
54.64 4606.07 14.36 52.39 4176.60 14.62 52.51 4331.53 13.51 52.92 3987.30 14.95 55.22 4205.86 16.72 55.41 4331.37 16.33 57.02 4106.30 15.21 58.55 4009.33 16.69 57.49 3857.64 15.81 55.52 3929.00 16.02 57.84 4210.47 16.7 58.69 4445.82 15.99 59.74 4497.07 17.68 60.7 4443.71 18.89 60.74 4529.25 18.72 64.32 4634.22 21.14 66.9 4772.67 20.97 70.93 4881.52 23.75 75.89 5153.13 23.05 80.6 5324.19 23.45 81.39 5209.36 21.74 81.33 5108.92 19.37 77.04 5130.88 21.1 79.54 5195.68 21.2 81.93 5050.42 22.67 80.79 5101.03 22.24 81.98 5139.84 23.78 85.94 5234.31 23.27 86.6 5435.73 25.74 87.42 5633.57 26.1 93.14 5498.28 27.49 95.76 5668.13 31.41 99.75 5537.64 28.79 97.71 5442.78 26.76 94.99 5491.50 26.41 96.41 5501.20 27.05 96.28 5658.08 29.43 100.14 5686.16 32.1 99.9 5801.24 36.84 102.87 5678.40 34.22 107.37 5793.68 36.53 115.68 5866.10 40.99 124.33 6087.27 45.97 128.44 6058.70 43.6 130.19 6171.63 47.84 148.4 6385.55 51.47 169.14 6180.05 51.31 1 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
R Framework
error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Multiple Linear Regression - Estimated Regression Equation
RioTinto[t] = -32.5248999044313 + 0.377868320188452Commodity[t] + 0.00535216266541196WorldLeaders[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-32.52489990443137.551553-4.3073.9e-052e-05
Commodity0.3778683201884520.0414989.105600
WorldLeaders0.005352162665411960.0019112.80020.0061530.003077


Multiple Linear Regression - Regression Statistics
Multiple R0.865918352119919
R-squared0.749814592538075
Adjusted R-squared0.744708767895995
F-TEST (value)146.854748272867
F-TEST (DF numerator)2
F-TEST (DF denominator)98
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.1885858119561
Sum Squared Residuals17046.0019804943


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
114.3612.77426099893981.58573900106016
214.629.625463978601324.99453602139868
313.5110.50001873877623.00998126122381
414.958.81256979573876.1374302042613
516.7210.85143560432465.86856439567542
616.3311.59498052129624.73501947870376
715.2110.99873726569544.21126273430462
816.6911.05787658191875.63212341808129
915.819.845466607802625.96453339219738
1016.029.482996344835166.53700365516484
1116.711.86612407310594.83387592689412
1215.9913.44694362857082.54305637142924
1317.6814.1180037013713.561996298629
1418.8914.19516588892554.69483411107447
1518.7214.66810461613244.05189538386759
1621.1416.58268971739544.55731028260464
1720.9718.29859690450792.67140309549215
1823.7520.40398914099743.34601085900259
1923.0523.7319169106847-0.681916910684664
2023.4526.4272176443176-2.97721764431764
2121.7426.1111447783973-4.37114477839726
2219.3725.550901461072-6.18090146107198
2321.124.0473798595960-2.94737985959597
2421.225.3388708007858-4.13887080078580
2522.6725.4645209372585-2.79452093725845
2622.2425.3046240047401-3.06462400474012
2723.7825.962004738809-2.18200473880901
2823.2727.9639820937567-4.69398209375675
2925.7429.2914077891484-3.55140778914839
3026.130.660131673428-4.56013167342803
3127.4932.0974443779024-4.60744437790239
3231.4133.9965242055164-2.58652420551636
3328.7934.8058150968587-6.01581509685867
3426.7633.5272575732332-6.76725757323325
3526.4132.7602131073795-6.35021310737953
3627.0533.3487020999016-6.29870209990163
3729.4334.1392264972270-4.70922649722696
3832.135.7480869407991-3.64808694079915
3936.8436.27332542348950.566674576510471
4034.2236.73813467263-2.51813467263003
4136.5339.0555394255468-2.52553942554675
4240.9942.5832287865419-1.59322878654192
4345.9747.0355275728812-1.06552757288119
4443.648.4356550815049-4.8356550815049
4547.8449.7013443716397-1.86134437163967
4651.4757.7272611196563-6.2572611196563
4751.3164.4643806526226-13.1543806526226
4848.4758.6267128001913-10.1567128001913
4948.2862.6833290186818-14.4033290186818
5046.5664.0441933960584-17.4841933960584
5143.8364.6984471144882-20.8684471144882
5251.1768.6014891060444-17.4314891060444
5349.5969.3410537611562-19.7510537611562
5449.1171.2193361554943-22.1093361554943
5549.9769.0832206413275-19.1132206413275
5650.0769.6022273549807-19.5322273549807
5753.373.8618544849765-20.5618544849765
5857.0882.2647667540992-25.1847667540992
5968.5484.8754532862241-16.3354532862241
6071.6281.5500987170752-9.93009871707516
6167.6480.1382577540029-12.4982577540029
6264.7974.1833801840295-9.39338018402952
6380.9774.20508122079826.76491877920178
6488.4277.132057414729411.2879425852706
65110.2272.722777399745637.4972226002544
669968.242178289380830.7578217106192
6795.9571.552548059366324.3974519406337
68107.9475.535151649982932.4048483500171
6997.8278.78024699541919.0397530045810
70111.6480.007849893317231.6321501066828
71114.7376.756234772447437.9737652275526
72117.5872.175915983107145.4040840168929
7399.1972.089455967942227.1005440320578
7490.1966.731161555338623.4588384446614
7559.7459.55516667688390.184833323116091
7644.5141.75041428151432.75958571848568
7723.9434.3074819706895-10.3674819706894
7821.2930.0291269974246-8.73912699742464
7920.7725.0972005809235-4.32720058092348
8025.0721.5811114519843.48888854801599
8132.9524.04609791770468.9039020822954
8240.0529.053833892015810.9961661079842
8344.5933.035035537797211.5549644622028
8440.2835.77162201701844.50837798298164
8541.1939.1449931379672.04500686203296
8638.1445.6404098944419-7.50040989444192
8741.8545.5567842065367-3.70678420653673
8843.7646.4222272832796-2.66222728327957
8950.1649.20127262776980.958727372230181
9052.9451.99857972854350.941420271456505
9147.6952.7046022777469-5.01460227774689
9251.5249.80057682545751.71942317454254
9358.6955.22590836558633.46409163441374
9450.4462.4457671098739-12.0057671098739
9545.7253.1945640465843-7.47456404658432
9643.2449.1131743599659-5.87317435996587
9751.4955.5945473152185-4.10454731521849
9850.4358.863777705844-8.43377770584405
9958.7363.287782476395-4.55778247639503
10065.1265.8922254038609-0.7722254038609
10164.1365.6460423743079-1.51604237430787


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
63.31381938265085e-056.6276387653017e-050.999966861806173
77.02952933105933e-050.0001405905866211870.99992970470669
84.76784671658683e-069.53569343317365e-060.999995232153283
93.88713026898309e-077.77426053796619e-070.999999611286973
102.47258176414310e-084.94516352828621e-080.999999975274182
111.59296280506289e-093.18592561012579e-090.999999998407037
129.42289907103886e-111.88457981420777e-100.999999999905771
139.7760762149047e-121.95521524298094e-110.999999999990224
141.86088356200232e-123.72176712400463e-120.99999999999814
151.61534637052527e-133.23069274105054e-130.999999999999838
162.16052357460769e-144.32104714921539e-140.999999999999978
171.54165685175535e-153.08331370351069e-150.999999999999998
189.19988990409818e-171.83997798081964e-161
191.50590929199138e-163.01181858398276e-161
202.29021230924293e-164.58042461848586e-161
216.74564162733754e-161.34912832546751e-151
224.28279104554939e-158.56558209109877e-150.999999999999996
235.59616966905066e-161.11923393381013e-151
248.43545883698301e-171.68709176739660e-161
258.82290863193964e-181.76458172638793e-171
269.1394007142471e-191.82788014284942e-181
271.06805553909613e-192.13611107819225e-191
281.12027714543572e-202.24055429087144e-201
291.64756908776565e-213.29513817553130e-211
302.04304986214598e-224.08609972429196e-221
312.81360799279083e-235.62721598558166e-231
326.50254789892538e-231.30050957978508e-221
336.58390652917612e-241.31678130583522e-231
348.53181591963037e-251.70636318392607e-241
359.40036337795445e-261.88007267559089e-251
369.3725139525155e-271.8745027905031e-261
371.59692236202637e-273.19384472405275e-271
381.08731425365316e-272.17462850730631e-271
393.35483432306142e-256.70966864612283e-251
401.78420348179167e-253.56840696358333e-251
411.22682147172868e-252.45364294345736e-251
421.69280011668667e-253.38560023337333e-251
433.3586792612263e-256.7173585224526e-251
444.78103628253307e-269.56207256506614e-261
452.16092550494429e-264.32185100988857e-261
463.26562760759716e-276.53125521519432e-271
475.16339847283092e-261.03267969456618e-251
481.33311267215861e-262.66622534431722e-261
491.44159321712410e-262.88318643424820e-261
504.68057333124504e-269.36114666249008e-261
517.44532981811592e-251.48906596362318e-241
523.6852839626275e-257.370567925255e-251
534.37451816554986e-258.74903633109972e-251
541.40287411566083e-242.80574823132165e-241
551.68425801158026e-243.36851602316053e-241
562.6198167811415e-245.239633562283e-241
575.49724690675642e-241.09944938135128e-231
586.6651580483602e-231.33303160967204e-221
592.63835896471265e-215.27671792942529e-211
601.29529755685769e-182.59059511371538e-181
611.00621868174587e-162.01243736349174e-161
623.25494767882872e-146.50989535765743e-140.999999999999967
637.38021355238883e-091.47604271047777e-080.999999992619786
648.43026651245552e-050.0001686053302491100.999915697334875
650.09810428657694740.1962085731538950.901895713423053
660.3447498116389080.6894996232778170.655250188361092
670.6211660439401630.7576679121196730.378833956059837
680.8686567404548130.2626865190903740.131343259545187
690.9023769515665350.1952460968669300.0976230484334652
700.9406713515104410.1186572969791170.0593286484895586
710.9693417244405440.06131655111891120.0306582755594556
720.9993564607059180.001287078588163290.000643539294081643
730.9999262317849280.0001475364301434387.37682150717189e-05
740.9999979852256834.02954863346795e-062.01477431673398e-06
750.9999953142342049.37153159121791e-064.68576579560896e-06
760.9999897575957792.04848084427841e-051.02424042213920e-05
770.9999951270688169.74586236878838e-064.87293118439419e-06
780.9999988276780882.34464382442220e-061.17232191221110e-06
790.9999994475204821.10495903563028e-065.5247951781514e-07
800.9999986697240752.66055184990029e-061.33027592495014e-06
810.9999959856442988.02871140425528e-064.01435570212764e-06
820.9999947019649441.05960701120903e-055.29803505604516e-06
830.9999981006316263.79873674718766e-061.89936837359383e-06
840.9999988121055672.37578886555616e-061.18789443277808e-06
850.999997909172754.18165450091320e-062.09082725045660e-06
860.999996009976087.9800478382341e-063.99002391911705e-06
870.999989596333282.08073334406710e-051.04036667203355e-05
880.99996204395127.59120976014086e-053.79560488007043e-05
890.9998541726320310.000291654735937990.000145827367968995
900.9994569396927160.001086120614567330.000543060307283663
910.9983855478485120.003228904302975750.00161445215148788
920.9951310243038050.00973795139238980.0048689756961949
930.9934228889777340.01315422204453130.00657711102226566
940.9993507005720760.001298598855847760.000649299427923881
950.9966023996801050.006795200639789860.00339760031989493


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level820.911111111111111NOK
5% type I error level830.922222222222222NOK
10% type I error level840.933333333333333NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/10fc091292693115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/10fc091292693115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/1ik2i1292693115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/1ik2i1292693115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/2ik2i1292693115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/2ik2i1292693115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/3ik2i1292693115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/3ik2i1292693115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/4tt1l1292693115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/4tt1l1292693115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/5tt1l1292693115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/5tt1l1292693115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/6tt1l1292693115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/6tt1l1292693115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/7ml161292693115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/7ml161292693115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/8ml161292693115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/8ml161292693115.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/9fc091292693115.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292693086vdea7gmpvrycyp9/9fc091292693115.ps (open in new window)


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