Home » date » 2008 » Dec » 13 »

Met lineaire trend

*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, 13 Dec 2008 08:36:57 -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/Dec/13/t1229182661g1pv6gzcxsopcaj.htm/, Retrieved Sat, 13 Dec 2008 16:37:51 +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/2008/Dec/13/t1229182661g1pv6gzcxsopcaj.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},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
32.68 10967.87 31.54 10433.56 32.43 10665.78 26.54 10666.71 25.85 10682.74 27.6 10777.22 25.71 10052.6 25.38 10213.97 28.57 10546.82 27.64 10767.2 25.36 10444.5 25.9 10314.68 26.29 9042.56 21.74 9220.75 19.2 9721.84 19.32 9978.53 19.82 9923.81 20.36 9892.56 24.31 10500.98 25.97 10179.35 25.61 10080.48 24.67 9492.44 25.59 8616.49 26.09 8685.4 28.37 8160.67 27.34 8048.1 24.46 8641.21 27.46 8526.63 30.23 8474.21 32.33 7916.13 29.87 7977.64 24.87 8334.59 25.48 8623.36 27.28 9098.03 28.24 9154.34 29.58 9284.73 26.95 9492.49 29.08 9682.35 28.76 9762.12 29.59 10124.63 30.7 10540.05 30.52 10601.61 32.67 10323.73 33.19 10418.4 37.13 10092.96 35.54 10364.91 37.75 10152.09 41.84 10032.8 42.94 10204.59 49.14 10001.6 44.61 10411.75 40.22 10673.38 44.23 10539.51 45.85 10723.78 53.38 10682.06 53.26 10283.19 51.8 10377.18 55.3 10486.64 57.81 10545.38 63.96 10554.27 63.77 10532.54 59.15 10324.31 56.12 10695.25 57.42 10827.81 63.52 10872.48 61.71 10971.19 63.01 11145.65 68.18 11234.68 72.03 11333.88 69.75 10997.97 74.41 11036.89 74.33 11257.35 64.24 11533.59 60.03 11963.12 59.44 12185.15 62.5 12377.62 55.04 12512.89 58.34 12631.48 61.92 12268.53 67.65 12754.8 67.68 13407.75 70.3 13480.21 75.26 13673.28 71.44 13239.71 76.36 13557.69 81.71 13901.28 92.6 13200.58 90.6 13406.97 92.23 12538.12 94.09 12419.57 102.79 12193.88 109.65 12656.63 124.05 12812.48 132.69 12056.67 135.81 11322.38 116.07 11530.75 101.42 11114.08 75.73 9181.73 55.48 8614.55
 
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 time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Olieprijs[t] = -24.6359790023053 + 0.00400883150657628DowJones[t] -0.759916263886184M1[t] -3.70663753073985M2[t] -7.40772018370826M3[t] -7.12242507099084M4[t] -6.58460571642925M5[t] -6.0700207531914M6[t] -3.52563125651643M7[t] -2.88889444085642M8[t] -1.17308431965984M9[t] -0.262794230614779M10[t] + 2.06283551975003M11[t] + 0.708215925573804t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-24.635979002305311.841256-2.08050.0404880.020244
DowJones0.004008831506576280.0012033.33180.0012790.000639
M1-0.7599162638861846.169451-0.12320.902260.45113
M2-3.706637530739856.171297-0.60060.5496880.274844
M3-7.407720183708266.167253-1.20110.2330340.116517
M4-7.122425070990846.378541-1.11660.2673020.133651
M5-6.584605716429256.367201-1.03410.3040020.152001
M6-6.07002075319146.361149-0.95420.3426710.171336
M7-3.525631256516436.351802-0.55510.5803110.290156
M8-2.888894440856426.354857-0.45460.6505590.325279
M9-1.173084319659846.362719-0.18440.8541640.427082
M10-0.2627942306147796.354233-0.04140.9671080.483554
M112.062835519750036.3440290.32520.7458580.372929
t0.7082159255738040.0590511.993600


Multiple Linear Regression - Regression Statistics
Multiple R0.902237736752583
R-squared0.814032933620423
Adjusted R-squared0.785590911703546
F-TEST (value)28.6207828683728
F-TEST (DF numerator)13
F-TEST (DF denominator)85
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12.6874175585917
Sum Squared Residuals13682.4979660151


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
132.6819.280663475415113.3993365245849
231.5414.900199371856416.6398006281436
332.4312.838263496919019.5917365030810
426.5413.835502748511312.7044972514887
525.8515.145799597697110.7042004023029
627.616.747354887250110.8526451127499
725.7117.09508082320368.6149191767964
825.3819.08693870465366.29306129534637
928.5722.84530431838795.72469568161207
1027.6425.34727662042612.29272337957391
1125.3627.0874723691925-1.72747236919252
1225.925.21242626883260.687573731167422
1326.2920.06101119437436.22898880562567
1421.7418.53683953925143.20316046074864
1519.217.55275819148701.64724180851296
1619.3219.5752961892013-0.255296189201331
1719.8220.6019682092969-0.781968209296856
1820.3621.699493113528-1.33949311352800
1924.3127.3911518010079-3.08115180100792
2025.9727.4467440647816-1.47674406478160
2125.6129.4744169404968-3.86441694049679
2224.6728.7355696759885-4.06556967598854
2325.5928.2578793937417-2.66787939374166
2426.0927.1795083786836-1.08950837868361
2528.3725.02425388392543.34574611607457
2627.3422.33447437995035.0055256200497
2724.4621.71928570742122.74071429257885
2827.4622.25346483168895.20653516831113
2930.2323.28935716424956.94064283575048
3032.3322.274909365871110.0550906341289
3129.8725.77409801408944.09590198591063
3224.8728.5500031615956-3.68000316159559
3325.4832.13165948252-6.65165948252
3427.2835.6530375483654-8.37303754836543
3528.2438.9126205264394-10.6726205264394
3629.5838.0807124724056-8.50071247240562
3726.9538.8618869678995-11.9118869678995
3829.0837.3844983764582-8.30449837645824
3928.7634.7114161383432-5.95141613834323
4029.5937.1581686860834-7.56816868608341
4130.740.0695527506807-9.36955275068071
4230.5241.5391373070372-11.0191373070372
4332.6743.6777686302386-11.0077686302386
4433.1945.4022374501999-12.2122374502000
4537.1346.5216293714701-9.39162937147015
4635.5449.2303371143024-13.6903371143024
4737.7551.4110232690115-13.6610232690115
4841.8449.5781901644158-7.73819016441578
4942.9450.2151669906181-7.27516699061813
5049.1447.16290894181841.97709105818165
5144.6145.814264456846-1.20426445684602
5240.2247.8566060822028-7.63660608220279
5344.2348.5659790885528-4.33597908855282
5445.8550.5274873590813-4.67748735908128
5553.3853.6128443308757-0.232844330875684
5653.2653.3587944490814-0.098794449081426
5751.856.1596105691549-4.35961056915492
5855.358.2169232804836-2.91692328048362
5957.8161.4862477191185-3.67624771911851
6063.9660.16726663703583.79273336296424
6163.7760.02845439008553.74154560991454
6259.1556.95519006419122.19480993580877
6356.1255.4493592958460.670640704153959
6457.4256.9742810386490.445718961350994
6563.5258.39939082218325.12060917781685
6661.7160.0179034690091.69209653099104
6763.0163.969889635895-0.959889635895037
6868.1865.67174864615932.50825135384067
6972.0368.49345077838213.53654922161792
7069.7568.76535020162690.984649798373092
7174.4171.95521959980152.45478040019854
7274.3371.4843869995652.84561300043494
7364.2472.5400862766293-8.3000862766293
7460.0372.0234943323692-11.9934943323692
7559.4469.9207084643797-10.4807084643797
7662.571.6857993027416-9.18579930274164
7755.0473.4741092207716-18.4341092207716
7858.3475.1723174379482-16.8323174379481
7961.9276.969917464885-15.0499174648851
8067.6580.2642447028217-12.6142447028217
8167.6885.305837281811-17.6258372818111
8270.387.2148232273965-16.9148232273965
8375.2691.0226540023098-15.7626540023098
8471.4487.9299253318273-16.4899253318273
8576.3689.152953235976-12.7929532359760
8681.7188.2918423120407-6.58184231204069
8792.682.48998734798810.1100126520119
8890.684.31088112092166.28911887907841
8992.2382.073843146568210.1561568534318
9094.0982.821397060275211.2686029397248
91102.7985.169249299804817.6207507001952
92109.6588.369288820706821.2807111792932
93124.0591.41809125777732.6319087422229
94132.6990.006682331410542.6833176685895
95135.8190.096883120385245.7131168796148
96116.0789.577583747234326.4924162527657
97101.4287.855523585076813.5644764149232
9875.7377.8705526820642-2.14055268206423
9955.4872.6039569007697-17.1239569007697


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.01092129738901140.02184259477802270.989078702610989
180.001981308279125710.003962616558251410.998018691720874
190.0008334601926995680.001666920385399140.9991665398073
200.000407519141165250.00081503828233050.999592480858835
219.42688786517003e-050.0001885377573034010.999905731121348
224.34842952811125e-058.69685905622249e-050.999956515704719
236.30201942326391e-050.0001260403884652780.999936979805767
243.48182785186753e-056.96365570373507e-050.999965181721481
252.18292088457277e-054.36584176914554e-050.999978170791154
261.62168873140537e-053.24337746281075e-050.999983783112686
276.39298519564626e-061.27859703912925e-050.999993607014804
289.08608424171659e-061.81721684834332e-050.999990913915758
291.89402208066038e-053.78804416132075e-050.999981059779193
302.26296514961578e-054.52593029923157e-050.999977370348504
311.03864099910801e-052.07728199821601e-050.999989613590009
323.44681474676594e-066.89362949353188e-060.999996553185253
331.11076759196834e-062.22153518393669e-060.999998889232408
344.26640742599941e-078.53281485199882e-070.999999573359257
352.31515115377055e-074.63030230754110e-070.999999768484885
361.10799718384312e-072.21599436768624e-070.999999889200282
373.32569204239877e-086.65138408479753e-080.99999996674308
381.29714793924264e-082.59429587848528e-080.99999998702852
395.43851001121955e-091.08770200224391e-080.99999999456149
402.31570510552304e-094.63141021104608e-090.999999997684295
418.49704605417856e-101.69940921083571e-090.999999999150295
422.40135719178803e-104.80271438357606e-100.999999999759864
438.0947984571712e-111.61895969143424e-100.999999999919052
443.38659094692908e-116.77318189385817e-110.999999999966134
452.86715269203169e-115.73430538406338e-110.999999999971328
461.40449215922099e-112.80898431844198e-110.999999999985955
471.06947559600239e-112.13895119200479e-110.999999999989305
481.58178598025603e-113.16357196051206e-110.999999999984182
491.02277779733782e-112.04555559467564e-110.999999999989772
509.16279761623617e-111.83255952324723e-100.999999999908372
511.29282277043571e-102.58564554087142e-100.999999999870718
524.79902577119584e-119.59805154239168e-110.99999999995201
533.05326953769377e-116.10653907538754e-110.999999999969467
541.64766059381874e-113.29532118763749e-110.999999999983523
554.67459872886764e-119.34919745773528e-110.999999999953254
561.46326086245755e-102.92652172491511e-100.999999999853674
571.35290805981591e-102.70581611963183e-100.99999999986471
582.49651034270257e-104.99302068540515e-100.99999999975035
594.05913989938596e-108.11827979877192e-100.999999999594086
601.35560752255872e-092.71121504511745e-090.999999998644392
612.07133677162401e-094.14267354324802e-090.999999997928663
622.10583269493422e-094.21166538986844e-090.999999997894167
632.38686844027488e-094.77373688054976e-090.999999997613132
641.48774564211649e-092.97549128423298e-090.999999998512254
652.7807950991379e-095.5615901982758e-090.999999997219205
662.51186871077253e-095.02373742154506e-090.999999997488131
671.49769470626638e-092.99538941253276e-090.999999998502305
681.56579831216631e-093.13159662433262e-090.999999998434202
692.01724304589373e-094.03448609178746e-090.999999997982757
701.66523906024363e-093.33047812048726e-090.99999999833476
711.78695142650892e-093.57390285301785e-090.999999998213049
724.08603322657101e-098.17206645314202e-090.999999995913967
731.06227327047769e-082.12454654095539e-080.999999989377267
741.42806604480356e-072.85613208960712e-070.999999857193395
755.77207447919561e-061.15441489583912e-050.999994227925521
764.45572332199304e-058.91144664398607e-050.99995544276678
779.24586875234473e-050.0001849173750468950.999907541312476
780.0001907206137966550.000381441227593310.999809279386203
790.0004854766007733360.0009709532015466720.999514523399227
800.007009180763915640.01401836152783130.992990819236084
810.01452408596253700.02904817192507400.985475914037463
820.006032049775785150.01206409955157030.993967950224215


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level620.93939393939394NOK
5% type I error level661NOK
10% type I error level661NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/107l9p1229182611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/107l9p1229182611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/1e9o61229182611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/1e9o61229182611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/2y7vw1229182611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/2y7vw1229182611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/301dy1229182611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/301dy1229182611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/4utni1229182611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/4utni1229182611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/5wezf1229182611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/5wezf1229182611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/6hmt11229182611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/6hmt11229182611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/76zde1229182611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/76zde1229182611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/8h3x41229182611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/8h3x41229182611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/938fp1229182611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/13/t1229182661g1pv6gzcxsopcaj/938fp1229182611.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