Home » date » 2009 » Nov » 19 »

workshop 7 berekening 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: Thu, 19 Nov 2009 08:24:52 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s.htm/, Retrieved Thu, 19 Nov 2009 16:27:10 +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/2009/Nov/19/t1258644418gc5wjt2luqynn3s.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
4716.99 0 4926.65 0 4920.10 0 5170.09 0 5246.24 0 5283.61 0 4979.05 0 4825.20 0 4695.12 0 4711.54 0 4727.22 0 4384.96 0 4378.75 0 4472.93 0 4564.07 0 4310.54 0 4171.38 0 4049.38 0 3591.37 0 3720.46 0 4107.23 0 4101.71 0 4162.34 0 4136.22 0 4125.88 0 4031.48 0 3761.36 0 3408.56 0 3228.47 0 3090.45 0 2741.14 0 2980.44 0 3104.33 0 3181.57 0 2863.86 0 2898.01 0 3112.33 0 3254.33 0 3513.47 0 3587.61 0 3727.45 0 3793.34 0 3817.58 0 3845.13 0 3931.86 0 4197.52 0 4307.13 0 4229.43 0 4362.28 0 4217.34 0 4361.28 0 4327.74 0 4417.65 0 4557.68 0 4650.35 0 4967.18 0 5123.42 0 5290.85 0 5535.66 0 5514.06 0 5493.88 0 5694.83 0 5850.41 0 6116.64 0 6175.00 0 6513.58 0 6383.78 0 6673.66 0 6936.61 0 7300.68 0 7392.93 0 7497.31 0 7584.71 0 7160.79 0 7196.19 0 7245.63 0 7347.51 0 7425.75 0 7778.51 0 7822.33 0 8181.22 0 8371.47 0 8347.71 0 8672.11 0 8802.79 0 9138.46 0 9123.29 0 9023.21 1 8850.41 1 8864.58 1 9163.74 1 8516.66 1 8553.44 1 7 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 5156.77183908046 + 1866.29530377668X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)5156.77183908046182.02874528.329400
X1866.29530377668412.8023934.5211.6e-058e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.402065013518833
R-squared0.161656275095899
Adjusted R-squared0.153747372030766
F-TEST (value)20.4397846028196
F-TEST (DF numerator)1
F-TEST (DF denominator)106
p-value1.60881629114318e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1697.85110548636
Sum Squared Residuals305566027.898534


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14716.995156.77183908045-439.781839080449
24926.655156.77183908046-230.121839080459
34920.15156.77183908046-236.671839080460
45170.095156.7718390804613.3181609195402
55246.245156.7718390804689.4681609195398
65283.615156.77183908046126.838160919540
74979.055156.77183908046-177.72183908046
84825.25156.77183908046-331.57183908046
94695.125156.77183908046-461.65183908046
104711.545156.77183908046-445.23183908046
114727.225156.77183908046-429.551839080460
124384.965156.77183908046-771.81183908046
134378.755156.77183908046-778.02183908046
144472.935156.77183908046-683.84183908046
154564.075156.77183908046-592.70183908046
164310.545156.77183908046-846.23183908046
174171.385156.77183908046-985.39183908046
184049.385156.77183908046-1107.39183908046
193591.375156.77183908046-1565.40183908046
203720.465156.77183908046-1436.31183908046
214107.235156.77183908046-1049.54183908046
224101.715156.77183908046-1055.06183908046
234162.345156.77183908046-994.43183908046
244136.225156.77183908046-1020.55183908046
254125.885156.77183908046-1030.89183908046
264031.485156.77183908046-1125.29183908046
273761.365156.77183908046-1395.41183908046
283408.565156.77183908046-1748.21183908046
293228.475156.77183908046-1928.30183908046
303090.455156.77183908046-2066.32183908046
312741.145156.77183908046-2415.63183908046
322980.445156.77183908046-2176.33183908046
333104.335156.77183908046-2052.44183908046
343181.575156.77183908046-1975.20183908046
352863.865156.77183908046-2292.91183908046
362898.015156.77183908046-2258.76183908046
373112.335156.77183908046-2044.44183908046
383254.335156.77183908046-1902.44183908046
393513.475156.77183908046-1643.30183908046
403587.615156.77183908046-1569.16183908046
413727.455156.77183908046-1429.32183908046
423793.345156.77183908046-1363.43183908046
433817.585156.77183908046-1339.19183908046
443845.135156.77183908046-1311.64183908046
453931.865156.77183908046-1224.91183908046
464197.525156.77183908046-959.25183908046
474307.135156.77183908046-849.64183908046
484229.435156.77183908046-927.34183908046
494362.285156.77183908046-794.49183908046
504217.345156.77183908046-939.43183908046
514361.285156.77183908046-795.49183908046
524327.745156.77183908046-829.03183908046
534417.655156.77183908046-739.12183908046
544557.685156.77183908046-599.09183908046
554650.355156.77183908046-506.42183908046
564967.185156.77183908046-189.591839080460
575123.425156.77183908046-33.3518390804599
585290.855156.77183908046134.078160919540
595535.665156.77183908046378.88816091954
605514.065156.77183908046357.288160919540
615493.885156.77183908046337.10816091954
625694.835156.77183908046538.05816091954
635850.415156.77183908046693.63816091954
646116.645156.77183908046959.86816091954
6561755156.771839080461018.22816091954
666513.585156.771839080461356.80816091954
676383.785156.771839080461227.00816091954
686673.665156.771839080461516.88816091954
696936.615156.771839080461779.83816091954
707300.685156.771839080462143.90816091954
717392.935156.771839080462236.15816091954
727497.315156.771839080462340.53816091954
737584.715156.771839080462427.93816091954
747160.795156.771839080462004.01816091954
757196.195156.771839080462039.41816091954
767245.635156.771839080462088.85816091954
777347.515156.771839080462190.73816091954
787425.755156.771839080462268.97816091954
797778.515156.771839080462621.73816091954
807822.335156.771839080462665.55816091954
818181.225156.771839080463024.44816091954
828371.475156.771839080463214.69816091954
838347.715156.771839080463190.93816091954
848672.115156.771839080463515.33816091954
858802.795156.771839080463646.01816091954
869138.465156.771839080463981.68816091954
879123.295156.771839080463966.51816091954
889023.217023.067142857142000.14285714286
898850.417023.067142857141827.34285714286
908864.587023.067142857141841.51285714286
919163.747023.067142857142140.67285714286
928516.667023.067142857141493.59285714286
938553.447023.067142857141530.37285714286
947555.27023.06714285714532.132857142857
957851.227023.06714285714828.152857142857
9674427023.06714285714418.932857142857
977992.537023.06714285714969.462857142857
988264.047023.067142857141240.97285714286
997517.397023.06714285714494.322857142857
1007200.47023.06714285714177.332857142857
1017193.697023.06714285714170.622857142857
1026193.587023.06714285714-829.487142857143
1035104.217023.06714285714-1918.85714285714
1044800.467023.06714285714-2222.60714285714
1054461.617023.06714285714-2561.45714285714
1064398.597023.06714285714-2624.47714285714
1074243.637023.06714285714-2779.43714285714
1084293.827023.06714285714-2729.24714285714


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.003865875398638120.007731750797276230.996134124601362
60.000833192642823470.001666385285646940.999166807357177
70.0001042053944688020.0002084107889376050.999895794605531
81.76408811240380e-053.52817622480760e-050.999982359118876
94.83299699929965e-069.6659939985993e-060.999995167003001
101.03730720163209e-062.07461440326419e-060.999998962692798
111.9017653217698e-073.8035306435396e-070.999999809823468
122.00468676949373e-074.00937353898745e-070.999999799531323
131.22150316652121e-072.44300633304242e-070.999999877849683
143.8681971028116e-087.7363942056232e-080.99999996131803
158.5218669285961e-091.70437338571922e-080.999999991478133
164.41973977526035e-098.8394795505207e-090.99999999558026
173.53411828546817e-097.06823657093634e-090.999999996465882
183.69187023893153e-097.38374047786306e-090.99999999630813
192.35486569933385e-084.70973139866771e-080.999999976451343
203.51800137012001e-087.03600274024001e-080.999999964819986
211.44502534467465e-082.8900506893493e-080.999999985549747
225.7655327651551e-091.15310655303102e-080.999999994234467
232.00116463288809e-094.00232926577618e-090.999999997998835
247.05926352202411e-101.41185270440482e-090.999999999294074
252.46950405100206e-104.93900810200411e-100.99999999975305
261.00413978200115e-102.00827956400231e-100.999999999899586
277.73114166708188e-111.54622833341638e-100.999999999922689
281.7140715224743e-103.4281430449486e-100.999999999828593
295.327347041672e-101.0654694083344e-090.999999999467265
301.85492649864778e-093.70985299729557e-090.999999998145074
311.40870654481176e-082.81741308962351e-080.999999985912934
323.35277371633315e-086.70554743266631e-080.999999966472263
335.15867452475614e-081.03173490495123e-070.999999948413255
346.39256096138433e-081.27851219227687e-070.99999993607439
351.45627018457859e-072.91254036915719e-070.999999854372982
362.84062364311938e-075.68124728623876e-070.999999715937636
373.65361132474051e-077.30722264948103e-070.999999634638868
383.85621805641011e-077.71243611282022e-070.999999614378194
393.06762615661152e-076.13525231322305e-070.999999693237384
402.35309129812231e-074.70618259624462e-070.99999976469087
411.66512336136506e-073.33024672273013e-070.999999833487664
421.1690093419261e-072.3380186838522e-070.999999883099066
438.43651206713238e-081.68730241342648e-070.99999991563488
446.28265197535801e-081.25653039507160e-070.99999993717348
454.68115822839482e-089.36231645678964e-080.999999953188418
463.32534873483773e-086.65069746967545e-080.999999966746513
472.44525035962369e-084.89050071924739e-080.999999975547496
481.90830671003401e-083.81661342006802e-080.999999980916933
491.55759856972772e-083.11519713945544e-080.999999984424014
501.39210980960704e-082.78421961921409e-080.999999986078902
511.30911604925300e-082.61823209850601e-080.99999998690884
521.35130485479267e-082.70260970958534e-080.999999986486951
531.51758859736619e-083.03517719473238e-080.999999984824114
541.87734261297878e-083.75468522595755e-080.999999981226574
552.59113568543129e-085.18227137086258e-080.999999974088643
564.38888268330831e-088.77776536661662e-080.999999956111173
578.63113297212975e-081.72622659442595e-070.99999991368867
581.97184110097417e-073.94368220194834e-070.99999980281589
595.53526236840371e-071.10705247368074e-060.999999446473763
601.42112839320398e-062.84225678640796e-060.999998578871607
613.4747544798025e-066.949508959605e-060.99999652524552
629.44636004492853e-061.88927200898571e-050.999990553639955
632.67072750991714e-055.34145501983428e-050.9999732927249
648.23418052466462e-050.0001646836104932920.999917658194753
650.0002270436635612890.0004540873271225780.999772956336439
660.0006727166916356650.001345433383271330.999327283308364
670.001534612818464010.003069225636928020.998465387181536
680.003526145150320680.007052290300641360.99647385484968
690.007803057930738970.01560611586147790.99219694206926
700.01713642626517280.03427285253034570.982863573734827
710.03185807676102960.06371615352205920.96814192323897
720.05230359363313410.1046071872662680.947696406366866
730.07742082246178410.1548416449235680.922579177538216
740.09560970892052350.1912194178410470.904390291079477
750.1143199333882100.2286398667764200.88568006661179
760.1334747192186960.2669494384373920.866525280781304
770.1533915879347110.3067831758694210.84660841206529
780.1736325813586040.3472651627172080.826367418641396
790.1969626517034670.3939253034069340.803037348296533
800.218143194079730.436286388159460.78185680592027
810.2423722223346770.4847444446693540.757627777665323
820.2654279680781790.5308559361563580.734572031921821
830.2815937642563940.5631875285127890.718406235743606
840.2994291262142820.5988582524285630.700570873785718
850.3131757819838260.6263515639676520.686824218016174
860.3291194863596280.6582389727192550.670880513640372
870.3348593332525340.6697186665050680.665140666747466
880.3408177066386820.6816354132773650.659182293361318
890.343658747102040.687317494204080.65634125289796
900.3582291122062680.7164582244125360.641770887793732
910.4211014847401380.8422029694802760.578898515259862
920.4393922612156780.8787845224313560.560607738784322
930.4809239028894510.9618478057789010.519076097110549
940.446285499643590.892570999287180.55371450035641
950.4422065055143920.8844130110287840.557793494485608
960.4131911763834950.826382352766990.586808823616505
970.4601276063764810.9202552127529620.539872393623519
980.6134264522134270.7731470955731460.386573547786573
990.7000716296746540.5998567406506920.299928370325346
1000.7909802111696570.4180395776606850.209019788830343
1010.9497352113818680.1005295772362650.0502647886181324
1020.9942385346889440.0115229306221130.0057614653110565
1030.9947121068241880.01057578635162450.00528789317581225


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level640.646464646464647NOK
5% type I error level680.686868686868687NOK
10% type I error level690.696969696969697NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/10qbbw1258644287.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/10qbbw1258644287.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/1aqa71258644287.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/1aqa71258644287.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/2x3101258644287.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/2x3101258644287.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/34qm01258644287.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/34qm01258644287.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/46n3c1258644287.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/46n3c1258644287.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/5t6vq1258644287.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/5t6vq1258644287.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/63h5c1258644287.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/63h5c1258644287.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/7vj7b1258644287.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/7vj7b1258644287.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/89k661258644287.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/89k661258644287.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/9w2si1258644287.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644418gc5wjt2luqynn3s/9w2si1258644287.ps (open in new window)


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