Home » date » 2010 » Dec » 21 »

workshop 7

*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, 21 Dec 2010 20:06:07 +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/21/t1292961886do7n9qb7u7g8hf9.htm/, Retrieved Tue, 21 Dec 2010 21:04:46 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9.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 «
5 6 5 7 11 2 2 6 2 3 11 1 6 6 6 5 15 1 6 4 4 5 9 2 6 2 6 3 11 1 5 7 3 4 17 1 5 6 5 4 16 1 6 5 3 5 9 1 6 6 5 5 14 1 5 7 4 5 12 1 5 7 1 6 6 2 5 4 6 5 4 1 6 1 6 2 13 1 5 6 6 5 12 1 5 4 4 4 10 1 6 5 6 6 14 2 6 5 5 5 12 1 4 6 3 6 9 1 5 4 5 5 16 2 5 6 4 2 13 2 5 3 5 3 12 1 6 3 6 5 11 1 5 5 3 6 12 2 7 5 4 5 12 2 6 5 5 4 11 1 6 5 4 5 16 2 6 5 5 5 9 1 6 2 6 5 8 2 4 6 7 5 11 1 5 7 2 6 9 2 6 2 4 6 16 2 4 3 6 6 14 1 5 6 5 6 10 2 5 5 5 4 14 1 5 7 5 4 13 2 7 5 6 3 12 1 7 6 6 5 16 2 6 5 1 6 16 1 7 3 4 4 15 1 6 7 2 6 5 2 5 5 3 3 12 2 6 5 4 2 11 1 4 6 5 5 15 1 6 2 4 5 15 2 5 3 3 6 10 2 6 6 4 4 12 1 6 7 6 3 5 1 5 5 4 3 16 1 6 4 5 4 16 1 5 6 4 5 12 2 5 7 5 4 6 2 5 2 6 3 7 2 6 2 6 4 14 2 6 2 4 4 8 2 5 5 4 4 12 1 7 2 6 3 10 2 6 5 4 6 11 2 5 6 2 5 17 1 5 2 6 5 13 1 6 4 5 6 15 1 5 6 6 6 10 1 5 4 6 4 9 2 6 3 5 5 16 1 6 3 5 4 11 2 3 3 5 6 8 2 5 6 5 5 14 2 5 6 3 5 11 2 6 5 4 5 12 1 5 3 1 5 14 2 5 3 5 2 15 1 4 2 2 5 14 2 5 3 6 5 11 2 5 3 5 5 11 2 2 5 2 2 15 1 6 3 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 time9 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
populariteit[t] = + 13.7438661467663 + 0.336037867571855handgebruik[t] -0.000975929547537062stilheid[t] -0.200868238399153extravert[t] -0.120634791794267blozen[t] -1.43680541322535geslacht[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)13.74386614676631.8550417.408900
handgebruik0.3360378675718550.2290871.46690.1445950.072298
stilheid-0.0009759295475370620.154563-0.00630.9949710.497485
extravert-0.2008682383991530.178351-1.12630.2619320.130966
blozen-0.1206347917942670.210526-0.5730.5675280.283764
geslacht-1.436805413225350.51532-2.78820.0060170.003008


Multiple Linear Regression - Regression Statistics
Multiple R0.284174894713546
R-squared0.080755370785455
Adjusted R-squared0.0488371544932832
F-TEST (value)2.53007154429432
F-TEST (DF numerator)5
F-TEST (DF denominator)144
p-value0.0315164196338129
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.87291971947705
Sum Squared Residuals1188.52815089665


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11110.69580434633400.304195653665986
21112.2096400392183-1.20964003921835
31512.50904897232062.49095102767937
4911.4759318949887-2.47593189498865
51112.7542222740993-1.75422227409931
61712.89527468219304.10472531780704
71612.49451413494223.50548586505781
8913.1126296170656-4.11262961706562
91412.70991721071981.29008278928022
101212.5737716519995-0.573771651999539
11611.6189361621774-5.61893616217738
12412.1749629638438-8.17496296384384
131312.87583299544110.124167004558888
141212.1730111047488-0.173011104748771
151012.6973342324364-2.69733423243642
161410.95258469684853.04741530315146
171212.7108931402673-0.710893140267316
18912.3189431605801-3.31894316058011
191610.93902578901765.06097421098236
201311.49984654370451.50015345629548
211212.6180767153791-0.618076715379068
221112.5119767609632-1.51197676096324
231211.21915154447410.780848455525855
241211.81099383301300.189006166987030
251112.8315279320616-1.83152793206158
261611.47495596544114.52504403455888
27912.7108931402673-3.71089314026732
28811.0761472772854-3.07614727728542
291111.6361049987778-0.636104998777763
30911.4180679237782-2.41806792377822
311611.35724896228954.64275103771054
321411.71926623402532.28073376597474
331010.8164391381283-0.816439138128302
341412.49549006448971.50450993551027
351311.05673279216931.9432672078307
361213.0873323530286-1.08733235302855
371611.40828142666714.59171857333287
381613.39373130206972.60626869793034
391513.37038589712771.62961410287233
40511.7541057913501-6.75410579135008
411211.58105591985690.418944080143055
421113.2736657540493-2.27366575404927
431512.03784147557612.96215852442393
441511.47788375408373.52211624591627
451011.2211034035692-1.22110340356922
461213.0314202409132-1.03142024091320
47512.7493426263616-7.74934262636163
481612.81699309468313.18300690531685
491612.83250386160913.16749613839088
501211.13794216832170.862057831678278
51611.0567327921693-5.0567327921693
52710.9813789933021-3.9813789933021
531411.19678206907972.80321793092031
54811.598518545878-3.59851854587799
551212.6963583028889-0.69635830288888
561011.6534547284458-1.65345472844581
571111.3543211736468-0.354321173646848
581712.97648405834544.02351594165462
591312.17691482293890.823085177061081
601512.59123427802062.40876572197941
611012.0523763129545-2.05237631295450
62910.8587923424128-1.85879234241276
631612.71284499936243.28715500063761
641111.3966743779313-0.396674377931303
65810.1472911916272-2.14729119162720
661410.93707392992263.06292607007743
671111.3388104067209-0.338810406720875
681212.9117613786665-0.911761378666468
691411.74347467216182.25652532783821
701512.73871150717332.26128849282667
711411.20754449573832.79245550426168
721110.73913348016600.260866519833972
731110.94000171856520.0599982814348192
741512.33125076056022.66874923943985
75710.9545365559436-3.95453655594362
761211.39472251883620.605277481163771
771012.6335874823050-2.63358748230504
781311.5551894120461.444810587954
791511.01730737652753.98269262347254
801312.69538237334130.304617626658657
811513.27366575404931.72633424595073
82811.2624806783061-3.26248067830614
831412.37387934314791.62612065685208
841111.6334709995558-0.633470999555812
851210.42644101753621.57355898246383
861612.71089314026733.28910685973268
87810.0680336745699-2.06803367456985
881212.3748552726955-0.374855272695460
891612.29364589654303.70635410345696
901111.555189412046-0.555189412046
911312.57572351109460.424276488905387
92613.0333721000083-7.03337210000827
93411.555189412046-7.555189412046
941113.0333721000083-2.03337210000827
95711.2615047487586-4.2615047487586
961210.86857883952391.13142116047615
971212.2027813307499-0.202781330749864
981613.45159527328012.54840472671991
991512.71186906981492.28813093018515
1001312.71284499936240.28715500063761
1011212.2542204809012-0.254220480901194
102912.0388174051236-3.03881740512361
1031613.03532395910332.96467604089665
1041113.3134978554648-2.31349785546477
1051411.27701551568462.72298448431543
1061011.3388104067209-1.33881040672087
1071012.5129526905108-2.51295269051078
1081112.6345634118526-1.63456341185258
1091612.65177786120603.34822213879396
110812.3120844521116-4.31208445211162
1111612.61807671537913.38192328462093
1121212.1739870342963-0.173987034296308
1131111.5028872287001-0.502887228700134
1141611.71829030447774.28170969552228
115913.1116536875181-4.11165368751808
1161310.86074420150782.13925579849217
1171412.18657001257971.81342998742033
1181012.2027813307499-2.20278133074986
1191213.0727975156501-1.07279751565012
1201112.1614040560129-1.16140405601295
1211010.1472911916272-0.147291191627203
1221212.7108931402673-0.710893140267316
1231312.69635830288890.30364169711112
1241411.81196976256052.18803023743949
1251212.5119767609632-0.511976760963238
1261412.51295269051081.48704730948923
1271312.69538237334130.304617626658657
128812.3379509599226-4.33795095992257
1291311.64686742543641.35313257456360
1301012.5747475815471-2.57474758154708
131910.9921414199607-1.99214141996073
132811.4749559654411-3.47495596544111
1331511.13794216832173.86205783167828
1341512.77659174949382.22340825050623
1351212.979411846988-0.979411846987993
13689.8073496058652-1.8073496058652
1371512.73675964807832.26324035192174
138912.6973342324364-3.69733423243642
1391410.83194990505433.16805009494572
1401612.95411458295093.04588541704908
1411413.54316039031750.456839609682518
1421410.93804985947013.06195014052989
1431412.6161248562841.38387514371601
1441412.71382092890991.28617907109007
1451411.15540479434282.84459520565723
1461311.51828509927311.48171490072689
1471212.9107854491189-0.910785449118931
1481310.87137532069612.12862467930388
1491913.29112838007035.70887161992968
150911.1418458865119-2.14184588651187


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.07051372631683940.1410274526336790.92948627368316
100.1091963366422320.2183926732844640.890803663357768
110.1229522436820220.2459044873640430.877047756317978
120.3878682577481360.7757365154962710.612131742251864
130.2939408910108210.5878817820216420.706059108989179
140.2273973722557480.4547947445114970.772602627744252
150.189686334497980.379372668995960.81031366550202
160.1581546768485590.3163093536971190.84184532315144
170.1220484344417020.2440968688834040.877951565558298
180.2503020584067650.5006041168135310.749697941593235
190.4556713515831780.9113427031663560.544328648416822
200.7091486938473570.5817026123052860.290851306152643
210.642458135756410.715083728487180.35754186424359
220.5751863377290820.8496273245418370.424813662270918
230.5812522924986910.8374954150026190.418747707501309
240.5094602820220670.9810794359558670.490539717977933
250.4700365778309230.9400731556618460.529963422169077
260.543054209244090.9138915815118210.456945790755911
270.5419094779024550.916181044195090.458090522097545
280.532704117783070.9345917644338610.467295882216930
290.5021942438866070.9956115122267850.497805756113393
300.4706406196396160.9412812392792320.529359380360384
310.7554499283618180.4891001432763640.244550071638182
320.7888561306856190.4222877386287620.211143869314381
330.7633678272941410.4732643454117180.236632172705859
340.7333025524002120.5333948951995750.266697447599788
350.6922162261065730.6155675477868550.307783773893427
360.6511369894703990.6977260210592010.348863010529601
370.6673955173308270.6652089653383460.332604482669173
380.764278060919490.4714438781610190.235721939080509
390.7418760672640130.5162478654719730.258123932735987
400.8885899478156580.2228201043686850.111410052184342
410.8608255910758110.2783488178483770.139174408924188
420.8460923876339540.3078152247320920.153907612366046
430.8511444426784520.2977111146430960.148855557321548
440.8605393793791380.2789212412417240.139460620620862
450.8340315925646680.3319368148706650.165968407435332
460.8016690459989610.3966619080020770.198330954001039
470.9451011098328780.1097977803342440.0548988901671219
480.9507011925853920.09859761482921540.0492988074146077
490.9536354401653980.09272911966920470.0463645598346023
500.9405777320542440.1188445358915130.0594222679457564
510.9667391493207070.06652170135858670.0332608506792934
520.9769348125113570.04613037497728510.0230651874886426
530.975177282391250.04964543521749960.0248227176087498
540.9790281590312680.04194368193746350.0209718409687318
550.9725092225375680.05498155492486340.0274907774624317
560.9671540624456930.06569187510861390.0328459375543069
570.957269020974420.0854619580511590.0427309790255795
580.9675922069812580.06481558603748460.0324077930187423
590.9585682549695130.08286349006097380.0414317450304869
600.9543177940292450.09136441194150940.0456822059707547
610.9486758388780170.1026483222439660.0513241611219831
620.941055361261360.1178892774772810.0589446387386405
630.944343156872920.1113136862541590.0556568431270794
640.9297974896336440.1404050207327120.0702025103663559
650.9208019061360810.1583961877278370.0791980938639185
660.9219673865615140.1560652268769720.078032613438486
670.9037238811139240.1925522377721530.0962761188860764
680.8840775518630050.2318448962739910.115922448136995
690.8752296511684310.2495406976631380.124770348831569
700.8655644316668860.2688711366662280.134435568333114
710.8666712712666540.2666574574666930.133328728733346
720.8390512168639740.3218975662720520.160948783136026
730.8079688800614650.3840622398770710.192031119938535
740.801495765372710.3970084692545810.198504234627291
750.8298092064914710.3403815870170570.170190793508529
760.7993603698364220.4012792603271550.200639630163578
770.7940345296649010.4119309406701980.205965470335099
780.7664403474818640.4671193050362730.233559652518136
790.7951144970885910.4097710058228180.204885502911409
800.759330583190050.4813388336199010.240669416809950
810.731414450496980.5371710990060380.268585549503019
820.7414688743122170.5170622513755660.258531125687783
830.7122157184614190.5755685630771630.287784281538581
840.6711882558700580.6576234882598830.328811744129942
850.6447707794272350.7104584411455290.355229220572765
860.6548683208765020.6902633582469950.345131679123498
870.6319375325919150.736124934816170.368062467408085
880.5853345275505780.8293309448988450.414665472449422
890.6086055698523760.7827888602952490.391394430147624
900.5616701987468260.8766596025063480.438329801253174
910.5144285420375230.9711429159249530.485571457962477
920.7382937922337880.5234124155324230.261706207766212
930.925573396497210.1488532070055810.0744266035027906
940.918553754518250.1628924909635010.0814462454817507
950.9497121791356560.1005756417286870.0502878208643437
960.936285645275330.1274287094493390.0637143547246695
970.918372355054790.1632552898904220.081627644945211
980.913510925404410.1729781491911800.0864890745955902
990.905788768174840.1884224636503180.0942112318251592
1000.8819757348918410.2360485302163170.118024265108159
1010.8538138509285840.2923722981428310.146186149071416
1020.854784326068110.2904313478637790.145215673931890
1030.8606696816980590.2786606366038820.139330318301941
1040.8502589643082710.2994820713834580.149741035691729
1050.8398529536669040.3202940926661920.160147046333096
1060.8282643165392480.3434713669215040.171735683460752
1070.8155361001744070.3689277996511870.184463899825593
1080.787242780510790.425514438978420.21275721948921
1090.8200610323714690.3598779352570630.179938967628531
1100.8994075959361810.2011848081276380.100592404063819
1110.9125598494257030.1748803011485930.0874401505742965
1120.8884715556831610.2230568886336770.111528444316839
1130.8579288241183230.2841423517633540.142071175881677
1140.8984024818715020.2031950362569960.101597518128498
1150.94409483694820.1118103261035990.0559051630517994
1160.9342237251457280.1315525497085440.065776274854272
1170.9143151412524070.1713697174951850.0856848587475927
1180.8923781741428520.2152436517142970.107621825857148
1190.8734085180610510.2531829638778980.126591481938949
1200.8377451367391230.3245097265217540.162254863260877
1210.7970423047011990.4059153905976020.202957695298801
1220.7678876427192320.4642247145615360.232112357280768
1230.7120653388340290.5758693223319430.287934661165971
1240.6569111759319750.686177648136050.343088824068025
1250.6067722087310980.7864555825378040.393227791268902
1260.5413042483488670.9173915033022670.458695751651133
1270.4691696447830220.9383392895660440.530830355216978
1280.6827581015007450.634483796998510.317241898499255
1290.7254984365712310.5490031268575370.274501563428769
1300.721441252077270.557117495845460.27855874792273
1310.6506231326112410.6987537347775180.349376867388759
1320.861278675631590.2774426487368190.138721324368409
1330.857137817494220.2857243650115600.142862182505780
1340.8667447434975850.266510513004830.133255256502415
1350.8083101134880680.3833797730238640.191689886511932
1360.7922260422018660.4155479155962680.207773957798134
1370.725293617371990.5494127652560210.274706382628010
1380.7900335411440070.4199329177119850.209966458855993
1390.730819084022370.5383618319552610.269180915977631
1400.5957764219509230.8084471560981530.404223578049077
1410.462770763573730.925541527147460.53722923642627


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


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/1tija1292961952.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/1tija1292961952.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/2l9iv1292961952.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/2l9iv1292961952.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/3l9iv1292961952.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/3l9iv1292961952.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/4l9iv1292961952.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/4l9iv1292961952.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/5w0hx1292961952.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/5w0hx1292961952.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/6w0hx1292961952.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/6w0hx1292961952.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/77azi1292961952.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/77azi1292961952.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/8hjy31292961952.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/8hjy31292961952.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/9hjy31292961952.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292961886do7n9qb7u7g8hf9/9hjy31292961952.ps (open in new window)


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