Home » date » 2010 » Dec » 28 »

*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: Mon, 27 Dec 2010 23:09:03 +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/28/t12934913271vg79phyhb77w3s.htm/, Retrieved Tue, 28 Dec 2010 00:08:47 +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/28/t12934913271vg79phyhb77w3s.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 «
9 14 11 12 24 26 9 11 7 8 25 23 9 6 17 8 30 25 9 12 10 8 19 23 9 8 12 9 22 19 9 10 12 7 22 29 10 10 11 4 25 25 10 11 11 11 23 21 10 16 12 7 17 22 10 11 13 7 21 25 10 13 14 12 19 24 10 12 16 10 19 18 10 8 11 10 15 22 10 12 10 8 16 15 10 11 11 8 23 22 10 4 15 4 27 28 10 9 9 9 22 20 10 8 11 8 14 12 10 8 17 7 22 24 10 14 17 11 23 20 10 15 11 9 23 21 10 16 18 11 21 20 10 9 14 13 19 21 10 14 10 8 18 23 10 11 11 8 20 28 10 8 15 9 23 24 10 9 15 6 25 24 10 9 13 9 19 24 10 9 16 9 24 23 10 9 13 6 22 23 10 10 9 6 25 29 10 16 18 16 26 24 10 11 18 5 29 18 10 8 12 7 32 25 10 9 17 9 25 21 10 16 9 6 29 26 10 11 9 6 28 22 10 16 12 5 17 22 10 12 18 12 28 22 10 12 12 7 29 23 10 14 18 10 26 30 10 9 14 9 25 23 10 10 15 8 14 17 10 9 16 5 25 23 10 10 10 8 26 23 10 12 11 8 20 25 10 14 14 10 18 24 10 14 9 6 32 24 10 10 12 8 25 23 10 14 17 7 25 21 10 16 5 4 23 24 10 9 12 8 21 24 10 10 12 8 20 28 10 6 6 4 15 16 10 8 24 20 30 20 10 13 12 8 24 29 10 10 12 8 26 27 10 8 14 6 24 22 10 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 time7 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24
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
ParentalCriticism[t] = + 16.0234048905969 -1.34666003590030Month[t] + 0.150828087380878DoubtsActions[t] + 0.441218810283992ParentalExpectations[t] + 0.0296860262939057Standards[t] -0.105384926748471`Organization `[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)16.02340489059699.0917591.76240.0799970.039998
Month-1.346660035900300.897792-1.50.1356830.067841
DoubtsActions0.1508280873808780.0611322.46730.0147180.007359
ParentalExpectations0.4412188102839920.0530058.324100
Standards0.02968602629390570.0457090.64950.5170160.258508
`Organization `-0.1053849267484710.048531-2.17150.0314350.015717


Multiple Linear Regression - Regression Statistics
Multiple R0.630246087960682
R-squared0.397210131389744
Adjusted R-squared0.377511116075683
F-TEST (value)20.1639587084449
F-TEST (DF numerator)5
F-TEST (DF denominator)153
p-value1.99840144432528e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.13581302072108
Sum Squared Residuals697.939680700698


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1128.84092123954383.15907876045619
286.969402542804531.03059745719547
3810.5651104867126-2.56511048671264
488.26577090327395-0.265770903273949
599.05549396019402-0.0554939601940226
678.30330086747107-1.30330086747107
747.02601980716237-3.02601980716237
8117.539015548949323.46098445105068
978.4508737116258-1.45087371162580
1077.94054140993561-0.940541409935612
11128.729429269142023.27057073085798
121010.0933483628200-0.0933483628199535
13106.743658149706973.25634185029303
1487.67313220247970.326867797520302
1587.433630622200850.566369377799147
1647.62914379635547-3.62914379635547
1796.430620654074152.56937934592585
1887.767821390897780.232178609102220
1979.38800334197132-2.38800334197132
201110.74419759954440.255802400455617
2198.142327898472840.857672101527163
221111.4277005320023-0.42770053200232
23138.442271699863924.55772830013608
2487.19108101584150.808918984158504
2586.712262982828311.28773701717169
2698.535251747697240.464748252302757
2768.74545188766593-2.74545188766593
2897.684898109334521.31510189066548
2999.26236959840449-0.262369598404491
3067.8793411149647-1.87934111496470
3165.72204247960050.277957520399497
321611.15459095647804.84540904352204
33511.1218181589461-6.12181815894612
3477.37338462674195-0.373384626741947
3599.94404428847933-0.944044288479331
3667.06190988930681-1.06190988930681
3766.6996231331024-0.699623133102397
3858.4508737116258-3.4508737116258
391210.82142051303921.17857948696080
4078.09840875088068-1.09840875088069
411010.2206252212254-0.220625221225379
4298.409618004130410.590381995869588
4389.30742817305315-1.30742817305315
4459.2920556246984-4.2920556246984
4586.825256876669231.17474312333077
4687.17924585045460.8207541495454
47108.8505713302291.14942866977101
4867.06008164692371-1.06008164692371
4987.67800847094330.321991529056693
50710.6981847253837-3.69818472538372
5145.32968834390435-1.32968834390435
5287.303051351638330.696948648361666
5387.002653705731420.997346294268578
5444.86821748401608-0.868217484016083
552013.13556293130446.8644370686956
5687.468497146301210.531502853698792
5787.286154790243330.713845209756673
5868.3344888172041-2.3344888172041
5944.40344744475664-0.403447444756638
6089.28451591613803-1.28451591613803
6197.286724503771581.71327549622842
6267.98415632818492-1.98415632818492
6378.30549160623679-1.30549160623679
6496.23054653890762.76945346109240
6557.05867350289588-2.05867350289588
6655.94560179799634-0.945601797996344
6786.740690480267371.25930951973263
6888.23854109993117-0.238541099931174
6966.85916910125758-0.85916910125758
7087.176847894543250.82315210545675
7177.3333070914605-0.333307091460493
7276.084779847534830.91522015246517
7398.59405408675680.405945913243198
741111.0200897169638-0.0200897169638392
7568.64006696091746-2.64006696091746
7687.740348192970720.259651807029279
7768.39302567207825-2.39302567207825
7898.667659260642860.332340739357141
7986.405545412058441.59445458794156
8068.37544029535665-2.37544029535665
81108.300999923756931.69900007624307
8286.079834320539141.92016567946086
8388.34815222497409-0.348152224974092
84109.035842610569050.964157389430953
8555.91678971457353-0.916789714573533
8679.33989674124215-2.33989674124215
8757.16109076020475-2.16109076020475
8886.26598277653621.73401722346379
89149.909296866177314.09070313382269
9077.651290114089-0.651290114089004
9188.82088530393509-0.820885303935087
9264.875491708391041.12450829160896
9356.26769191712096-1.26769191712096
9469.22876160315898-3.22876160315898
95106.545677761108933.45432223889107
961211.54062516731120.459374832688838
9799.135900657124-0.135900657123995
981210.86983134311121.13016865688879
9977.53014805300203-0.530148053002031
10088.33296480416384-0.332964804163844
101109.153062702704410.846937297295586
10267.25817790453418-1.25817790453418
1031011.2049764113201-1.20497641132014
104108.686649548606381.31335045139363
105107.059362318222472.94063768177753
10658.44569321381935-3.44569321381935
10776.918422052047050.0815779479529461
108108.633362450070761.36663754992924
109119.726689025934021.27331097406598
11068.1952304110247-2.19523041102471
11177.47134571394247-0.471345713942473
112128.82804042651173.17195957348829
113116.339164619281084.66083538071892
1141110.80200689393450.197993106065491
115115.428564985459455.57143501454055
11657.59344207454145-2.59344207454145
117810.229254513576-2.22925451357600
11866.77828970299657-0.778289702996566
11999.4105342456886-0.410534245688608
12046.76157826914606-2.76157826914606
12145.7578134599466-1.75781345994660
12278.32904283521224-1.32904283521224
123119.585298148028691.41470185197131
12464.369839449511131.63016055048887
12577.03252809235574-0.0325280923557444
12689.91618650456852-1.91618650456852
12746.29947166998338-2.29947166998338
12887.041776941500870.958223058499127
12998.125547206090250.874452793909746
13087.659018182979790.340981817020209
131118.767293976056632.23270602394337
13287.470776000414220.52922399958578
13356.71043474044521-1.71043474044521
13445.84489368127223-1.84489368127223
13587.410834234298160.589165765701845
1361011.7953141684003-1.79531416840026
13768.26853135556792-2.26853135556792
13899.35598861829815-0.355988618298145
13997.152223264257461.84777673574254
140138.8845140681924.11548593180800
14197.846756677763271.15324332223673
142109.527450108481130.472549891518867
1432014.82720648642925.17279351357077
14456.00192582450364-1.00192582450364
1451110.38259965866660.617400341333438
14668.09574531078392-2.09574531078392
147910.1548141419763-1.15481414197627
14877.28337224834823-0.283372248348227
14998.135739256638560.864260743361444
150108.426514565525421.57348543447458
15196.919376351559062.08062364844094
152810.2127812833222-2.21278128332217
153711.2862403955649-4.28624039556491
15469.39073604060016-3.39073604060016
1551311.64505579454761.35494420545237
15668.00105288957993-2.00105288957993
15787.705031057140450.294968942859549
158109.470476011804670.529523988195328
1591611.75017523711074.24982476288931


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.8386603366341670.3226793267316650.161339663365833
100.7554826392277830.4890347215444350.244517360772217
110.8728844559958110.2542310880083770.127115544004189
120.8094931749591210.3810136500817570.190506825040879
130.8605277290438070.2789445419123860.139472270956193
140.8269127789368050.3461744421263890.173087221063195
150.7578209852313370.4843580295373250.242179014768663
160.7320750554179610.5358498891640780.267924944582039
170.7075832428977830.5848335142044350.292416757102217
180.6529042172137410.6941915655725190.347095782786259
190.5896645172614010.8206709654771970.410335482738598
200.5167486007791820.9665027984416350.483251399220818
210.4428788368966950.885757673793390.557121163103305
220.3676220759076760.7352441518153520.632377924092324
230.6429889209614560.7140221580770890.357011079038544
240.5844686118501280.8310627762997440.415531388149872
250.5241927162778630.9516145674442740.475807283722137
260.4723858925244950.944771785048990.527614107475505
270.4673971223267940.9347942446535880.532602877673206
280.4159190161676610.8318380323353220.584080983832339
290.3588424503060760.7176849006121520.641157549693924
300.346202246693910.692404493387820.65379775330609
310.2888840072964930.5777680145929850.711115992703507
320.5659242060960750.8681515878078510.434075793903925
330.7928815271523580.4142369456952840.207118472847642
340.770208850972350.4595822980552990.229791149027649
350.7296458901373070.5407082197253850.270354109862693
360.7079778121945240.5840443756109510.292022187805476
370.6590788180520580.6818423638958840.340921181947942
380.8291195606248180.3417608787503640.170880439375182
390.8292365893871320.3415268212257360.170763410612868
400.7971036542908280.4057926914183440.202896345709172
410.7569786630400180.4860426739199650.243021336959982
420.7233742856820750.553251428635850.276625714317925
430.7052755884964760.5894488230070480.294724411503524
440.7914815815812730.4170368368374540.208518418418727
450.7657565186510340.4684869626979320.234243481348966
460.7266251230829340.5467497538341330.273374876917066
470.6892352832992340.6215294334015310.310764716700766
480.6524147789483310.6951704421033380.347585221051669
490.607145112450380.785709775099240.39285488754962
500.6722295100824080.6555409798351840.327770489917592
510.6789186797736280.6421626404527440.321081320226372
520.6360474653881160.7279050692237680.363952534611884
530.593403548000880.813192903998240.40659645199912
540.5655677179954430.8688645640091150.434432282004557
550.9400051937212480.1199896125575040.0599948062787521
560.9248896349757870.1502207300484260.0751103650242132
570.9088094975264390.1823810049471220.091190502473561
580.910060074791790.1798798504164210.0899399252082107
590.8895551726282840.2208896547434320.110444827371716
600.8773915821060270.2452168357879470.122608417893973
610.8681041564294240.2637916871411520.131895843570576
620.8631406744296740.2737186511406530.136859325570326
630.8466826967573650.3066346064852710.153317303242635
640.8635006181332830.2729987637334340.136499381866717
650.8612906212601150.277418757479770.138709378739885
660.8400955301093110.3198089397813770.159904469890689
670.8202823798164960.3594352403670080.179717620183504
680.7893110840078480.4213778319843040.210688915992152
690.7606976358859330.4786047282281340.239302364114067
700.7282303939352070.5435392121295860.271769606064793
710.6888013665024350.6223972669951310.311198633497565
720.6534599893251230.6930800213497530.346540010674877
730.6114271298061180.7771457403877640.388572870193882
740.5657669160328820.8684661679342360.434233083967118
750.5900200584121480.8199598831757030.409979941587852
760.5444638547181210.9110722905637570.455536145281879
770.5569347100685780.8861305798628430.443065289931422
780.5112499699368690.9775000601262610.488750030063131
790.4864761889907890.9729523779815770.513523811009211
800.4973845349877350.994769069975470.502615465012265
810.4764619684174840.9529239368349680.523538031582516
820.4637088260049220.9274176520098440.536291173995078
830.4188606495207330.8377212990414650.581139350479267
840.3825661754149230.7651323508298470.617433824585077
850.3484672740546490.6969345481092970.651532725945351
860.3565015850898140.7130031701796280.643498414910186
870.360858324983070.721716649966140.63914167501693
880.3409725313623850.681945062724770.659027468637615
890.4534179293166260.9068358586332510.546582070683374
900.4108396668220080.8216793336440150.589160333177992
910.3720068400753240.7440136801506480.627993159924676
920.3387138150286980.6774276300573960.661286184971302
930.3099932324630820.6199864649261640.690006767536918
940.3620919562500470.7241839125000950.637908043749953
950.429239445132040.858478890264080.57076055486796
960.3854802040646340.7709604081292680.614519795935366
970.3406583282622930.6813166565245860.659341671737707
980.3093142233454790.6186284466909580.690685776654521
990.2698817404130030.5397634808260070.730118259586997
1000.2319250276446540.4638500552893090.768074972355346
1010.2015910453467070.4031820906934130.798408954653293
1020.1789586522711750.3579173045423490.821041347728826
1030.1584828584358820.3169657168717640.841517141564118
1040.1395854635282940.2791709270565890.860414536471706
1050.1710414631222520.3420829262445040.828958536877748
1060.2189119120645280.4378238241290570.781088087935472
1070.1850107782741160.3700215565482310.814989221725884
1080.1652879305815540.3305758611631080.834712069418446
1090.1461075434962780.2922150869925570.853892456503722
1100.1417777807872930.2835555615745850.858222219212707
1110.1161124332984320.2322248665968640.883887566701568
1120.1559579014883220.3119158029766440.844042098511678
1130.2861308476465060.5722616952930130.713869152353494
1140.2481020173694150.496204034738830.751897982630585
1150.5938535764757260.8122928470485470.406146423524274
1160.5908319889881020.8183360220237950.409168011011898
1170.5998346649489130.8003306701021750.400165335051087
1180.5505937044396690.8988125911206620.449406295560331
1190.496421688302350.99284337660470.50357831169765
1200.5820279396947490.8359441206105030.417972060305251
1210.5502916341729070.8994167316541850.449708365827093
1220.5479662365741790.9040675268516430.452033763425821
1230.5080606877440510.9838786245118990.491939312255949
1240.527685599454170.944628801091660.47231440054583
1250.4684680192970940.9369360385941880.531531980702906
1260.4532201835361150.906440367072230.546779816463885
1270.4292285027841170.8584570055682340.570771497215883
1280.4113703831729730.8227407663459470.588629616827027
1290.3853226493884360.7706452987768720.614677350611564
1300.3430511486385620.6861022972771250.656948851361438
1310.3405170970413280.6810341940826570.659482902958672
1320.2863806516975150.5727613033950290.713619348302485
1330.2396191964275240.4792383928550470.760380803572476
1340.2046022108430680.4092044216861350.795397789156932
1350.1646175896505230.3292351793010460.835382410349477
1360.1520300537941040.3040601075882070.847969946205896
1370.1631001964496020.3262003928992050.836899803550398
1380.1473517569402280.2947035138804560.852648243059772
1390.1820739004252550.3641478008505110.817926099574745
1400.2318952790347190.4637905580694390.76810472096528
1410.1769922806012130.3539845612024260.823007719398787
1420.1407748956207760.2815497912415520.859225104379224
1430.2129721689071780.4259443378143560.787027831092822
1440.1617095290220660.3234190580441310.838290470977934
1450.1163985678807630.2327971357615260.883601432119237
1460.08503171245338070.1700634249067610.91496828754662
1470.05139799291057280.1027959858211460.948602007089427
1480.02797050120828390.05594100241656780.972029498791716
1490.01595898723351660.03191797446703320.984041012766483
1500.008440950934377350.01688190186875470.991559049065623


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


http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/1s3uf1293491331.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/1s3uf1293491331.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/2s3uf1293491331.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/2s3uf1293491331.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/3s3uf1293491331.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/3s3uf1293491331.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/42uc01293491331.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/42uc01293491331.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/52uc01293491331.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/52uc01293491331.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/62uc01293491331.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/62uc01293491331.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/7v3b31293491331.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/7v3b31293491331.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/8ovso1293491331.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/8ovso1293491331.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/9ovso1293491331.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t12934913271vg79phyhb77w3s/9ovso1293491331.ps (open in new window)


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