Home » date » 2010 » Dec » 13 »

computation 3

*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, 13 Dec 2010 09:55:39 +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/13/t1292234033uu7twe2d9n939zg.htm/, Retrieved Mon, 13 Dec 2010 10:54:04 +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/13/t1292234033uu7twe2d9n939zg.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 «
0 1 23 14 11 12 24 26 1 1 25 11 7 8 25 23 1 0 17 6 17 8 30 25 0 1 18 12 10 8 19 23 1 0 16 10 12 7 22 29 1 1 20 10 11 4 25 25 1 1 16 11 11 11 23 21 1 1 18 16 12 7 17 22 1 1 17 11 13 7 21 25 0 1 23 13 14 12 19 24 1 1 30 12 16 10 19 18 1 1 18 12 10 8 16 15 0 1 15 11 11 8 23 22 0 1 12 4 15 4 27 28 1 1 21 9 9 9 22 20 0 1 20 8 17 7 22 24 1 1 27 15 11 9 23 21 0 1 34 16 18 11 21 20 1 1 21 9 14 13 19 21 0 1 31 14 10 8 18 23 0 1 19 11 11 8 20 28 1 1 16 8 15 9 23 24 1 1 20 9 15 6 25 24 0 1 21 9 13 9 19 24 0 1 22 9 16 9 24 23 1 1 17 9 13 6 22 23 0 1 24 10 9 6 25 29 1 1 25 16 18 16 26 24 1 1 26 11 18 5 29 18 1 1 25 8 12 7 32 25 1 1 17 9 17 9 25 21 0 1 32 16 9 6 29 26 0 1 33 11 9 6 28 22 0 0 32 12 18 12 28 22 0 1 25 12 12 7 29 23 0 1 29 14 18 10 26 30 1 1 22 9 14 9 25 23 0 1 18 10 15 8 14 17 1 1 17 9 16 5 25 23 0 1 20 10 10 8 26 23 0 1 15 12 11 8 20 25 1 1 20 14 14 10 18 24 0 1 33 14 9 6 32 24 1 1 23 14 17 7 25 21 0 1 26 16 5 4 23 24 0 1 18 9 12 8 21 24 1 1 20 10 12 8 20 28 1 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'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
PE[t] = + 7.0858875722877 + 0.183435133232890Gender[t] -0.545038050049476Browser[t] + 0.0988881894907669CM[t] -0.161490160234604D[t] + 0.679434014809388PC[t] + 0.103503327554848PS[t] -0.0975307307421319O[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7.08588757228772.6437412.68030.0084670.004234
Gender0.1834351332328900.5416190.33870.7354850.367743
Browser-0.5450380500494760.933643-0.58380.5605450.280272
CM0.09888818949076690.0571421.73060.0862820.043141
D-0.1614901602346040.10606-1.52260.1306710.065335
PC0.6794340148093880.0996786.816300
PS0.1035033275548480.0725661.42630.1565530.078276
O-0.09753073074213190.079612-1.22510.2231180.111559


Multiple Linear Regression - Regression Statistics
Multiple R0.66076995366636
R-squared0.436616931668244
Adjusted R-squared0.401405489897509
F-TEST (value)12.399859526091
F-TEST (DF numerator)7
F-TEST (DF denominator)112
p-value1.12768683280251e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.73031089254118
Sum Squared Residuals834.914927832051


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11114.6559046769749-3.65590467697488
2713.1999461304369-6.19994613043689
31714.08378464202322.91621535797677
41011.5417835452050-1.54178354520495
51211.44135225337740.558647746622649
6119.954197822495851.04580217750415
71114.3363092758227-3.33630927582272
81210.29034809832251.70965190167753
91311.12033182799771.87966817200229
101414.4949396609196-0.494939660919589
111614.75839863565651.24160136434353
121012.1949545417103-2.19495454171034
131111.9181531779288-0.918153177928768
14159.863012597627745.13698740237226
15913.7888899173143-4.78888991731427
161711.91906580223795.08093419776209
171113.4192506896640-2.41925068966396
181815.01593482788302.98406517211695
191416.0985852631451-2.09858526314514
201012.4008463605609-2.40084636056085
211111.4180115687745-0.4180115687745
221513.16931953468141.83068046531864
231511.57208674309143.42791325690865
241312.90482187844830.095178121551692
251613.61875743645542.38124256354455
261311.06244292269661.93755707730336
27911.1350605538763-2.13506055387627
281817.83394004455170.166059955448315
291812.16219923942955.83780076057046
301213.5344444277310-1.53444442773098
311713.60631641127363.39368358872639
32911.6638306108406-2.66383061084057
33912.8567891969180-3.85678919691803
341817.21805298609850.781947013901536
351212.5896001323794-0.589600132379398
361813.70724951644204.29275048355805
371413.90569589724320.0943041027568168
381511.93243161235273.0675683876473
391610.69351889055185.3064811094482
401012.7870635375396-2.78706353753962
411111.1535608428032-0.153560842803225
421412.75784870827201.24215129172805
43912.5912705649493-3.59127056494935
441712.03332671742644.96667328257358
4559.28567494043237-4.28567494043237
461212.1357299502763-0.135729950276316
471211.86182505173280.13817494826724
4869.55290805914807-3.55290805914807
492422.76096305409341.23903694590660
501212.2871662874508-0.287166287450808
511212.7781521267855-0.778152126785512
521411.34503533555022.65496466444982
5378.86102547914969-1.86102547914969
541212.9292550275173-0.929255027517349
551411.71957388723232.28042611276773
56812.4797133068118-4.47971330681183
57119.035356305319851.96464369468015
58911.3120665608731-2.31206656087307
591113.6862699014457-2.68626990144573
60108.93637018845041.06362981154960
611113.0554817715483-2.05548177154827
621212.8816612577715-0.881661257771504
63911.8361499889327-2.83614998893272
641814.780833636783.21916636321999
651512.06788514929382.93211485070618
661212.8412047354000-0.841204735399983
67139.377439441288563.62256055871144
681412.91429651364191.08570348635807
691011.4695006604623-1.46950066046231
701312.23527340003250.764726599967456
711313.4864443774018-0.486444377401791
721112.7395988425588-1.73959884255884
731311.93597884441941.06402115558063
741614.45131296256351.54868703743649
751110.93355408509300.066445914907022
761617.7162620133827-1.71626201338274
771411.70537135481002.29462864518996
78810.6081455237930-2.60814552379302
7999.80522667696963-0.805226676969631
801511.50455076890943.49544923109062
811113.3008939771595-2.30089397715946
822117.10443258751123.89556741248882
831412.87274857608131.12725142391869
841815.77130277843322.22869722156683
851211.53726633451950.462733665480453
861312.73037135228380.269628647716215
871210.88876320977111.11123679022885
881914.55255201049174.44744798950828
891112.5904311449104-1.5904311449104
901314.9421321716421-1.94213217164207
911514.63832917298100.361670827019040
921211.06991064230730.930089357692687
931615.87676321522450.123236784775516
941818.0494645258542-0.0494645258542125
95814.8775012544052-6.8775012544052
96910.7391437368534-1.73914373685338
971512.80343381790292.1965661820971
98610.6240885873558-4.62408858735575
9989.47425497652523-1.47425497652523
1001010.1147959936383-0.114795993638284
1011112.3094096632018-1.30940966320181
1021412.64204747659971.35795252340027
1031113.4150230317298-2.41502303172979
1041211.89646425897980.103535741020171
1051110.01048490998280.989515090017181
10699.35216355360232-0.352163553602315
1071211.85091845148190.149081548518095
1082014.35232095414135.64767904585869
1091313.5869666557782-0.586966655778232
1101216.4472071788148-4.44720717881483
111914.5601205335658-5.56012053356579
1122421.62368182738332.37631817261671
1131111.5386559819757-0.538655981975724
1141715.18581252562861.81418747437139
1151112.7726684206994-1.77266842069936
1161114.2319338970278-3.23193389702784
1171612.48812583943923.51187416056081
1181310.94699440151642.05300559848364
1191112.6276710266755-1.62767102667551
1201917.88586215647121.11413784352882


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.8724737588523060.2550524822953880.127526241147694
120.8649001830065990.2701996339868020.135099816993401
130.7853418449949430.4293163100101150.214658155005057
140.7495926146404640.5008147707190730.250407385359536
150.8088945630323680.3822108739352640.191105436967632
160.8149967789760380.3700064420479250.185003221023963
170.7617843857637860.4764312284724290.238215614236214
180.7724540082841350.4550919834317290.227545991715865
190.7243765894269730.5512468211460540.275623410573027
200.841020729865160.3179585402696790.158979270134840
210.7959863471644650.408027305671070.204013652835535
220.7958105562732660.4083788874534690.204189443726734
230.8028982620191250.394203475961750.197101737980875
240.7520271895741070.4959456208517860.247972810425893
250.7163249506719890.5673500986560220.283675049328011
260.665904008447920.668191983104160.33409599155208
270.705126085573990.5897478288520180.294873914426009
280.7630378846405660.4739242307188670.236962115359434
290.8342834683884720.3314330632230550.165716531611528
300.8318337789429170.3363324421141660.168166221057083
310.8415565103541180.3168869792917640.158443489645882
320.8424176052650950.3151647894698090.157582394734905
330.8832270000645180.2335459998709640.116772999935482
340.850969497153750.2980610056925000.149030502846250
350.8156902063489130.3686195873021730.184309793651087
360.8988765786572520.2022468426854970.101123421342748
370.8693239418666380.2613521162667250.130676058133362
380.8629301617001630.2741396765996740.137069838299837
390.9188754418200780.1622491163598450.0811245581799224
400.9248495893405550.1503008213188900.0751504106594452
410.9025738567487670.1948522865024650.0974261432512327
420.8827585962614510.2344828074770970.117241403738549
430.8915008151488510.2169983697022970.108499184851149
440.941046454672890.1179070906542210.0589535453271104
450.9635431091479940.07291378170401180.0364568908520059
460.951143910729350.09771217854129930.0488560892706496
470.9356752885629080.1286494228741830.0643247114370916
480.9575566633397350.08488667332053040.0424433366602652
490.9467816751745960.1064366496508080.0532183248254042
500.929742650627160.1405146987456800.0702573493728398
510.9115214819027860.1769570361944270.0884785180972135
520.9092495452309340.1815009095381330.0907504547690663
530.899963670078980.2000726598420410.100036329921021
540.8769563709231490.2460872581537020.123043629076851
550.8693095218246260.2613809563507480.130690478175374
560.9097303816079870.1805392367840260.0902696183920128
570.8998095862773220.2003808274453560.100190413722678
580.8935292181265560.2129415637468880.106470781873444
590.907111869365970.1857762612680600.0928881306340301
600.8901817015118620.2196365969762760.109818298488138
610.882230821967690.2355383560646210.117769178032310
620.8602854415329840.2794291169340320.139714558467016
630.86050591532170.2789881693566000.139494084678300
640.8755658792229390.2488682415541230.124434120777061
650.877652599310320.2446948013793580.122347400689679
660.8499312228103050.3001375543793890.150068777189695
670.8930668233582640.2138663532834710.106933176641736
680.8753734877642670.2492530244714650.124626512235733
690.8505432289790880.2989135420418240.149456771020912
700.8164879151101080.3670241697797840.183512084889892
710.7778958633984670.4442082732030670.222104136601533
720.7486238245059620.5027523509880760.251376175494038
730.7067211295280380.5865577409439240.293278870471962
740.6843420932080510.6313158135838970.315657906791949
750.6380568457105680.7238863085788640.361943154289432
760.6047470154980050.7905059690039910.395252984501995
770.5797457929598480.8405084140803050.420254207040152
780.554451761999030.891096476001940.44554823800097
790.50056864745750.9988627050850.4994313525425
800.5192042075014530.9615915849970940.480795792498547
810.512778833672370.974442332655260.48722116632763
820.5815935491699720.8368129016600560.418406450830028
830.5304326423270940.9391347153458120.469567357672906
840.499382075859760.998764151719520.50061792414024
850.4382854790326220.8765709580652430.561714520967378
860.3766980686305040.7533961372610080.623301931369496
870.3234799856426560.6469599712853110.676520014357344
880.4511669045346210.9023338090692430.548833095465379
890.4469423032432590.8938846064865170.553057696756741
900.407728234218680.815456468437360.59227176578132
910.3465650280287120.6931300560574240.653434971971288
920.3152081192539000.6304162385077990.6847918807461
930.2696049910039690.5392099820079380.730395008996031
940.2296746675507030.4593493351014070.770325332449296
950.3904836193911260.7809672387822530.609516380608873
960.3355504206908550.6711008413817090.664449579309145
970.2809600648110110.5619201296220210.719039935188989
980.3752020825700630.7504041651401250.624797917429937
990.3490053156842990.6980106313685980.650994684315701
1000.2804051205132140.5608102410264270.719594879486786
1010.2435005181330610.4870010362661220.756499481866939
1020.1808838176124210.3617676352248430.819116182387579
1030.163384996383520.326769992767040.83661500361648
1040.1101284935449830.2202569870899660.889871506455017
1050.07057871469969120.1411574293993820.929421285300309
1060.04128576872760570.08257153745521140.958714231272394
1070.02464682396797580.04929364793595170.975353176032024
1080.06842255533648140.1368451106729630.931577444663519
1090.04156174130495070.08312348260990140.95843825869505


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


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/173ib1292234129.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/173ib1292234129.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/2hczw1292234129.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/2hczw1292234129.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/3hczw1292234129.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/3hczw1292234129.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/4hczw1292234129.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/4hczw1292234129.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/5hczw1292234129.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/5hczw1292234129.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/6s3gz1292234129.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/6s3gz1292234129.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/7ldyk1292234129.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/7ldyk1292234129.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/8ldyk1292234129.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292234033uu7twe2d9n939zg/8ldyk1292234129.ps (open in new window)


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