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:04:26 +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/t1292285151xq2v5d21cswuwcy.htm/, Retrieved Tue, 14 Dec 2010 01:06:01 +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/t1292285151xq2v5d21cswuwcy.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 17.0 2146 0 5,9 81,9 21.0 2462 0 7,1 56,8 21.0 3695 0 10,5 65,1 18.0 4831 0 15,1 86,2 20.0 5134 0 16,8 35,1 11.0 6250 0 15,3 133,8 20.0 5760 0 18,4 34,5 13.0 6249 0 16,1 69,9 14.0 2917 0 11,3 98,3 23.0 1741 0 7,9 86,7 24.0 2359 0 5,6 58,2 22.0 1511 1 3,4 83,6 17.0 2059 0 4,8 83,5 18.0 2635 0 6,5 112,3 24.0 2867 0 8,5 134,3 23.0 4403 0 15,1 30,0 8.0 5720 0 15,7 44,5 10.0 4502 0 18,7 120,1 18.0 5749 0 19,2 43,4 13.0 5627 0 12,9 199,4 23.0 2846 0 14,4 68,1 14.0 1762 0 6,2 99,8 15.0 2429 0 3,3 69,5 18.0 1169 0 4,6 71,3 18.0 2154 1 7,2 167,8 20.0 2249 0 7,8 66,3 14.0 2687 0 9,9 41,9 12.0 4359 0 13,6 57,2 20.0 5382 0 17,1 72,3 14.0 4459 0 17,8 96,5 16.0 6398 0 18,6 172,1 19.0 4596 0 14,7 25,8 12.0 3024 0 10,5 105,1 17.0 1887 0 8,6 92,2 16.0 2070 0 4,4 109,3 18.0 1351 0 2,3 101,7 19.0 2218 0 2,8 29,1 8.0 2461 1 8,8 34,6 10.0 3028 0 10,7 46,7 10.0 4784 0 13,9 82,0 19.0 4975 0 19,3 34,4 8.0 4607 0 19,5 72,7 13.0 6249 0 20,4 44,4 8.0 4809 0 15,3 31,0 12.0 315 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 time14 seconds
R Server'George Udny Yule' @ 72.249.76.132
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
Huwelijken[t] = + 783.757819492143 + 510.48054551803Specialedag[t] + 253.376841202445Temperatuur[t] + 4.64850458396683Neerslag[t] -20.7393173509528`Neerslagdagen `[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)783.757819492143329.5712242.37810.019050.009525
Specialedag510.48054551803245.9131262.07590.0401360.020068
Temperatuur253.37684120244512.92347219.605900
Neerslag4.648504583966832.4633931.8870.0616770.030839
`Neerslagdagen `-20.739317350952819.71155-1.05210.2949410.14747


Multiple Linear Regression - Regression Statistics
Multiple R0.903839417044672
R-squared0.816925691803653
Adjusted R-squared0.810557889779433
F-TEST (value)128.290058123097
F-TEST (DF numerator)4
F-TEST (DF denominator)115
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation706.429999739536
Sum Squared Residuals57389984.6211801


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
115791657.13344882299-78.1334488229914
221462223.86804364344-77.8680436434429
324622411.242788028850.7572119712003
436953373.52458821691321.475411783093
548314595.66286976795235.337130232048
651344975.51877172998158.481228270020
762504867.607056205261382.39294379474
857605336.65398020161423.346019798393
962494897.704990357461351.29500964254
1029173626.8598266118-709.859826611799
1117412690.71659599852-949.716595998516
1223592016.94611529174342.053884708258
1315112191.76621335191-680.766213351912
1420592014.8090777079644.1909222920424
1526352454.99073566464180.009264335357
1628673084.75083626776-217.750836267757
1744034583.28872036045-180.28872036045
1857204761.23950684753958.76049315247
1945025706.88243819514-1204.88243819514
2057495580.72714396087168.272856039132
2156274502.226585974761124.77341402524
2228464458.59705206216-1612.59705206216
2317622507.5252321629-745.525232162899
2424291569.66475172875859.335248271247
2511691907.42195354307-738.421953543073
2621543483.78434383835-1329.78434383835
2722492777.94259187488-528.942591874876
2826873238.08908125313-551.089081253127
2943594080.79097502925278.209024970755
3053825162.23824256142219.761757438578
3144595410.61720763323-951.617207633225
3263985902.52767509021495.472324909785
3345964379.456995223216.543004777000
3430243580.20408892653-556.204088926534
3518873059.56169885967-1172.56169885967
3620702033.3897594933236.6102405066764
3713511445.23044077909-94.2304407790868
3822181462.5699194448755.430080555201
3924613477.39965268741-1016.39965268741
4030283504.58201092003-476.582010920029
4147844292.82625842331491.17374157669
4249755667.92487358018-692.924873580175
4346075792.94138063183-1185.94138063183
4462495993.12444474253255.875555257467
4548094555.65532378109253.344676218905
4631572771.84939810104385.150601898956
4719102817.49008894672-907.490088946718
4822281871.21375560281356.786244397193
4915941811.76009993120-217.760099931196
5024671987.13860628861479.861393711391
5122222261.16782576316-39.1678257631586
5236073968.55591261659-361.555912616588
5346853988.50788304881696.492116951191
5449624904.9353781578557.0646218421487
5557705341.69905933541428.300940664587
5654805707.42596630108-227.425966301081
5750004902.8618149392497.1381850607566
5832283751.41601117262-523.416011172618
5919932417.24396760459-424.243967604592
6022881471.38901517965816.610984820346
6115801727.08184724278-147.081847242782
6221111373.87922955282737.120770447178
6321922435.86465904146-243.864659041463
6436013356.61768671298244.382313287020
6546654574.3512824928590.6487175071544
6648765493.65128795271-617.651287952714
6758135662.81525200155150.184747998448
6855895052.47006001463536.529939985372
6953315106.5999327226224.400067277406
7030754305.23987033068-1230.23987033068
7120022239.14276767349-237.142767673486
7223061453.24491759563852.755082404368
7315071114.7716290979392.228370902099
7419921382.01077843714609.989221562862
7524871895.67187662093591.328123379067
7634903022.16457592211467.835424077888
7746474504.28974745438142.710252545625
7855945652.41391462215-58.4139146221518
7956116669.10369882957-1058.10369882957
8057885418.66714405848369.332855941517
8162045322.74340098201881.25659901799
8230134290.851377678-1277.851377678
8319313007.53365562736-1076.53365562736
8425492337.68439657833211.315603421668
8515042451.42075228544-947.420752285444
8620902576.87996466205-486.879964662054
8727022683.7286358401918.2713641598059
8829394407.04664868711-1468.04664868711
8945004507.45009330905-7.45009330905295
9062085284.93716559634923.062834403657
9164155728.52271464467686.477285355326
9256575136.72827343953520.271726560471
9359644292.296066867871671.70393313213
9431633519.16466013197-356.164660131974
9519972383.75313661823-386.753136618229
9624221843.20244764390578.797552356096
9713762282.35226232258-906.352262322576
9822022265.781122239-63.781122239002
9926832535.40319669202147.596803307982
10033033060.85410787364242.145892126362
10152024961.55992142758240.440078572422
10252314835.4870383046395.512961695403
10348805403.43723122332-523.437231223324
10479985774.735199853352223.26480014665
10549774410.8110622014566.188937798602
10635313386.71935432891144.280645671087
10720252307.07468254040-282.074682540398
10822051424.88209778236780.117902217636
10914421004.64073845393437.35926154607
11022381546.55771254639691.442287453607
11121792487.32090791077-308.32090791077
11232183858.82314016325-640.823140163255
11351394280.16648541013858.833514589872
11449905036.17175413787-46.171754137871
11549145446.92408804679-532.92408804679
11660845687.86330547656396.136694523443
11756725225.47076589272446.529234107285
11835483782.44071143009-234.440711430094
11917933178.58369461079-1385.58369461079
12020861500.10279969565585.897200304353


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.09815851547222230.1963170309444450.901841484527778
90.1363315015295700.2726630030591410.86366849847043
100.2515735524504150.5031471049008310.748426447549585
110.2019744719591750.403948943918350.798025528040825
120.3302479687583750.660495937516750.669752031241625
130.2374071139163480.4748142278326960.762592886083652
140.2025511778456090.4051023556912180.797448822154391
150.1384703367588900.2769406735177810.86152966324111
160.1354676711718250.2709353423436490.864532328828175
170.1928052933390140.3856105866780290.807194706660985
180.1622941023926740.3245882047853480.837705897607326
190.5215710529068940.9568578941862130.478428947093106
200.4428552123979310.8857104247958630.557144787602069
210.4495505335620570.8991010671241140.550449466437943
220.8184075514182890.3631848971634230.181592448581711
230.8421984315196050.3156031369607900.157801568480395
240.8599914074116410.2800171851767170.140008592588359
250.8569728660172690.2860542679654620.143027133982731
260.8799595557837680.2400808884324640.120040444216232
270.8643822930488620.2712354139022760.135617706951138
280.8455101327415240.3089797345169520.154489867258476
290.8101228445294240.3797543109411530.189877155470576
300.7661594413702220.4676811172595570.233840558629778
310.8143468883393560.3713062233212880.185653111660644
320.7803659913825190.4392680172349620.219634008617481
330.7384239367063270.5231521265873470.261576063293673
340.7195070190404260.5609859619191480.280492980959574
350.7884107293333930.4231785413332140.211589270666607
360.7484229343899980.5031541312200040.251577065610002
370.7038104603715470.5923790792569070.296189539628453
380.7260822747766060.5478354504467870.273917725223394
390.7539084902086570.4921830195826860.246091509791343
400.7305615120473490.5388769759053020.269438487952651
410.7082612681424010.5834774637151980.291738731857599
420.7040713836774690.5918572326450620.295928616322531
430.7804855839179350.4390288321641310.219514416082065
440.74732115994490.50535768011020.2526788400551
450.7116215335478270.5767569329043470.288378466452173
460.6782931271150940.6434137457698130.321706872884906
470.7091250147532020.5817499704935960.290874985246798
480.6734045864466510.6531908271066980.326595413553349
490.6396264928606130.7207470142787730.360373507139387
500.6110203734592110.7779592530815780.388979626540789
510.5573310910229820.8853378179540360.442668908977018
520.5676181803611390.8647636392777220.432381819638861
530.5733776872309090.8532446255381830.426622312769091
540.5209706225041970.9580587549916050.479029377495802
550.4891721067543550.978344213508710.510827893245645
560.4392997153796850.878599430759370.560700284620315
570.3873832454511860.7747664909023730.612616754548814
580.3657194698595150.7314389397190290.634280530140485
590.3408564864306370.6817129728612740.659143513569363
600.3514896413995420.7029792827990850.648510358600457
610.3039910807423980.6079821614847970.696008919257602
620.299188935489840.598377870979680.70081106451016
630.2587474407562630.5174948815125250.741252559243737
640.2240129670053240.4480259340106470.775987032994677
650.2299713591654170.4599427183308350.770028640834583
660.2150420751634630.4300841503269260.784957924836537
670.1794695274644710.3589390549289420.820530472535529
680.1696682620767440.3393365241534880.830331737923256
690.1414572186401320.2829144372802640.858542781359868
700.2089050700526760.4178101401053510.791094929947324
710.1772847093019340.3545694186038690.822715290698066
720.1921682467827760.3843364935655510.807831753217224
730.1647458442668240.3294916885336470.835254155733176
740.1494437656867310.2988875313734620.850556234313269
750.1368700965173490.2737401930346970.863129903482652
760.1226355860578280.2452711721156570.877364413942171
770.09713451416606040.1942690283321210.90286548583394
780.1111925232157830.2223850464315650.888807476784218
790.1495746299296500.2991492598592990.85042537007035
800.1240523723384790.2481047446769590.87594762766152
810.1501557279514370.3003114559028730.849844272048563
820.2281003987150070.4562007974300140.771899601284993
830.2871884080296120.5743768160592230.712811591970388
840.2406220990378470.4812441980756940.759377900962153
850.2726826845803390.5453653691606780.727317315419661
860.2574239708022460.5148479416044920.742576029197754
870.2107100239892200.4214200479784390.78928997601078
880.4822153361472530.9644306722945060.517784663852747
890.4194069614030330.8388139228060660.580593038596967
900.4765741920078640.9531483840157290.523425807992136
910.4705126313033020.9410252626066040.529487368696698
920.4303558353474370.8607116706948740.569644164652563
930.7601253190179770.4797493619640470.239874680982023
940.7524394793427670.4951210413144670.247560520657233
950.7041396422307290.5917207155385430.295860357769271
960.6706539002651210.6586921994697580.329346099734879
970.700966565401050.5980668691978980.299033434598949
980.6593723806157850.681255238768430.340627619384215
990.5961541063021480.8076917873957030.403845893697852
1000.519210492413970.961579015172060.48078950758603
1010.4411632704404540.8823265408809090.558836729559546
1020.4016425656196810.8032851312393610.598357434380320
1030.3315567467851300.6631134935702590.66844325321487
1040.8750514816300450.2498970367399100.124948518369955
1050.8648919210137860.2702161579724280.135108078986214
1060.8170141142625980.3659717714748040.182985885737402
1070.7367811027686480.5264377944627040.263218897231352
1080.6425015691625870.7149968616748260.357498430837413
1090.5423485110988350.915302977802330.457651488901165
1100.4561065874384100.9122131748768190.54389341256159
1110.401445138857770.802890277715540.59855486114223
1120.6673216998164150.665356600367170.332678300183585


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/t1292285151xq2v5d21cswuwcy/10ss1l1292285051.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285151xq2v5d21cswuwcy/10ss1l1292285051.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285151xq2v5d21cswuwcy/2eild1292285051.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285151xq2v5d21cswuwcy/2eild1292285051.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285151xq2v5d21cswuwcy/3eild1292285051.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285151xq2v5d21cswuwcy/3eild1292285051.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285151xq2v5d21cswuwcy/4eild1292285051.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285151xq2v5d21cswuwcy/4eild1292285051.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285151xq2v5d21cswuwcy/56r2g1292285051.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285151xq2v5d21cswuwcy/56r2g1292285051.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285151xq2v5d21cswuwcy/66r2g1292285051.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292285151xq2v5d21cswuwcy/66r2g1292285051.ps (open in new window)


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


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


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