Home » date » 2010 » Nov » 28 »

paper 1

*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: Sun, 28 Nov 2010 12:26:54 +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/Nov/28/t12909472523hifhnltz1dm4d5.htm/, Retrieved Sun, 28 Nov 2010 13:27:32 +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/Nov/28/t12909472523hifhnltz1dm4d5.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 «
1.579 9.769 2.146 9.321 2.462 9.939 3.695 9.336 4.831 10.195 5.134 9.464 6.250 10.010 5.760 10.213 6.249 9.563 2.917 9.890 1.741 9.305 2.359 9.391 1.511 9.928 2.059 8.686 2.635 9.843 2.867 9.627 4.403 10.074 5.720 9.503 4.502 10.119 5.749 10.000 5.627 9.313 2.846 9.866 1.762 9.172 2.429 9.241 1.169 9.659 2.154 8.904 2.249 9.755 2.687 9.080 4.359 9.435 5.382 8.971 4.459 10.063 6.398 9.793 4.596 9.454 3.024 9.759 1.887 8.820 2.070 9.403 1.351 9.676 2.218 8.642 2.461 9.402 3.028 9.610 4.784 9.294 4.975 9.448 4.607 10.319 6.249 9.548 4.809 9.801 3.157 9.596 1.910 8.923 2.228 9.746 1.594 9.829 2.467 9.125 2.222 9.782 3.607 9.441 4.685 9.162 4.962 9.915 5.770 10.444 5.480 10.209 5.000 9.985 3.228 9.842 1.993 9.429 2.288 10.132 1.580 9.849 2.111 9.172 2.192 10.313 3.601 9.819 4.665 9.955 4.876 10.048 5.813 10.082 5.589 10.541 5.331 10.208 3.075 10.233 2.002 9.439 2.306 9.963 1.507 10.158 1.992 9.225 2.487 10.474 3.490 9.757 4.647 10.490 5.5 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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
geboortes[t] = + 9.37499683097009 + 0.122482864440576huwelijk[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9.374996830970090.12063377.715100
huwelijk0.1224828644405760.0306064.00190.0001256.3e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.381537512253697
R-squared0.14557087325674
Adjusted R-squared0.136481201695641
F-TEST (value)16.0149761493855
F-TEST (DF numerator)1
F-TEST (DF denominator)94
p-value0.000125324935773441
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.476581915316111
Sum Squared Residuals21.3502502685990


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
19.7699.568397273921730.200602726078266
29.3219.63784505805956-0.316845058059564
39.9399.676549643222790.262450356777214
49.3369.82757101507802-0.491571015078015
510.1959.96671154908250.228288450917491
69.46410.003823857008-0.539823857008004
710.0110.1405147337237-0.130514733723687
810.21310.08049813014780.132501869852195
99.56310.1403922508592-0.577392250859245
109.899.732279346543250.157720653456753
119.3059.58823949796113-0.283239497961131
129.3919.6639339081854-0.272933908185407
139.9289.56006843913980.367931560860202
148.6869.62718904885323-0.941189048853234
159.8439.6977391787710.145260821228995
169.6279.72615520332122-0.0991552033212184
1710.0749.914288883101940.159711116898057
189.50310.0755988155702-0.572598815570181
1910.1199.926414686681560.192585313318440
201010.0791508186390-0.0791508186389581
219.31310.0642079091772-0.751207909177207
229.8669.723583063167970.142416936832033
239.1729.59081163811438-0.418811638114382
249.2419.67250770869625-0.431507708696247
259.6599.518179299501120.140820700498879
268.9049.63882492097509-0.734824920975089
279.7559.650460793096940.104539206903058
289.089.70410828772192-0.624108287721915
299.4359.90889963706656-0.473899637066557
308.97110.0341996073893-1.06319960738927
3110.0639.921147923510620.141852076489385
329.79310.1586421976609-0.365642197660893
339.4549.93792807593897-0.483928075938974
349.7599.745385013038390.0136149869616109
358.829.60612199616945-0.786121996169454
369.4039.62853636036208-0.225536360362080
379.6769.54047118082930.135528819170694
388.6429.64666382429929-1.00466382429929
399.4029.67642716035835-0.274427160358346
409.619.74587494449615-0.135874944496152
419.2949.9609548544538-0.666954854453802
429.4489.98434908156195-0.536349081561952
4310.3199.939275387447820.37972461255218
449.54810.1403922508592-0.592392250859246
459.8019.96401692606482-0.163016926064817
469.5969.76167523400899-0.165675234008986
478.9239.60893910205159-0.685939102051588
489.7469.64788865294370.0981113470563093
499.8299.570234516888370.258765483111634
509.1259.67716205754499-0.552162057544989
519.7829.647153755757050.134846244242952
529.4419.81679252300724-0.375792523007244
539.1629.94882905087418-0.786829050874185
549.9159.98275680432423-0.067756804324226
5510.44410.08172295879220.362277041207791
5610.20910.04620292810440.162797071895556
579.9859.98741115317297-0.00241115317296757
589.8429.770371517384270.0716284826157337
599.4299.61910517980016-0.190105179800156
6010.1329.655237624810130.476762375189874
619.8499.56851975678620.280480243213802
629.1729.63355815780414-0.461558157804143
6310.3139.643479269823830.66952073017617
649.8199.81605762582060.00294237417939925
659.9559.946379393585370.00862060641462593
6610.0489.972223277982340.0757767220176644
6710.08210.0869897219632-0.0049897219631542
6810.54110.05955356032850.481446439671534
6910.20810.02795298130280.180047018697203
7010.2339.751631639124860.481368360875142
719.4399.62020752558012-0.181207525580121
729.9639.657442316370060.305557683629943
7310.1589.559578507682040.598421492317963
749.2259.61898269693572-0.393982696935716
7510.4749.67961171483380.7943882851662
769.7579.8024620278677-0.0454620278676980
7710.499.944174702025440.545825297974556
7810.28110.06016597465070.220834025349332
7910.44410.06224818334620.381751816653842
8010.6410.08392765035210.55607234964786
8110.69510.13488052195940.56011947804058
8210.7869.744037701529541.04196229847046
839.8329.611511242204840.220488757795161
849.7479.687205652429120.059794347570884
8510.4119.559211059088710.851788940911285
869.5119.6309860176509-0.119986017650892
8710.4029.705945530688520.696054469311475
889.7019.73497396956094-0.03397396956094
8910.549.926169720952680.61383027904732
9010.11210.1353704534172-0.0233704534171824
9110.91510.16072440635640.754275593643618
9211.18310.06788239511041.11511760488957
9310.38410.10548463449370.278515365506318
9410.8349.762410131195631.07158986880437
959.8869.619595111257920.266404888742081
9610.2169.671650328645160.544349671354836


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.4518981365112760.9037962730225520.548101863488724
60.3850846406857390.7701692813714780.614915359314261
70.2687013383337550.537402676667510.731298661666245
80.2149034196070080.4298068392140150.785096580392992
90.1962729262028520.3925458524057050.803727073797148
100.1366442722218470.2732885444436950.863355727778153
110.1091445202367760.2182890404735510.890855479763224
120.0760104712418740.1520209424837480.923989528758126
130.07062697313589160.1412539462717830.929373026864108
140.2504224211694350.5008448423388690.749577578830565
150.2036228309292540.4072456618585080.796377169070746
160.1464969422037680.2929938844075350.853503057796232
170.1219995619395010.2439991238790010.8780004380605
180.1147360833887840.2294721667775670.885263916611216
190.1007904189315150.2015808378630310.899209581068485
200.0715579274386720.1431158548773440.928442072561328
210.09544891717123590.1908978343424720.904551082828764
220.0736471610870010.1472943221740020.926352838912999
230.06775411718893860.1355082343778770.932245882811061
240.05961077624038640.1192215524807730.940389223759614
250.04402225432686460.08804450865372930.955977745673135
260.06998219491639570.1399643898327910.930017805083604
270.05360957703227210.1072191540645440.946390422967728
280.06253354025866930.1250670805173390.93746645974133
290.05451405092207510.1090281018441500.945485949077925
300.1382215084532000.2764430169064000.8617784915468
310.1258153845595260.2516307691190520.874184615440474
320.1054625090529640.2109250181059290.894537490947036
330.09703076055514550.1940615211102910.902969239444855
340.07595577967315060.1519115593463010.92404422032685
350.1231030328096670.2462060656193350.876896967190333
360.09847951544750770.1969590308950150.901520484552492
370.08026816830508620.1605363366101720.919731831694914
380.2018201130423050.403640226084610.798179886957695
390.1746410521173280.3492821042346550.825358947882673
400.1447385028057610.2894770056115220.855261497194239
410.1780442776478270.3560885552956540.821955722352173
420.1911281354509940.3822562709019880.808871864549006
430.2189231889418620.4378463778837250.781076811058138
440.2587223080238320.5174446160476640.741277691976168
450.2341692818799030.4683385637598050.765830718120097
460.2053904648522970.4107809297045940.794609535147703
470.2892255233806830.5784510467613650.710774476619317
480.2564847180295810.5129694360591620.743515281970419
490.2372017407136790.4744034814273580.762798259286321
500.2923735061942080.5847470123884160.707626493805792
510.2605159020108270.5210318040216550.739484097989173
520.2762174111618730.5524348223237460.723782588838127
530.4869147405278610.9738294810557230.513085259472139
540.474815317165550.94963063433110.52518468283445
550.4964899173212560.9929798346425130.503510082678744
560.4788726410414190.9577452820828370.521127358958581
570.4599228521274910.9198457042549820.540077147872509
580.4261735206832160.8523470413664310.573826479316785
590.4206430901732910.8412861803465820.579356909826709
600.4301628145448860.8603256290897730.569837185455114
610.3945927854705450.789185570941090.605407214529455
620.5009818699625990.9980362600748010.499018130037401
630.556422635132910.887154729734180.44357736486709
640.5330295724214970.9339408551570060.466970427578503
650.5174450710230890.9651098579538230.482554928976911
660.4969804408769220.9939608817538450.503019559123078
670.5031869664535920.9936260670928160.496813033546408
680.4969936675362680.9939873350725370.503006332463732
690.4726677632394230.9453355264788460.527332236760577
700.4510386848967320.9020773697934630.548961315103268
710.4726803584516160.9453607169032330.527319641548384
720.4252362116805090.8504724233610180.574763788319491
730.4189403838745650.837880767749130.581059616125435
740.5685802891448070.8628394217103870.431419710855193
750.6102956970306270.7794086059387450.389704302969373
760.6300157536860220.7399684926279550.369984246313978
770.5949449404110180.8101101191779640.405055059588982
780.5624225558179740.8751548883640520.437577444182026
790.5132121442005350.973575711598930.486787855799465
800.4645561464237880.9291122928475760.535443853576212
810.4109896071001490.8219792142002970.589010392899851
820.5346460761007860.9307078477984280.465353923899214
830.4606366262735910.9212732525471810.539363373726409
840.4316708842933130.8633417685866260.568329115706687
850.4567979046398960.9135958092797920.543202095360104
860.4979983564453960.9959967128907930.502001643554604
870.429830639464230.859661278928460.57016936053577
880.4827624837234260.9655249674468520.517237516276574
890.3720015801361710.7440031602723420.627998419863829
900.5143931896694830.9712136206610340.485606810330517
910.3671566462500980.7343132925001960.632843353749902


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level10.0114942528735632OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/10y32n1290947204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/10y32n1290947204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/1rknb1290947204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/1rknb1290947204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/2rknb1290947204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/2rknb1290947204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/3ktme1290947204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/3ktme1290947204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/4ktme1290947204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/4ktme1290947204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/5ktme1290947204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/5ktme1290947204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/6vk4z1290947204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/6vk4z1290947204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/75c3k1290947204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/75c3k1290947204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/85c3k1290947204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/85c3k1290947204.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/95c3k1290947204.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t12909472523hifhnltz1dm4d5/95c3k1290947204.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