Home » date » 2010 » Dec » 14 »

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Tue, 14 Dec 2010 00:16:35 +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/14/t1292285767eg4qpeo2i79c434.htm/, Retrieved Tue, 14 Dec 2010 01:16:18 +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/14/t1292285767eg4qpeo2i79c434.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 «
1579 0 4,0 45,7 2146 0 5,9 81,9 2462 0 7,1 56,8 3695 0 10,5 65,1 4831 0 15,1 86,2 5134 0 16,8 35,1 6250 0 15,3 133,8 5760 0 18,4 34,5 6249 0 16,1 69,9 2917 0 11,3 98,3 1741 0 7,9 86,7 2359 0 5,6 58,2 1511 1 3,4 83,6 2059 0 4,8 83,5 2635 0 6,5 112,3 2867 0 8,5 134,3 4403 0 15,1 30,0 5720 0 15,7 44,5 4502 0 18,7 120,1 5749 0 19,2 43,4 5627 0 12,9 199,4 2846 0 14,4 68,1 1762 0 6,2 99,8 2429 0 3,3 69,5 1169 0 4,6 71,3 2154 1 7,2 167,8 2249 0 7,8 66,3 2687 0 9,9 41,9 4359 0 13,6 57,2 5382 0 17,1 72,3 4459 0 17,8 96,5 6398 0 18,6 172,1 4596 0 14,7 25,8 3024 0 10,5 105,1 1887 0 8,6 92,2 2070 0 4,4 109,3 1351 0 2,3 101,7 2218 0 2,8 29,1 2461 1 8,8 34,6 3028 0 10,7 46,7 4784 0 13,9 82,0 4975 0 19,3 34,4 4607 0 19,5 72,7 6249 0 20,4 44,4 4809 0 15,3 31,0 3157 0 7,9 64,0 1910 0 8,3 65,4 2228 0 4,5 64,5 1594 0 3,2 153,8 2467 0 5,0 48,8 2222 0 6,6 25,0 3607 1 11,1 37,2 4685 0 12,8 40,8 4962 0 16,3 78,4 5770 0 17,4 112,4 5480 0 18,9 122,7 5000 0 15,8 82,9 3228 0 11,7 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 time8 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Huwelijken[t] = + 505.099332666385 + 525.423297499213Specialedag[t] + 259.288481142119Temperatuur[t] + 2.90633574238225Neerslag[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)505.099332666385196.2335442.5740.0113130.005657
Specialedag525.423297499213245.6158722.13920.0345150.017258
Temperatuur259.28848114211911.64351722.268900
Neerslag2.906335742382251.8247161.59280.1139350.056968


Multiple Linear Regression - Regression Statistics
Multiple R0.902864000622884
R-squared0.815163403620759
Adjusted R-squared0.810383146817848
F-TEST (value)170.527115431181
F-TEST (DF numerator)3
F-TEST (DF denominator)116
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation706.75573306493
Sum Squared Residuals57942425.2815371


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
115791675.07280066171-96.0728006617079
221462272.93026870599-126.930268705990
324622511.12741894273-49.1274189427278
436953416.83084148771278.169158512286
548314670.88153890573160.118461094273
651344963.1582004116170.841799588404
762504861.080816471551388.91918352845
857605376.27596879356383.724031206443
962494882.796747447021366.20325255298
1029173720.7519730485-803.7519730485
1117412805.45764255366-1064.45764255366
1223592126.26356726889232.736432731106
1315112155.07313411195-644.073134111954
1420591992.3630766374766.6369233625295
1526352516.85596395968118.144036040319
1628673099.37231257633-232.372312576329
1744034507.54547018384-104.545470183844
1857204705.260427133661014.73957286634
1945025702.84485268411-1200.84485268411
2057495609.57314181445139.426858185547
2156274429.444086430741197.55591356926
2228464436.77492516912-1590.77492516913
2317622402.74022283727-640.740222837268
2424291562.74165453094866.25834546906
2511691905.04808435198-736.048084351983
2621543385.08283196059-1231.08283196059
2722492720.23954529485-471.239545294852
2826873193.83076357917-506.830763579175
2943594197.66508066346161.334919336537
3053825149.06043437085232.939565629148
3144595400.89569613599-941.895696135985
3263985828.04546317378569.954536826221
3345964391.62346760899204.376532391009
3430243533.08427118300-509.084271183005
3518873002.94442593625-1115.94442593625
3620701963.63114633409106.368853665915
3713511397.03718429353-46.0371842935301
3822181315.68144996764902.318550032362
3924613412.82048090267-951.820480902666
4030283415.21196005630-387.211960056305
4147844347.52875141718436.471248582821
4249755609.34496824723-634.344968247225
4346075772.51532340889-1165.51532340889
4462495923.62565492738325.374345072622
4548094562.30950215465246.690497845349
4631572739.48382120159417.516178798415
4719102847.26808369777-937.268083697768
4822281859.35615318957368.643846810428
4915941781.81690949955-187.816909499553
5024671943.37092260523523.62907739477
5122222289.06170176392-67.0617017639225
5236074016.74046045973-409.740460459733
5346853942.5703895747742.429610425301
5449624959.358297485692.64170251431157
5557705343.39104198302426.608958016985
5654805762.25902184273-282.259021842731
5750004842.79256775535157.207432244651
5832283735.24285821421-507.242858214213
5919932392.40233417871-399.402334178711
6022881447.98218625304840.01781374696
6115801854.24966886730-274.249668867304
6221111362.51424896619748.485751033809
6321922484.74222369407-292.742223694069
6436013413.46815861088187.531841389125
6546654679.36842201292-14.3684220129220
6648765458.58773030998-582.587730309984
6758135609.01100175137203.988998248634
6855895063.13614994955525.863850050454
6953315024.93823171032306.061768289681
7030754297.66469666222-1222.66469666222
7120022263.75491434439-261.754914344386
7223061561.99467382225744.005326177755
7315071000.23822899053506.761771009469
7419921357.51101819713634.488981802869
7524871861.68122178348625.318778216523
7634903050.17365143767439.826348562329
7746474522.96817670386124.031823296142
7855945591.196816077712.80318392228733
7956116608.5291481437-997.529148143702
8057885319.45329596685468.54670403315
8162045302.74567451128901.254325488715
8230134350.62246718059-1337.62246718059
8319313072.71815021423-1141.71815021423
8425492305.19059544643243.809404553567
8515042611.1678284877-1107.16782848770
8620902545.52543425606-455.525434256057
8727022759.30936425679-57.309364256794
8829394212.92461299868-1273.92461299868
8945004591.22627310364-91.2262731036425
9062085330.95625829778877.043741702218
9164155771.3271720984643.672827901597
9256575130.23171205238526.768287947623
9359644328.471855531481635.52814446852
9431633417.12147506195-254.121475061953
9519972476.6452771616-479.645277161598
9624221827.42725356957594.572746430434
9713762395.95239707658-1019.95239707658
9822022189.6433529136412.3566470863615
9926832546.95693566644136.043064333563
10033033048.42984999224254.570150007758
10152024914.08191991153287.918080088465
10252314882.79674744702348.203252552984
10348805468.44760537327-588.447605373274
10479985853.535680061622144.46431993838
10549774340.61600564247636.383994357529
10635313438.0470924071192.952907592895
10720252490.65814873204-465.658148732042
10822051356.95141750947848.048582490534
1091442869.409787661708572.590212338292
11022381604.48963566804633.510364331964
11121792440.54425394905-261.544253949048
11232183883.09376040907-665.093760409072
11351394364.11653160957774.883468390431
11449904970.81792689519.1820731050013
11549145566.24707279215-652.247072792147
11660845644.8647243113439.135275688701
11756725211.8550023144460.144997685604
11835483740.22442252246-192.224422522462
11917933305.01850249840-1512.01850249840
12020861491.86785596301594.132144036988


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.1482224295687520.2964448591375040.851777570431248
80.06765399191948650.1353079838389730.932346008080513
90.165251538593880.330503077187760.83474846140612
100.5075968425549860.9848063148900280.492403157445014
110.6278502192947070.7442995614105860.372149780705293
120.583899689510340.832200620979320.41610031048966
130.4885280114659520.9770560229319030.511471988534048
140.4069274553251460.8138549106502930.593072544674853
150.3185498971484970.6370997942969930.681450102851503
160.263140836764780.526281673529560.73685916323522
170.2175309913625090.4350619827250180.782469008637491
180.2214139271638210.4428278543276420.778586072836179
190.5540796548514740.8918406902970510.445920345148526
200.4863680399652430.9727360799304870.513631960034757
210.5841383552305320.8317232895389350.415861644769468
220.8422432722091050.315513455581790.157756727790895
230.8247869573141280.3504260853717440.175213042685872
240.8564682506554360.2870634986891270.143531749344564
250.8479436384299160.3041127231401690.152056361570084
260.8640513751557350.2718972496885300.135948624844265
270.8392278583761450.3215442832477110.160772141623855
280.8132763374113910.3734473251772180.186723662588609
290.769570857483220.460858285033560.23042914251678
300.7218650801969410.5562698396061180.278134919803059
310.7746571272985570.4506857454028860.225342872701443
320.7425592733021180.5148814533957630.257440726697882
330.6973823521249540.6052352957500920.302617647875046
340.672010235434970.655979529130060.32798976456503
350.7377647639455180.5244704721089650.262235236054482
360.692972834267260.614054331465480.30702716573274
370.643032134575220.713935730849560.35696786542478
380.6984728502669360.6030542994661280.301527149733064
390.7118319956931590.5763360086136820.288168004306841
400.6746000343690180.6507999312619640.325399965630982
410.6424335027159970.7151329945680050.357566497284003
420.6288267863654260.7423464272691470.371173213634574
430.7084810498526710.5830379002946580.291518950147329
440.6763933035648630.6472133928702750.323606696435137
450.6357456508539580.7285086982920840.364254349146042
460.6032038581991590.7935922836016830.396796141800841
470.6429354708385530.7141290583228940.357064529161447
480.6061105797775990.7877788404448020.393889420222401
490.5634152524065140.8731694951869710.436584747593486
500.5405680168835390.9188639662329220.459431983116461
510.4863731826764050.972746365352810.513626817323595
520.4933850889511020.9867701779022050.506614911048898
530.5084825319576050.983034936084790.491517468042395
540.4546781015382840.9093562030765670.545321898461717
550.4235363819182680.8470727638365360.576463618081732
560.3789337781026110.7578675562052210.621066221897389
570.3322993694819830.6645987389639670.667700630518017
580.3092564764613170.6185129529226350.690743523538683
590.2815170567335290.5630341134670570.718482943266471
600.2968640846433590.5937281692867170.703135915356641
610.2606063129099360.5212126258198710.739393687090064
620.259134417646260.518268835292520.74086558235374
630.2252949620979190.4505899241958380.774705037902081
640.1900229093440260.3800458186880520.809977090655974
650.1967593327737160.3935186655474310.803240667226284
660.1806040458076470.3612080916152940.819395954192353
670.1507974696929440.3015949393858870.849202530307056
680.1413103206601690.2826206413203380.858689679339831
690.1203192138100050.2406384276200090.879680786189995
700.1797419973542270.3594839947084540.820258002645773
710.1524456541836070.3048913083672140.847554345816393
720.1515627288326060.3031254576652120.848437271167394
730.1340400327577340.2680800655154680.865959967242266
740.1236132865211280.2472265730422560.876386713478872
750.1159028205823530.2318056411647050.884097179417647
760.1014040197216390.2028080394432780.898595980278361
770.07952023217209930.1590404643441990.9204797678279
780.08520801375132820.1704160275026560.914791986248672
790.1053771439859600.2107542879719210.89462285601404
800.09378190331502670.1875638066300530.906218096684973
810.1116575150952320.2233150301904650.888342484904768
820.1947326883505970.3894653767011930.805267311649403
830.2680936131752870.5361872263505740.731906386824713
840.2270512539363170.4541025078726340.772948746063683
850.3037082016381870.6074164032763750.696291798361813
860.2791855845823880.5583711691647760.720814415417612
870.2318252556958220.4636505113916440.768174744304178
880.3937043484393180.7874086968786360.606295651560682
890.3357417486086480.6714834972172960.664258251391352
900.3855589406337630.7711178812675260.614441059366237
910.3746874608046740.7493749216093490.625312539195326
920.3427329452898470.6854658905796930.657267054710153
930.6311454261635010.7377091476729980.368854573836499
940.5755110939721050.848977812055790.424488906027895
950.5507691820982040.8984616358035920.449230817901796
960.5248529587250690.9502940825498620.475147041274931
970.640247457622090.7195050847558210.359752542377911
980.583090693195790.833818613608420.41690930680421
990.5324640811814190.9350718376371620.467535918818581
1000.4577362627198140.9154725254396280.542263737280186
1010.3924810145381260.7849620290762520.607518985461874
1020.3492905502186980.6985811004373950.650709449781302
1030.2866132492994290.5732264985988580.713386750700571
1040.7730684690939780.4538630618120450.226931530906022
1050.8193461204833350.361307759033330.180653879516665
1060.7578327744657670.4843344510684660.242167225534233
1070.7382350911819760.5235298176360480.261764908818024
1080.6525786020069060.6948427959861880.347421397993094
1090.5476988466132790.9046023067734430.452301153386721
1100.4419600405341570.8839200810683150.558039959465843
1110.3479266146334230.6958532292668460.652073385366577
1120.5769288912048290.8461422175903410.423071108795171
1130.4150602942168560.8301205884337120.584939705783144


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/10l1ip1292285786.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/10l1ip1292285786.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/1eild1292285786.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/1eild1292285786.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/26r2g1292285786.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/26r2g1292285786.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/36r2g1292285786.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/36r2g1292285786.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/46r2g1292285786.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/46r2g1292285786.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/5hiji1292285786.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/5hiji1292285786.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/6hiji1292285786.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/6hiji1292285786.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/7ss1l1292285786.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/7ss1l1292285786.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/8ss1l1292285786.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285767eg4qpeo2i79c434/8ss1l1292285786.ps (open in new window)


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