Home » date » 2010 » Dec » 02 »

Paper vrienden vinden

*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: Thu, 02 Dec 2010 12:15:29 +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/02/t129129212393u5f81ywogofjd.htm/, Retrieved Thu, 02 Dec 2010 13:15:57 +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/02/t129129212393u5f81ywogofjd.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 «
15 11 12 13 6 12 12 7 11 4 15 12 13 14 6 12 11 11 12 5 14 11 16 12 5 8 10 10 6 4 11 11 15 10 5 15 9 5 11 3 4 10 4 10 2 13 12 7 12 5 19 12 15 15 6 10 12 5 13 6 15 13 16 18 8 6 9 15 11 6 7 12 13 12 3 14 12 13 13 6 16 12 15 14 6 14 13 10 16 8 15 11 17 16 6 12 12 9 13 4 9 15 6 8 4 12 11 11 14 2 14 12 13 15 6 12 10 12 13 6 14 11 10 16 6 10 13 4 13 6 14 6 13 12 6 16 12 15 15 7 10 12 8 11 4 8 10 10 14 3 12 12 8 13 5 11 12 7 13 6 8 11 9 12 4 13 9 14 14 6 11 10 5 13 3 12 12 7 12 3 16 12 16 14 6 13 12 16 16 6 5 14 4 5 2 14 10 12 15 6 13 10 8 8 4 16 11 17 16 7 15 10 12 16 6 11 10 12 14 5 15 12 13 13 6 16 11 14 14 6 13 8 14 14 5 11 12 15 12 6 12 10 14 13 7 12 7 11 15 5 10 11 13 15 6 8 7 4 13 6 9 11 8 10 4 12 8 13 13 5 14 11 15 14 6 12 12 15 13 6 11 8 8 13 4 14 14 17 18 6 7 14 12 12 4 16 11 13 14 7 16 12 14 16 8 11 14 7 13 6 16 9 16 16 6 13 13 11 15 6 11 8 10 14 5 13 11 14 13 6 14 9 19 12 6 15 12 14 16 4 10 7 8 9 5 15 11 15 15 8 11 12 8 16 6 11 11 8 12 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 time10 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
FindingFriends[t] = + 10.1709445126328 + 0.100818898434514Popularity[t] -0.0457479600331225KnowingPeople[t] + 0.0459202753566864Liked[t] -0.0882532612200294Celebrity[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)10.17094451263280.9265910.976800
Popularity0.1008188984345140.0737291.36740.1736670.086834
KnowingPeople-0.04574796003312250.056098-0.81550.416160.20808
Liked0.04592027535668640.0877620.52320.601630.300815
Celebrity-0.08825326122002940.145183-0.60790.5442480.272124


Multiple Linear Regression - Regression Statistics
Multiple R0.142043863917955
R-squared0.0201764592767424
Adjusted R-squared-0.00761995322604503
F-TEST (value)0.725865586960875
F-TEST (DF numerator)4
F-TEST (DF denominator)141
p-value0.57567568711713
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.80338023245963
Sum Squared Residuals458.557417058485


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11111.2016964810699-0.201696481069856
21211.21264555765860.787354442341446
31211.20186879639340.79813120360664
41110.98732073166270.0126792683372818
51110.96021872836610.0397812716338672
61010.4425247070377-0.442524707037697
71110.61166944238230.388330557617659
8911.6948514342484-2.69485143424837
91010.6739244973652-0.673924497365182
101211.27113147022970.728868529770278
111211.55956874542190.440431254578146
121211.01783770912910.982162290870917
131311.07179949528071.92820050471932
14910.0652419643464-1.06524196434643
151210.56823684186401.43176315813604
161211.05512962260220.944870377397843
171211.21119177476160.788808225238374
181311.15362780633151.84637219366847
191111.1107175069742-0.110717506974240
201211.21299018830570.78700981169432
211510.81817599631814.18182400368193
221111.3439210660362-0.343921066036179
231211.14697017331550.85302982668447
241010.8992397857663-0.899239785766253
251111.3301343287716-0.330134328771585
261311.06358566916221.93641433083779
27611.0092093472455-5.00920934724547
281211.16885878889830.831141211101717
291210.96525980075641.03474019924360
301010.8981401711112-0.898140171111218
311211.17048488711880.829515112881227
321211.02716068749740.972839312502648
331110.76379431921090.236205680789062
34910.9544830394912-1.95448303949121
351011.3834163912237-1.38341639122369
361211.34681909423530.653180905764733
371211.16544381472850.834556185271496
381210.95482767013831.04517232986166
391410.54514201901633.45485798098374
401011.1927181333487-1.19271813334865
411011.1299556699899-1.12995566998988
421111.1232831441887-0.123283144188725
431011.3394573071399-1.33945730713985
441010.9325944239085-0.932594423908455
451211.15594852103670.844051478963329
461111.2569397347947-0.256939734794749
47811.0427363007112-3.04273630071124
481210.61525673187571.38474326812432
491010.7194906044800-0.719490604479978
50711.1250815577328-4.12508155773278
511110.74369457957750.256305420422524
52710.8619478722932-3.86194787229318
531110.81852062696520.181479373034799
54810.9417450869532-2.94174508695316
551111.0095539778926-0.0095539778925989
561210.76199590566691.23800409433311
57811.1579192499043-3.15791924990429
581411.10173915925312.8982608407469
591410.52573154067713.47426845932294
601111.2144344336078-0.214434433607842
611211.17227376306810.827726236931937
621411.02716068749742.97283931250265
63911.2572843654419-2.25728436544188
641311.13764719494731.86235280505274
65811.0240903439747-3.0240903439747
661110.90856276413450.0914372358654787
67910.7347215870467-1.73472158704674
681211.42446790951370.575532090486333
69710.785165988823-3.785165988823
701110.97978662924370.0202133707562597
711211.11917355353430.880826446465711
721110.93549245210750.0645075478924571
731210.82998664952471.17001335047535
74911.3801737323775-2.38017373237747
751110.89275446807380.107245531926179
761310.90873507945812.09126492054191
771211.08257625654590.917423743454129
781210.81312956873741.18687043126260
791110.86461321764550.135386782354548
801211.19486117753980.805138822460166
811211.25693973479470.743060265205251
821111.1984538222236-0.198453822223578
831110.96346138721230.0365386127876514
84810.6737426444469-2.67374264444686
85911.0820593105752-2.08205931057518
861211.07574630820630.924253691793688
871310.85170294978382.14829705021616
881211.21784940777760.782150592222378
89611.0657340685438-5.06573406854379
901211.16724222827260.832757771727443
911110.68503635168270.314963648317259
921311.14338288382221.85661711617781
931111.1137878504969-0.113787850496892
941210.85546255460071.14453744539925
951010.9419174022767-0.941917402276723
961010.7855106194701-0.785510619470127
971111.1263534877114-0.126353487711377
981111.0323137076879-0.0323137076879334
99910.9136038365248-1.91360383652479
100710.901555145281-3.901555145281
1011110.97834238394160.0216576160584226
1021211.16903110422180.830968895778153
1031210.95448303949121.04551696050879
1041510.59533884516054.40466115483945
1051111.0151173514440-0.0151173514439601
1061011.0187046409373-1.01870464093730
1071310.85007685156342.14992314843665
1081310.85331951040962.14668048959043
1091111.1690311042218-0.169031104221847
1101210.76199590566691.23800409433311
1111210.69742967357371.30257032642634
1121211.30790108254170.692098917458296
113810.1304004027188-2.13040040271876
114510.6613493225559-5.66134932255594
1151111.2113640900852-0.21136409008519
1161210.79697664202961.20302335797042
1171210.72719702222251.27280297777748
1181111.2314638297187-0.231463829718652
1191210.83733889902531.16266110097470
1201010.7856829347937-0.78568293479369
121710.5162362469852-3.51623624698522
1221210.96363370253591.03636629746409
1231210.79824857200821.20175142799182
124910.9290071344151-1.92900713441511
1251211.70793401743350.292065982566457
1261210.75447134084271.24552865915733
1271110.71804635917780.281953640822185
1281110.96543211608000.0345678839200346
1291211.14338288382220.856617116177813
1301210.72719702222251.27280297777748
1311110.91180542298070.0881945770192629
1321211.53913391273600.460866087263974
1331211.03341332234300.966586677657031
134810.8870187791989-2.88701877919890
1351110.89599712692000.104002873079963
1361111.1928904486722-0.192890448672217
137610.8906060686922-4.89060606869224
1381311.17332254779461.82667745220539
1391211.00955397789260.9904460221074
1401211.04256398538770.957436014612327
1411211.17227376306810.827726236931937
1421211.04580664423390.95419335576611
1431211.03017066349680.969829336503247
1441010.9072908341559-0.907290834155922
1451211.50629622056450.493703779435484
1461211.25120404591980.748795954080176


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.09196748541312280.1839349708262460.908032514586877
90.07517558545066150.1503511709013230.924824414549339
100.03648592193721540.07297184387443070.963514078062785
110.01672872421351860.03345744842703720.983271275786481
120.008202593654820630.01640518730964130.99179740634518
130.003660754452319820.007321508904639650.99633924554768
140.02017484290896690.04034968581793380.979825157091033
150.02473590495224370.04947180990448750.975264095047756
160.01400700515408660.02801401030817320.985992994845913
170.007091477009385660.01418295401877130.992908522990614
180.003803688087355970.007607376174711950.996196311912644
190.003162027983877580.006324055967755170.996837972016122
200.001829915625937550.003659831251875110.998170084374062
210.08624331116445970.1724866223289190.91375668883554
220.05950487456088220.1190097491217640.940495125439118
230.03984718770988240.07969437541976480.960152812290118
240.04126550563071780.08253101126143560.958734494369282
250.03225979212988260.06451958425976530.967740207870117
260.02447950953243690.04895901906487380.975520490467563
270.3420676341334760.6841352682669520.657932365866524
280.2894131574802030.5788263149604050.710586842519797
290.2463137133668170.4926274267336350.753686286633183
300.2183919973470980.4367839946941970.781608002652902
310.1769401456592000.3538802913184000.8230598543408
320.1420502504900710.2841005009801410.85794974950993
330.1098009365638020.2196018731276050.890199063436198
340.1280110561697520.2560221123395040.871988943830248
350.1202396256945440.2404792513890870.879760374305456
360.0985393700786950.197078740157390.901460629921305
370.08177380933455420.1635476186691080.918226190665446
380.06645247268344920.1329049453668980.93354752731655
390.1275257608788650.2550515217577300.872474239121135
400.1167010163437490.2334020326874980.883298983656251
410.1044730100438530.2089460200877060.895526989956147
420.081023979596120.162047959192240.91897602040388
430.0737247720732220.1474495441464440.926275227926778
440.06245603986900590.1249120797380120.937543960130994
450.05028361833286730.1005672366657350.949716381667133
460.037607921990640.075215843981280.96239207800936
470.06349748347107460.1269949669421490.936502516528925
480.0549713883648020.1099427767296040.945028611635198
490.04753111313229850.0950622262645970.952468886867702
500.1406828740197650.2813657480395300.859317125980235
510.1135806973710400.2271613947420800.88641930262896
520.2818927682179130.5637855364358250.718107231782087
530.2408267283740090.4816534567480180.759173271625991
540.3059212025018710.6118424050037410.69407879749813
550.2629174619130290.5258349238260590.73708253808697
560.2410817080498910.4821634160997820.758918291950109
570.3152998149266330.6305996298532650.684700185073367
580.4162007753887890.8324015507775780.583799224611211
590.5467857214559970.9064285570880060.453214278544003
600.498321685703490.996643371406980.50167831429651
610.4579088121623210.9158176243246410.542091187837679
620.5332728347800530.9334543304398930.466727165219947
630.556971888618510.886056222762980.44302811138149
640.5590912033993510.8818175932012980.440908796600649
650.6417317344841340.7165365310317310.358268265515866
660.595407316464580.809185367070840.40459268353542
670.5929343809473820.8141312381052360.407065619052618
680.561234851545380.877530296909240.43876514845462
690.714335980139980.571328039720040.28566401986002
700.671762130649030.656475738701940.32823786935097
710.6379296415270450.724140716945910.362070358472955
720.5919847383992520.8160305232014950.408015261600748
730.5642481615667840.8715036768664320.435751838433216
740.6098630890889580.7802738218220840.390136910911042
750.5638732333514630.8722535332970730.436126766648537
760.5815319528822510.8369360942354980.418468047117749
770.5471870151468680.9056259697062630.452812984853132
780.528060396957270.943879206085460.47193960304273
790.4796989766778530.9593979533557060.520301023322147
800.4419537616668910.8839075233337820.558046238333109
810.4021954153925980.8043908307851950.597804584607402
820.3610192608076610.7220385216153220.638980739192339
830.3162727895129750.6325455790259510.683727210487024
840.3621601146541750.724320229308350.637839885345825
850.3744147467330950.748829493466190.625585253266905
860.3380725872511300.6761451745022590.66192741274887
870.3520141097570060.7040282195140120.647985890242994
880.316082681428680.632165362857360.68391731857132
890.7146511138771290.5706977722457420.285348886122871
900.6762952547786050.647409490442790.323704745221395
910.6386366264051520.7227267471896960.361363373594848
920.6292878224350340.7414243551299330.370712177564966
930.5801488274342370.8397023451315260.419851172565763
940.5590205553785220.8819588892429560.440979444621478
950.5193400346638970.9613199306722070.480659965336103
960.4807931789845820.9615863579691630.519206821015418
970.4295832500148530.8591665000297060.570416749985147
980.3844150591603870.7688301183207750.615584940839613
990.398363255477610.796726510955220.60163674452239
1000.5482306795472040.9035386409055920.451769320452796
1010.4949571187962370.9899142375924750.505042881203763
1020.4559571028699680.9119142057399350.544042897130032
1030.4243423022350270.8486846044700530.575657697764973
1040.7742564029436430.4514871941127140.225743597056357
1050.7496654156894970.5006691686210060.250334584310503
1060.7467052557034380.5065894885931230.253294744296562
1070.7576822795407640.4846354409184710.242317720459236
1080.7675305961297910.4649388077404190.232469403870209
1090.7212249653569990.5575500692860020.278775034643001
1100.7139710973137120.5720578053725770.286028902686288
1110.7183995150864870.5632009698270250.281600484913513
1120.6694558291805640.6610883416388710.330544170819436
1130.7942966685782920.4114066628434150.205703331421708
1140.9776239324382220.04475213512355550.0223760675617778
1150.9686037839753980.06279243204920420.0313962160246021
1160.977788036636270.04442392672745820.0222119633637291
1170.9727062763361760.05458744732764890.0272937236638244
1180.977109773539660.04578045292068190.0228902264603409
1190.966252344904220.06749531019156010.0337476550957800
1200.9559224284524050.08815514309518950.0440775715475948
1210.9867902565203040.02641948695939100.0132097434796955
1220.9792687764089450.04146244718210970.0207312235910549
1230.9678413199825520.06431736003489710.0321586800174485
1240.9916551861378320.01668962772433590.00834481386216794
1250.9878711729617340.02425765407653270.0121288270382663
1260.9959558774432340.00808824511353110.00404412255676555
1270.9962542332840330.007491533431934620.00374576671596731
1280.9926743340708650.01465133185827080.0073256659291354
1290.9918444203477160.0163111593045680.008155579652284
1300.9933212852601850.01335742947962950.00667871473981474
1310.9874234895241930.02515302095161490.0125765104758074
1320.9879863546533890.02402729069322270.0120136453466113
1330.9909553833233170.01808923335336570.00904461667668284
1340.9869759388180120.0260481223639760.013024061181988
1350.9739350770777020.05212984584459530.0260649229222977
1360.9452932468265280.1094135063469440.0547067531734722
1370.9961647764654060.007670447069187740.00383522353459387
1380.9837432958129450.03251340837411050.0162567041870552


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level70.0534351145038168NOK
5% type I error level290.221374045801527NOK
10% type I error level410.312977099236641NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/10ivdx1291292116.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/10ivdx1291292116.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/1cugl1291292116.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/1cugl1291292116.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/2cugl1291292116.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/2cugl1291292116.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/3mmy61291292116.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/3mmy61291292116.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/4mmy61291292116.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/4mmy61291292116.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/5mmy61291292116.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/5mmy61291292116.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/6xvx91291292116.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/6xvx91291292116.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/78meu1291292116.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/78meu1291292116.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/88meu1291292116.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/88meu1291292116.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/98meu1291292116.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t129129212393u5f81ywogofjd/98meu1291292116.ps (open in new window)


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