Home » date » 2008 » Nov » 20 »

downjones en iraq

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 20 Nov 2008 12:16:56 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6.htm/, Retrieved Thu, 20 Nov 2008 19:17:52 +0000
 
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/2008/Nov/20/t12272086638zntx0kgl0c31a6.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
10433,56 0 10665,78 0 10666,71 0 10682,74 0 10777,22 0 10052,6 0 10213,97 0 10546,82 0 10767,2 0 10444,5 0 10314,68 0 9042,56 0 9220,75 0 9721,84 0 9978,53 0 9923,81 0 9892,56 0 10500,98 0 10179,35 0 10080,48 0 9492,44 0 8616,49 0 8685,4 0 8160,67 0 8048,1 0 8641,21 0 8526,63 0 8474,21 0 7916,13 0 7977,64 1 8334,59 1 8623,36 1 9098,03 1 9154,34 1 9284,73 1 9492,49 1 9682,35 1 9762,12 1 10124,63 1 10540,05 1 10601,61 1 10323,73 1 10418,4 1 10092,96 1 10364,91 1 10152,09 1 10032,8 1 10204,59 1 10001,6 1 10411,75 1 10673,38 1 10539,51 1 10723,78 1 10682,06 1 10283,19 1 10377,18 1 10486,64 1 10545,38 1 10554,27 1 10532,54 1 10324,31 1 10695,25 1 10827,81 1 10872,48 1 10971,19 1 11145,65 1 11234,68 1 11333,88 1 10997,97 1 11036,89 1 11257,35 1 11533,59 1 11963,12 1 12185,15 1 12377,62 1 12512,89 1 12631,48 1 12268,53 1 12754,8 1 13407,75 1 13480,21 1 13673,28 1 13239,71 1 13557,69 1 13901,28 1 13200,58 1 13406,97 1 12538,12 1 12419,57 1 12193,88 1 12656,63 1 12812,48 1 12056,67 1 11322,38 1 11530,75 1 11114,08 1 9181,73 1
 
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 time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
downjones[t] = + 8560.16107888631 -802.32169180201iraq[t] + 15.8188349392086M1[t] + 567.68176814793M2[t] + 683.777945185616M3[t] + 575.240372223296M4[t] + 510.227799260977M5[t] + 465.730437773911M6[t] + 535.819114811593M7[t] + 639.502791849274M8[t] + 526.918968886957M9[t] + 255.850145924637M10[t] + 203.913822962318M11[t] + 46.2288229623185t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)8560.16107888631417.58411820.499200
iraq-802.32169180201378.089614-2.1220.0368150.018408
M115.8188349392086501.2176680.03160.9748980.487449
M2567.68176814793516.706611.09870.2750960.137548
M3683.777945185616516.454431.3240.1891430.094571
M4575.240372223296516.2758061.11420.2684050.134202
M5510.227799260977516.1708120.98850.3257870.162894
M6465.730437773911516.6615210.90140.3699720.184986
M7535.819114811593516.2564661.03790.3023340.151167
M8639.502791849274515.9248221.23950.2186440.109322
M9526.918968886957515.6667281.02180.3098350.154917
M10255.850145924637515.4822970.49630.6209720.310486
M11203.913822962318515.3716060.39570.6933680.346684
t46.22882296231856.1672747.495800


Multiple Linear Regression - Regression Statistics
Multiple R0.735788599043859
R-squared0.541384862482925
Adjusted R-squared0.469553575883865
F-TEST (value)7.53689496757544
F-TEST (DF numerator)13
F-TEST (DF denominator)83
p-value1.41990563751193e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1030.66940860170
Sum Squared Residuals88169192.6756715


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
110433.568622.20873678781811.35126321220
210665.789220.30049295891445.47950704110
310666.719382.625492958891284.08450704111
410682.749320.316742958881362.42325704112
510777.229301.532992958881475.68700704111
610052.69303.26445443413749.335545565866
710213.979419.58195443413794.388045565867
810546.829569.49445443413977.325545565867
910767.29503.139454434131264.06054556587
1010444.59278.299454434131166.20054556587
1110314.689272.591954434131042.08804556587
129042.569114.90695443413-72.3469544341336
139220.759176.9546123356643.7953876643423
149721.849775.0463685067-53.2063685066969
159978.539937.371368506741.1586314932972
169923.819875.062618506748.7473814932964
179892.569856.278868506736.2811314932963
1810500.989858.01032998195642.969670018045
1910179.359974.32782998196205.022170018045
2010080.4810124.2403299820-43.7603299819557
219492.4410057.8853299820-565.445329981955
228616.499833.04532998195-1216.55532998196
238685.49827.33782998195-1141.93782998196
248160.679669.65282998196-1508.98282998196
258048.19731.70048788348-1683.60048788348
268641.2110329.7922440545-1688.58224405452
278526.6310492.1172440545-1965.48724405453
288474.2110429.8084940545-1955.59849405453
297916.1310411.0247440545-2494.89474405452
307977.649610.43451372776-1632.79451372776
318334.599726.75201372776-1392.16201372776
328623.369876.66451372776-1253.30451372776
339098.039810.30951372776-712.279513727763
349154.349585.46951372776-431.129513727764
359284.739579.76201372776-295.032013727764
369492.499422.0770137277770.4129862722353
379682.359484.1246716293198.225328370711
389762.1210082.2164278003-320.096427800332
3910124.6310244.5414278003-119.911427800336
4010540.0510182.2326778003357.817322199665
4110601.6110163.4489278003438.161072199666
4210323.7310165.1803892756158.549610724414
4310418.410281.4978892756136.902110724414
4410092.9610431.4103892756-338.450389275587
4510364.9110365.0553892756-0.145389275586069
4610152.0910140.215389275611.8746107244138
4710032.810134.5078892756-101.707889275587
4810204.599976.82288927559227.767110724414
4910001.610038.8705471771-37.270547177111
5010411.7510636.9623033482-225.212303348155
5110673.3810799.2873033482-125.907303348157
5210539.5110736.9785533482-197.468553348156
5310723.7810718.19480334825.58519665184457
5410682.0610719.9262648234-37.8662648234082
5510283.1910836.2437648234-553.053764823407
5610377.1810986.1562648234-608.976264823408
5710486.6410919.8012648234-433.161264823408
5810545.3810694.9612648234-149.581264823409
5910554.2710689.2537648234-134.983764823407
6010532.5410531.56876482340.97123517659304
6110324.3110593.6164227249-269.306422724933
6210695.2511191.7081788960-496.458178895976
6310827.8111354.0331788960-526.223178895978
6410872.4811291.7244288960-419.244428895978
6510971.1911272.9406788960-301.750678895977
6611145.6511274.6721403712-129.022140371230
6711234.6811390.9896403712-156.309640371229
6811333.8811540.9021403712-207.022140371230
6910997.9711474.5471403712-476.57714037123
7011036.8911249.7071403712-212.817140371230
7111257.3511243.999640371213.3503596287711
7211533.5911086.3146403712447.27535962877
7311963.1211148.3622982728814.757701727246
7412185.1511746.4540544438438.695945556202
7512377.6211908.7790544438468.840945556201
7612512.8911846.4703044438666.4196955562
7712631.4811827.6865544438803.7934455562
7812268.5311829.4180159191439.111984080949
7912754.811945.7355159191809.064484080948
8013407.7512095.64801591911312.10198408095
8113480.2112029.29301591911450.91698408095
8213673.2811804.45301591911868.82698408095
8313239.7111798.74551591911440.96448408095
8413557.6911641.06051591911916.62948408095
8513901.2811703.10817382062198.17182617942
8613200.5812301.1999299916899.38007000838
8713406.9712463.5249299916943.445070008378
8812538.1212401.2161799916136.90382000838
8912419.5712382.432429991637.1375700083781
9012193.8812384.1638914669-190.283891466874
9112656.6312500.4813914669156.148608533126
9212812.4812650.3938914669162.086108533127
9312056.6712584.0388914669-527.368891466873
9411322.3812359.1988914669-1036.81889146687
9511530.7512353.4913914669-822.741391466873
9611114.0812195.8063914669-1081.72639146687
979181.7312257.8540493684-3076.1240493684


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.00850134698804390.01700269397608780.991498653011956
180.1069553423444780.2139106846889550.893044657655522
190.07591571969814410.1518314393962880.924084280301856
200.03889718043329120.07779436086658240.961102819566709
210.03174289629249850.0634857925849970.968257103707501
220.05095155510268030.1019031102053610.94904844489732
230.04665389082897480.09330778165794950.953346109171025
240.02464927578192770.04929855156385540.975350724218072
250.01607766973015090.03215533946030180.98392233026985
260.008351217544979240.01670243508995850.99164878245502
270.004766213666775030.009532427333550070.995233786333225
280.002673413737206560.005346827474413130.997326586262793
290.003302460417352600.006604920834705210.996697539582647
300.001949033915574840.003898067831149680.998050966084425
310.001248642648926090.002497285297852190.998751357351074
320.0007885134896096630.001577026979219330.99921148651039
330.0008960738289919460.001792147657983890.999103926171008
340.002269845309184480.004539690618368960.997730154690815
350.003786992806423150.00757398561284630.996213007193577
360.02520669601076710.05041339202153410.974793303989233
370.0669549604653390.1339099209306780.933045039534661
380.07619058879629550.1523811775925910.923809411203705
390.09290745463446650.1858149092689330.907092545365533
400.1329874117630790.2659748235261580.867012588236921
410.1798899711538420.3597799423076830.820110028846158
420.2270811856352830.4541623712705650.772918814364717
430.2595295894959290.5190591789918590.740470410504071
440.2391722143986940.4783444287973870.760827785601306
450.2280976096392430.4561952192784860.771902390360757
460.2216012659575180.4432025319150370.778398734042482
470.2010649467125410.4021298934250820.798935053287459
480.2212673442634730.4425346885269460.778732655736527
490.2043864062684040.4087728125368080.795613593731596
500.1864265946625230.3728531893250460.813573405337477
510.1702162733381310.3404325466762610.82978372666187
520.1433725789897890.2867451579795770.856627421010211
530.1255884758595540.2511769517191070.874411524140446
540.1152432729456970.2304865458913940.884756727054303
550.09626930159334030.1925386031866810.90373069840666
560.083671346584720.167342693169440.91632865341528
570.0667201719209530.1334403438419060.933279828079047
580.05542200386189220.1108440077237840.944577996138108
590.04504890980146650.0900978196029330.954951090198534
600.03985756114041650.0797151222808330.960142438859583
610.02967587287707150.0593517457541430.970324127122928
620.02688089825203340.05376179650406680.973119101747967
630.0257928545748660.0515857091497320.974207145425134
640.02183886164093870.04367772328187740.978161138359061
650.01876364348997800.03752728697995600.981236356510022
660.01498137920665070.02996275841330140.98501862079335
670.01421348826990580.02842697653981150.985786511730094
680.01720579437110280.03441158874220550.982794205628897
690.02246843467960410.04493686935920820.977531565320396
700.03029473610052270.06058947220104550.969705263899477
710.04171452855896860.08342905711793720.958285471441031
720.06492798263863430.1298559652772690.935072017361366
730.06019060022376310.1203812004475260.939809399776237
740.08532101535730410.1706420307146080.914678984642696
750.140943510778460.281887021556920.85905648922154
760.1433599814779050.286719962955810.856640018522095
770.1395365152849830.2790730305699670.860463484715017
780.1545352466768290.3090704933536570.845464753323171
790.2155128753069590.4310257506139170.784487124693041
800.2772916776888210.5545833553776420.722708322311179


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level90.140625NOK
5% type I error level190.296875NOK
10% type I error level300.46875NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/10pszf1227208611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/10pszf1227208611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/1buvc1227208611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/1buvc1227208611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/2hbzg1227208611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/2hbzg1227208611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/3k2r61227208611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/3k2r61227208611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/4t8nz1227208611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/4t8nz1227208611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/5emrj1227208611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/5emrj1227208611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/6p5ud1227208611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/6p5ud1227208611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/7cq681227208611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/7cq681227208611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/8cs371227208611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/8cs371227208611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/9gp3r1227208611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t12272086638zntx0kgl0c31a6/9gp3r1227208611.ps (open in new window)


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