Home » date » 2010 » Dec » 25 »

*The author of this computation has been verified*
R Software Module: /rwasp_regression_trees1.wasp (opens new window with default values)
Title produced by software: Recursive Partitioning (Regression Trees)
Date of computation: Sat, 25 Dec 2010 12:54:19 +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/25/t1293281526qjka1bh5y4cjl1z.htm/, Retrieved Sat, 25 Dec 2010 13:52:07 +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/25/t1293281526qjka1bh5y4cjl1z.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.903 2.544 2.217 3.567 1.061 0.903 2.502 2.176 3.536 1.041 0.903 2.480 2.146 3.538 1.021 0.903 2.632 2.297 3.638 1.000 0.903 2.643 2.332 3.635 0.929 0.903 2.658 2.352 3.646 1.000 0.903 2.583 2.230 3.552 1.000 0.903 2.531 2.204 3.557 0.903 0.903 2.658 2.352 3.489 1.000 0.602 2.053 1.978 3.375 1.176 0.778 2.299 1.987 3.443 1.190 0.602 1.987 1.663 3.264 1.312 0.602 2.041 1.940 3.427 1.243 0.602 2.017 1.978 3.376 1.243 0.602 2.083 2.053 3.349 1.097 0.903 2.556 2.332 3.664 1.146 0.903 2.487 2.301 3.641 1.176 0.903 2.483 2.286 3.675 1.267 0.602 1.987 1.944 3.328 1.161 0.602 2.053 1.978 3.348 1.146 0.778 2.398 2.000 3.522 1.190 0.778 2.365 2.000 3.517 1.190 0.903 2.544 2.217 3.624 1.079 0.903 2.502 2.176 3.612 1.114 0.903 2.602 2.230 3.676 1.079 0.903 2.602 2.243 3.711 1.079 0.602 2.146 1.857 3.382 1.279 0.778 2.398 2.000 3.516 1.176 0.602 2.086 1.934 3.346 1.146 0.602 2. 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 time16 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk
R Framework
error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Goodness of Fit
Correlation0.9642
R-squared0.9298
RMSE0.0396


Actuals, Predictions, and Residuals
#ActualsForecastsResiduals
12.2172.202380952380950.0146190476190475
22.1762.167045454545450.00895454545454566
32.1462.130476190476190.0155238095238093
42.2972.3318125-0.0348124999999997
52.3322.33181250.000187500000000007
62.3522.33181250.0201875
72.232.24576666666667-0.0157666666666665
82.2042.202380952380950.00161904761904763
92.3522.33181250.0201875
101.9781.955468085106380.0225319148936169
111.9871.98732786885246-0.000327868852458835
121.6631.74041176470588-0.0774117647058823
131.941.95146341463415-0.0114634146341464
141.9781.917596491228070.0604035087719299
152.0531.955468085106380.097531914893617
162.3322.245766666666670.0862333333333334
172.3012.2640.0369999999999999
182.2862.2640.0219999999999998
191.9441.881851851851850.062148148148148
201.9781.955468085106380.0225319148936169
2122.01523076923077-0.0152307692307692
2221.987327868852460.0126721311475411
232.2172.202380952380950.0146190476190475
242.1762.167045454545450.00895454545454566
252.232.24576666666667-0.0157666666666665
262.2432.24576666666667-0.00276666666666658
271.8571.91759649122807-0.0605964912280701
2821.987327868852460.0126721311475411
291.9341.95546808510638-0.0214680851063831
301.9541.881851851851850.072148148148148
311.8811.88185185185185-0.000851851851851881
321.8131.802612903225810.0103870967741935
331.7781.80261290322581-0.0246129032258064
341.8451.740411764705880.104588235294118
351.9031.881851851851850.0211481481481481
361.9341.917596491228070.0164035087719299
372.2172.2315-0.0145
382.1762.14960.0264000000000002
392.1852.20238095238095-0.0173809523809525
402.3182.3318125-0.0138124999999998
412.192.177833333333330.0121666666666664
422.2792.245766666666670.0332333333333334
431.9871.955468085106380.0315319148936171
442.1142.1496-0.0356000000000001
452.1462.130476190476190.0155238095238093
462.0491.987327868852460.061672131147541
471.8811.91759649122807-0.0365964912280701
481.9341.917596491228070.0164035087719299
491.9871.955468085106380.0315319148936171
501.9031.881851851851850.0211481481481481
512.2432.202380952380950.0406190476190473
522.1762.167045454545450.00895454545454566
532.1372.130476190476190.00652380952380938
542.1762.167045454545450.00895454545454566
552.1762.24576666666667-0.0697666666666663
562.1992.2315-0.0325000000000002
572.3322.33181250.000187500000000007
582.3522.33181250.0201875
592.0211.987327868852460.033672131147541
6021.951463414634150.0485365853658537
611.9441.98732786885246-0.043327868852459
621.9781.98732786885246-0.00932786885245895
632.1762.24576666666667-0.0697666666666663
642.2552.23150.0234999999999999
6521.987327868852460.0126721311475411
661.8571.832222222222220.0247777777777778
671.9731.917596491228070.05540350877193
681.9291.917596491228070.01140350877193
692.0291.955468085106380.0735319148936169
702.1612.20238095238095-0.0413809523809525
712.3622.245766666666670.116233333333334
721.8751.88185185185185-0.00685185185185189
731.9591.955468085106380.00353191489361704
742.1762.167045454545450.00895454545454566
752.0412.025923076923080.015076923076923
762.2552.202380952380950.0526190476190473
771.9781.98732786885246-0.00932786885245895
7821.987327868852460.0126721311475411
791.9031.91759649122807-0.0145964912280701
801.8131.740411764705880.0725882352941176
8122.01523076923077-0.0152307692307692
822.0412.04642857142857-0.00542857142857134
832.1462.130476190476190.0155238095238093
842.1762.17783333333333-0.00183333333333335
852.1462.130476190476190.0155238095238093
862.1762.1260.0500000000000003
871.8261.823040.00296000000000007
881.8921.95546808510638-0.0634680851063831
891.7851.80261290322581-0.0176129032258066
901.8751.88185185185185-0.00685185185185189
911.8751.95546808510638-0.080468085106383
921.9871.955468085106380.0315319148936171
931.8261.823040.00296000000000007
941.9781.98732786885246-0.00932786885245895
951.8571.91294736842105-0.0559473684210525
962.232.24576666666667-0.0157666666666665
972.1612.17783333333333-0.0168333333333335
982.172.17783333333333-0.00783333333333358
992.0411.912947368421050.128052631578947
1002.0412.04642857142857-0.00542857142857134
1011.9782.02022222222222-0.0422222222222224
1022.0412.09833333333333-0.0573333333333332
1032.1112.13047619047619-0.0194761904761904
1041.9191.917596491228070.00140350877192996
10521.987327868852460.0126721311475411
1061.9822.02592307692308-0.043923076923077
1071.8511.91759649122807-0.0665964912280701
1081.9871.98732786885246-0.000327868852458835
1091.9781.98732786885246-0.00932786885245895
1101.9441.95146341463415-0.00746341463414635
1112.0612.025923076923080.035076923076923
1121.7241.80261290322581-0.0786129032258065
1131.9081.91759649122807-0.00959649122807016
1141.9641.955468085106380.00853191489361693
1151.9191.881851851851850.0371481481481482
1162.1462.16704545454545-0.0210454545454546
1172.0792.1496-0.0705999999999998
1182.1822.20238095238095-0.0203809523809526
1192.0212.015230769230770.00576923076923075
1201.9081.95146341463415-0.0434634146341464
1211.7161.74041176470588-0.0244117647058824
1221.7781.740411764705880.0375882352941177
12322.02022222222222-0.0202222222222224
1242.0412.015230769230770.0257692307692308
1251.9781.951463414634150.0265365853658537
1261.8451.823040.02196
1271.8751.88185185185185-0.00685185185185189
1282.0091.987327868852460.021672131147541
1292.1762.14960.0264000000000002
1302.0792.020222222222220.0587777777777778
1312.2552.23150.0234999999999999
1322.1142.13047619047619-0.0164761904761908
1332.1762.14960.0264000000000002
1341.9031.881851851851850.0211481481481481
1351.7631.80261290322581-0.0396129032258066
1361.8451.823040.02196
1372.1612.16704545454545-0.00604545454545447
1382.1612.14960.0114000000000001
1392.0212.020222222222220.000777777777777544
14022.02022222222222-0.0202222222222224
1412.2552.245766666666670.00923333333333343
1422.232.202380952380950.0276190476190474
1432.1732.17783333333333-0.00483333333333347
1441.8921.8490.0429999999999999
1451.8751.91759649122807-0.0425964912280701
1461.9491.98732786885246-0.0383278688524589
1471.9191.881851851851850.0371481481481482
1481.8261.823040.00296000000000007
1491.9871.98732786885246-0.000327868852458835
1502.0412.013555555555560.0274444444444444
1511.6811.74041176470588-0.0594117647058823
1521.821.7721250.0478750000000001
1531.8451.802612903225810.0423870967741935
1542.1462.1496-0.00360000000000005
1552.1432.130476190476190.0125238095238092
1561.9781.951463414634150.0265365853658537
1571.9291.98732786885246-0.0583278688524589
15822.02022222222222-0.0202222222222224
1591.9541.951463414634150.00253658536585366
1601.9291.95146341463415-0.0224634146341463
1612.0412.020222222222220.0207777777777776
1622.1612.14960.0114000000000001
1632.2172.098333333333330.118666666666667
1642.1462.1496-0.00360000000000005
1651.8331.88185185185185-0.0488518518518519
1661.9871.955468085106380.0315319148936171
1671.8751.95546808510638-0.080468085106383
1681.9291.95146341463415-0.0224634146341463
1692.0131.987327868852460.025672131147541
1702.0972.09833333333333-0.00133333333333319
1712.1242.020222222222220.103777777777778
1721.8511.8490.002
1731.8331.88185185185185-0.0488518518518519
1741.9291.95146341463415-0.0224634146341463
1751.9441.95146341463415-0.00746341463414635
1762.0412.020222222222220.0207777777777776
1772.1142.126-0.012
1782.142.1496-0.00959999999999983
1792.132.1260.004
1802.1522.14960.00240000000000018
1812.0972.13047619047619-0.0334761904761907
1821.8511.8490.002
1831.8131.82304-0.01004
1841.9031.98732786885246-0.0843278688524589
1851.8511.91294736842105-0.0619473684210525
1861.9541.912947368421050.0410526315789475
1871.8451.88185185185185-0.0368518518518519
1881.8131.802612903225810.0103870967741935
1891.9541.98732786885246-0.033327868852459
1902.0612.013555555555560.0474444444444444
1911.9541.95546808510638-0.00146808510638308
1921.8811.88185185185185-0.000851851851851881
1931.8451.88185185185185-0.0368518518518519
1941.8131.82304-0.01004
1951.9441.95146341463415-0.00746341463414635
1961.9541.912947368421050.0410526315789475
1971.8921.881851851851850.010148148148148
1981.9541.98732786885246-0.033327868852459
1991.9641.955468085106380.00853191489361693
2001.8751.91759649122807-0.0425964912280701
2012.0211.987327868852460.033672131147541
2021.8131.802612903225810.0103870967741935
2031.8261.83222222222222-0.00622222222222213
2041.8261.849-0.0229999999999999
2051.7921.82304-0.03104
2061.9441.95546808510638-0.0114680851063831
2071.9241.917596491228070.00640350877192986
2081.9241.917596491228070.00640350877192986
2092.0412.025923076923080.015076923076923
2101.9241.95546808510638-0.0314680851063831
2111.8061.82304-0.0170399999999999
2121.7781.7721250.00587500000000007
2131.8131.802612903225810.0103870967741935
2141.7921.80261290322581-0.0106129032258064
2151.7991.88185185185185-0.082851851851852
2161.8131.82304-0.01004
2171.8691.88185185185185-0.0128518518518519
21822.01355555555556-0.0135555555555555
2191.9031.91294736842105-0.00994736842105248
2202.0792.09833333333333-0.019333333333333
2212.0412.020222222222220.0207777777777776
2221.9441.95146341463415-0.00746341463414635
2231.9292.02022222222222-0.0912222222222223
2241.9441.917596491228070.0264035087719299
2251.9441.917596491228070.0264035087719299
2261.9241.917596491228070.00640350877192986
2271.9541.951463414634150.00253658536585366
2281.8691.823040.04596
2291.8331.802612903225810.0303870967741935
2301.7991.88185185185185-0.082851851851852
2311.9441.881851851851850.062148148148148
2321.8751.88185185185185-0.00685185185185189
2331.8261.823040.00296000000000007
2342.0411.987327868852460.053672131147541
2351.9291.95146341463415-0.0224634146341463
2361.9822.02592307692308-0.043923076923077
2371.9541.951463414634150.00253658536585366
2381.9341.98732786885246-0.053327868852459
2391.9241.95546808510638-0.0314680851063831
2401.8981.91759649122807-0.0195964912280702
2411.8391.802612903225810.0363870967741935
2421.7161.772125-0.056125
2431.7631.772125-0.00912500000000005
2441.7781.7721250.00587500000000007
2451.8131.802612903225810.0103870967741935
2461.7241.80261290322581-0.0786129032258065
2471.7241.772125-0.048125
2481.821.7721250.0478750000000001
2491.7781.7721250.00587500000000007
2501.8511.8490.002
2511.7631.80261290322581-0.0396129032258066
2521.7781.80261290322581-0.0246129032258064
2531.6631.74041176470588-0.0774117647058823
2541.8131.740411764705880.0725882352941176
2551.7921.849-0.057
2561.8261.849-0.0229999999999999
2571.691.74041176470588-0.0504117647058824
2581.8061.82304-0.0170399999999999
2591.9031.8490.054
2601.8511.8490.002
2611.8451.849-0.004
2621.8451.849-0.004
2631.8921.8490.0429999999999999
2641.8451.823040.02196
2651.6631.74041176470588-0.0774117647058823
2661.8261.802612903225810.0233870967741936
2671.8451.740411764705880.104588235294118
2681.8261.823040.00296000000000007
2691.8261.849-0.0229999999999999
2701.8261.823040.00296000000000007
2711.7781.80261290322581-0.0246129032258064
2721.8331.802612903225810.0303870967741935
2731.8131.849-0.036
2741.8131.802612903225810.0103870967741935
2751.8691.8490.02
2761.6811.74041176470588-0.0594117647058823
2771.8261.823040.00296000000000007
2781.7161.80261290322581-0.0866129032258065
2791.8331.823040.00995999999999997
2801.8511.8490.002
2811.8451.823040.02196
2821.8261.823040.00296000000000007
2831.8261.823040.00296000000000007
2841.7851.80261290322581-0.0176129032258066
2851.8131.82304-0.01004
2861.8131.802612903225810.0103870967741935
2871.8331.802612903225810.0303870967741935
2881.7161.74041176470588-0.0244117647058824
2891.8131.82304-0.01004
2901.8331.802612903225810.0303870967741935
2911.7921.82304-0.03104
2921.7991.82304-0.0240400000000001
2931.8811.88185185185185-0.000851851851851881
2941.8261.802612903225810.0233870967741936
2951.8451.802612903225810.0423870967741935
2961.8451.740411764705880.104588235294118
2971.9191.881851851851850.0371481481481482
2981.6811.74041176470588-0.0594117647058823
2991.9441.881851851851850.062148148148148
3001.8751.88185185185185-0.00685185185185189
3011.8131.802612903225810.0103870967741935
3021.8131.802612903225810.0103870967741935
3031.8451.88185185185185-0.0368518518518519
3041.9541.881851851851850.072148148148148
3051.9541.881851851851850.072148148148148
3061.8751.88185185185185-0.00685185185185189
3071.7991.88185185185185-0.082851851851852
3081.8451.88185185185185-0.0368518518518519
3091.9031.881851851851850.0211481481481481
3101.8391.88185185185185-0.0428518518518519
3111.7161.74041176470588-0.0244117647058824
3121.9441.881851851851850.062148148148148
3131.9441.881851851851850.062148148148148
3141.8331.88185185185185-0.0488518518518519
3151.8811.88185185185185-0.000851851851851881
3161.8261.802612903225810.0233870967741936
3171.8451.88185185185185-0.0368518518518519
3181.9031.881851851851850.0211481481481481
3191.8331.88185185185185-0.0488518518518519
3201.8751.88185185185185-0.00685185185185189
3211.8751.88185185185185-0.00685185185185189
3221.9441.881851851851850.062148148148148
3231.9031.881851851851850.0211481481481481
3241.7781.740411764705880.0375882352941177
3251.8751.88185185185185-0.00685185185185189
3261.8921.881851851851850.010148148148148
3271.8391.802612903225810.0363870967741935
3281.8921.881851851851850.010148148148148
3291.8691.88185185185185-0.0128518518518519
3301.8451.88185185185185-0.0368518518518519
3311.9191.881851851851850.0371481481481482
3321.8751.88185185185185-0.00685185185185189
3331.8751.88185185185185-0.00685185185185189
3341.7991.88185185185185-0.082851851851852
3351.9191.917596491228070.00140350877192996
3361.9341.95546808510638-0.0214680851063831
3371.9081.91759649122807-0.00959649122807016
3381.8511.91759649122807-0.0665964912280701
3391.9341.917596491228070.0164035087719299
3401.9781.955468085106380.0225319148936169
3411.8751.95546808510638-0.080468085106383
3422.0531.955468085106380.097531914893617
3431.8451.91759649122807-0.0725964912280701
3441.8751.95546808510638-0.080468085106383
3451.7321.83222222222222-0.100222222222222
3461.8981.91759649122807-0.0195964912280702
3471.9541.917596491228070.0364035087719299
3481.9541.917596491228070.0364035087719299
3491.8751.91759649122807-0.0425964912280701
3501.8751.95546808510638-0.080468085106383
3511.9781.917596491228070.0604035087719299
3521.9441.917596491228070.0264035087719299
3531.9641.917596491228070.0464035087719299
3541.8571.91759649122807-0.0605964912280701
3551.9241.95546808510638-0.0314680851063831
3561.9821.917596491228070.0644035087719299
3571.8921.95546808510638-0.0634680851063831
3581.9871.955468085106380.0315319148936171
3591.9291.917596491228070.01140350877193
3601.9871.955468085106380.0315319148936171
3611.6811.83222222222222-0.151222222222222
3621.8751.91759649122807-0.0425964912280701
3631.9241.95546808510638-0.0314680851063831
3641.9781.955468085106380.0225319148936169
3651.9781.917596491228070.0604035087719299
3661.9731.917596491228070.05540350877193
3671.8131.83222222222222-0.0192222222222223
3681.9241.95546808510638-0.0314680851063831
3691.9681.917596491228070.0504035087719299
3701.9341.917596491228070.0164035087719299
3711.9441.917596491228070.0264035087719299
3721.8571.832222222222220.0247777777777778
3731.9871.955468085106380.0315319148936171
3741.8571.91759649122807-0.0605964912280701
3751.9541.832222222222220.121777777777778
37621.955468085106380.044531914893617
3771.9541.95546808510638-0.00146808510638308
3781.9641.955468085106380.00853191489361693
3791.9031.91759649122807-0.0145964912280701
3801.9341.917596491228070.0164035087719299
3812.0291.955468085106380.0735319148936169
3821.9871.955468085106380.0315319148936171
3831.9241.917596491228070.00640350877192986
3841.9441.95546808510638-0.0114680851063831
3851.9871.955468085106380.0315319148936171
3861.8811.91759649122807-0.0365964912280701
3871.9781.955468085106380.0225319148936169
3881.9241.917596491228070.00640350877192986
3891.8751.91759649122807-0.0425964912280701
3901.8751.91759649122807-0.0425964912280701
3911.9871.917596491228070.06940350877193
3921.9541.95546808510638-0.00146808510638308
3931.9781.955468085106380.0225319148936169
3941.8571.95546808510638-0.098468085106383
3951.9641.955468085106380.00853191489361693
3961.9291.917596491228070.01140350877193
3971.9591.955468085106380.00353191489361704
3981.9641.955468085106380.00853191489361693
3991.9291.917596491228070.01140350877193
4001.8921.91759649122807-0.0255964912280702
4012.0612.013555555555560.0474444444444444
4022.0412.013555555555560.0274444444444444
4031.9441.832222222222220.111777777777778
40422.01355555555556-0.0135555555555555
4051.9642.01355555555556-0.0495555555555556
4061.8981.91759649122807-0.0195964912280702
40722.01355555555556-0.0135555555555555
4081.9241.917596491228070.00640350877192986
4091.8691.91759649122807-0.0485964912280701
4101.9191.917596491228070.00140350877192996
4111.9441.917596491228070.0264035087719299
4121.9542.01355555555556-0.0595555555555556
4132.0412.025923076923080.015076923076923
4141.9822.02592307692308-0.043923076923077
4151.9031.98732786885246-0.0843278688524589
4161.9541.98732786885246-0.033327868852459
4172.0612.025923076923080.035076923076923
4181.941.95146341463415-0.0114634146341464
4191.9541.951463414634150.00253658536585366
4201.9781.98732786885246-0.00932786885245895
4212.0612.025923076923080.035076923076923
4221.9822.02592307692308-0.043923076923077
4231.9541.98732786885246-0.033327868852459
4241.9441.98732786885246-0.043327868852459
4251.9141.95146341463415-0.0374634146341464
4262.0412.025923076923080.015076923076923
4272.0412.025923076923080.015076923076923
4281.9541.951463414634150.00253658536585366
4291.9441.98732786885246-0.043327868852459
4302.0211.951463414634150.0695365853658536
4311.9491.98732786885246-0.0383278688524589
4321.9871.98732786885246-0.000327868852458835
43321.987327868852460.0126721311475411
4341.9341.98732786885246-0.053327868852459
4352.0611.987327868852460.073672131147541
4362.0212.02592307692308-0.00492307692307703
4372.0862.09833333333333-0.0123333333333333
4381.9871.98732786885246-0.000327868852458835
4392.0131.987327868852460.025672131147541
4401.9781.98732786885246-0.00932786885245895
4412.0491.987327868852460.061672131147541
4421.9291.95146341463415-0.0224634146341463
4431.9641.98732786885246-0.023327868852459
4442.0491.987327868852460.061672131147541
4451.9441.95146341463415-0.00746341463414635
4461.9441.95146341463415-0.00746341463414635
4472.0642.09833333333333-0.0343333333333331
44821.987327868852460.0126721311475411
4491.9781.98732786885246-0.00932786885245895
4502.1212.098333333333330.0226666666666668
45121.987327868852460.0126721311475411
4522.0331.987327868852460.045672131147541
4532.0792.09833333333333-0.019333333333333
4542.0491.987327868852460.061672131147541
45521.987327868852460.0126721311475411
4562.0411.987327868852460.053672131147541
4571.9911.987327868852460.00367213114754117
4581.9541.951463414634150.00253658536585366
4591.8261.83222222222222-0.00622222222222213
4601.9441.95146341463415-0.00746341463414635
4612.0412.09833333333333-0.0573333333333332
4621.9291.98732786885246-0.0583278688524589
4631.941.912947368421050.0270526315789474
4641.9871.98732786885246-0.000327868852458835
4651.9291.95146341463415-0.0224634146341463
4661.9541.912947368421050.0410526315789475
4671.9081.95146341463415-0.0434634146341464
4681.9291.95146341463415-0.0224634146341463
4691.9441.95146341463415-0.00746341463414635
4702.0411.987327868852460.053672131147541
4711.9441.95146341463415-0.00746341463414635
4721.9291.95146341463415-0.0224634146341463
4731.9541.951463414634150.00253658536585366
4742.3522.33181250.0201875
4751.9781.951463414634150.0265365853658537
4762.0211.951463414634150.0695365853658536
4771.9441.98732786885246-0.043327868852459
4782.0972.09833333333333-0.00133333333333319
4792.0091.987327868852460.021672131147541
4801.9781.951463414634150.0265365853658537
4811.8571.91294736842105-0.0559473684210525
4821.8811.91294736842105-0.0319473684210525
4832.1112.13047619047619-0.0194761904761904
4841.8511.91294736842105-0.0619473684210525
4851.9781.951463414634150.0265365853658537
4862.1432.130476190476190.0125238095238092
4871.9541.951463414634150.00253658536585366
4881.9541.951463414634150.00253658536585366
4892.0412.09833333333333-0.0573333333333332
4901.9031.91294736842105-0.00994736842105248
49121.987327868852460.0126721311475411
4922.0611.987327868852460.073672131147541
4931.8261.91294736842105-0.0869473684210524
4941.9781.98732786885246-0.00932786885245895
4951.9541.951463414634150.00253658536585366
4961.9441.912947368421050.0310526315789474
49721.951463414634150.0485365853658537
49821.987327868852460.0126721311475411
49921.987327868852460.0126721311475411
5001.9441.98732786885246-0.043327868852459
50122.01523076923077-0.0152307692307692
50222.01523076923077-0.0152307692307692
5032.0212.015230769230770.00576923076923075
5042.0412.020222222222220.0207777777777776
5052.0412.04642857142857-0.00542857142857134
5062.0212.020222222222220.000777777777777544
5071.9542.02022222222222-0.0662222222222224
5082.1762.167045454545450.00895454545454566
5092.0792.046428571428570.0325714285714289
5102.1242.020222222222220.103777777777778
5112.0412.020222222222220.0207777777777776
5121.9541.912947368421050.0410526315789475
5132.0212.020222222222220.000777777777777544
5142.1612.16704545454545-0.00604545454545447
51522.02022222222222-0.0202222222222224
5161.8571.91294736842105-0.0559473684210525
5172.1762.167045454545450.00895454545454566
5182.1762.167045454545450.00895454545454566
5192.0212.020222222222220.000777777777777544
5202.2172.098333333333330.118666666666667
5212.1462.130476190476190.0155238095238093
5222.0212.015230769230770.00576923076923075
5231.9292.02022222222222-0.0912222222222223
5242.1142.16704545454545-0.0530454545454546
5252.0412.015230769230770.0257692307692308
5261.9912.01523076923077-0.0242307692307691
5271.8861.91294736842105-0.0269473684210526
5282.0212.020222222222220.000777777777777544
5292.232.24576666666667-0.0157666666666665
5302.1432.130476190476190.0125238095238092
5311.8921.91294736842105-0.0209473684210526
5322.0972.13047619047619-0.0334761904761907
5332.2042.202380952380950.00161904761904763
5342.0212.020222222222220.000777777777777544
5352.0412.020222222222220.0207777777777776
53622.02022222222222-0.0202222222222224
5372.0412.04642857142857-0.00542857142857134
5382.0412.015230769230770.0257692307692308
53922.02022222222222-0.0202222222222224
5402.2552.202380952380950.0526190476190473
5412.1762.167045454545450.00895454545454566
5422.1762.167045454545450.00895454545454566
5432.2172.202380952380950.0146190476190475
5442.1112.13047619047619-0.0194761904761904
5452.0212.126-0.105
5462.0412.04642857142857-0.00542857142857134
5472.1462.16704545454545-0.0210454545454546
5482.1762.14960.0264000000000002
5492.1762.24576666666667-0.0697666666666663
5502.1762.167045454545450.00895454545454566
55122.01523076923077-0.0152307692307692
5521.9782.02022222222222-0.0422222222222224
5532.0792.020222222222220.0587777777777778
5542.2432.24576666666667-0.00276666666666658
5552.132.1260.004
5562.1142.126-0.012
5572.2792.245766666666670.0332333333333334
5582.1142.13047619047619-0.0164761904761908
5592.1612.16704545454545-0.00604545454545447
5602.1762.167045454545450.00895454545454566
5612.0212.015230769230770.00576923076923075
5622.0972.126-0.0289999999999999
5632.0411.912947368421050.128052631578947
5642.1762.167045454545450.00895454545454566
5652.1762.24576666666667-0.0697666666666663
5662.142.20238095238095-0.0623809523809524
5672.0792.1496-0.0705999999999998
5682.1612.20238095238095-0.0413809523809525
5692.1372.130476190476190.00652380952380938
5702.1522.14960.00240000000000018
5712.1612.20238095238095-0.0413809523809525
5722.0412.04642857142857-0.00542857142857134
5732.1762.14960.0264000000000002
5742.1462.1496-0.00360000000000005
5752.1612.20238095238095-0.0413809523809525
5762.1762.167045454545450.00895454545454566
5772.1142.1496-0.0356000000000001
5782.2432.202380952380950.0406190476190473
5792.1852.20238095238095-0.0173809523809525
5802.1762.14960.0264000000000002
5812.1612.14960.0114000000000001
5822.1462.130476190476190.0155238095238093
5832.1852.14960.0354000000000001
5842.232.202380952380950.0276190476190474
5852.1762.167045454545450.00895454545454566
5862.2172.202380952380950.0146190476190475
5872.1462.16704545454545-0.0210454545454546
5882.1822.20238095238095-0.0203809523809526
5892.2552.245766666666670.00923333333333343
5902.1762.1260.0500000000000003
5912.1762.1260.0500000000000003
5922.2172.2315-0.0145
5932.3622.245766666666670.116233333333334
5942.1462.130476190476190.0155238095238093
5952.1142.13047619047619-0.0164761904761908
5962.3322.33181250.000187500000000007
5972.2792.245766666666670.0332333333333334
5982.1732.17783333333333-0.00483333333333347
5992.2972.3318125-0.0348124999999997
6002.3422.33181250.0101875000000002
6012.192.177833333333330.0121666666666664
6022.1992.2315-0.0325000000000002
6032.3012.2640.0369999999999999
6042.2552.23150.0234999999999999
6052.3222.2640.0579999999999998
6062.2432.24576666666667-0.00276666666666658
6072.2792.245766666666670.0332333333333334
6082.3522.33181250.0201875
6092.1612.17783333333333-0.0168333333333335
6102.2042.177833333333330.0261666666666667
6112.1762.264-0.088
6122.2432.24576666666667-0.00276666666666658
6132.1762.24576666666667-0.0697666666666663
6142.1762.264-0.088
6152.2552.23150.0234999999999999
6162.192.177833333333330.0121666666666664
6172.3322.245766666666670.0862333333333334
6182.3182.3318125-0.0138124999999998
6192.1462.130476190476190.0155238095238093
6202.232.24576666666667-0.0157666666666665
6212.172.17783333333333-0.00783333333333358
6222.232.24576666666667-0.0157666666666665
6232.1762.17783333333333-0.00183333333333335
6242.2862.2640.0219999999999998
6252.3322.33181250.000187500000000007
6262.232.24576666666667-0.0157666666666665
6272.2232.24576666666667-0.0227666666666666
6282.3522.33181250.0201875
6292.2972.3318125-0.0348124999999997
6302.2552.245766666666670.00923333333333343
6312.1762.24576666666667-0.0697666666666663
6322.2432.24576666666667-0.00276666666666658
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/25/t1293281526qjka1bh5y4cjl1z/2fhnr1293281640.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/25/t1293281526qjka1bh5y4cjl1z/2fhnr1293281640.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/25/t1293281526qjka1bh5y4cjl1z/3fhnr1293281640.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/25/t1293281526qjka1bh5y4cjl1z/3fhnr1293281640.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/25/t1293281526qjka1bh5y4cjl1z/4884c1293281640.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/25/t1293281526qjka1bh5y4cjl1z/4884c1293281640.ps (open in new window)


 
Parameters (Session):
par1 = 3 ; par2 = none ; par4 = no ;
 
Parameters (R input):
par1 = 3 ; par2 = none ; par4 = no ;
 
R code (references can be found in the software module):
library(party)
library(Hmisc)
par1 <- as.numeric(par1)
par3 <- as.numeric(par3)
x <- data.frame(t(y))
is.data.frame(x)
x <- x[!is.na(x[,par1]),]
k <- length(x[1,])
n <- length(x[,1])
colnames(x)[par1]
x[,par1]
if (par2 == 'kmeans') {
cl <- kmeans(x[,par1], par3)
print(cl)
clm <- matrix(cbind(cl$centers,1:par3),ncol=2)
clm <- clm[sort.list(clm[,1]),]
for (i in 1:par3) {
cl$cluster[cl$cluster==clm[i,2]] <- paste('C',i,sep='')
}
cl$cluster <- as.factor(cl$cluster)
print(cl$cluster)
x[,par1] <- cl$cluster
}
if (par2 == 'quantiles') {
x[,par1] <- cut2(x[,par1],g=par3)
}
if (par2 == 'hclust') {
hc <- hclust(dist(x[,par1])^2, 'cen')
print(hc)
memb <- cutree(hc, k = par3)
dum <- c(mean(x[memb==1,par1]))
for (i in 2:par3) {
dum <- c(dum, mean(x[memb==i,par1]))
}
hcm <- matrix(cbind(dum,1:par3),ncol=2)
hcm <- hcm[sort.list(hcm[,1]),]
for (i in 1:par3) {
memb[memb==hcm[i,2]] <- paste('C',i,sep='')
}
memb <- as.factor(memb)
print(memb)
x[,par1] <- memb
}
if (par2=='equal') {
ed <- cut(as.numeric(x[,par1]),par3,labels=paste('C',1:par3,sep=''))
x[,par1] <- as.factor(ed)
}
table(x[,par1])
colnames(x)
colnames(x)[par1]
x[,par1]
if (par2 == 'none') {
m <- ctree(as.formula(paste(colnames(x)[par1],' ~ .',sep='')),data = x)
}
load(file='createtable')
if (par2 != 'none') {
m <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data = x)
if (par4=='yes') {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'10-Fold Cross Validation',3+2*par3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',1,TRUE)
a<-table.element(a,'Prediction (training)',par3+1,TRUE)
a<-table.element(a,'Prediction (testing)',par3+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Actual',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE)
a<-table.element(a,'CV',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,paste('C',jjj,sep=''),1,TRUE)
a<-table.element(a,'CV',1,TRUE)
a<-table.row.end(a)
for (i in 1:10) {
ind <- sample(2, nrow(x), replace=T, prob=c(0.9,0.1))
m.ct <- ctree(as.formula(paste('as.factor(',colnames(x)[par1],') ~ .',sep='')),data =x[ind==1,])
if (i==1) {
m.ct.i.pred <- predict(m.ct, newdata=x[ind==1,])
m.ct.i.actu <- x[ind==1,par1]
m.ct.x.pred <- predict(m.ct, newdata=x[ind==2,])
m.ct.x.actu <- x[ind==2,par1]
} else {
m.ct.i.pred <- c(m.ct.i.pred,predict(m.ct, newdata=x[ind==1,]))
m.ct.i.actu <- c(m.ct.i.actu,x[ind==1,par1])
m.ct.x.pred <- c(m.ct.x.pred,predict(m.ct, newdata=x[ind==2,]))
m.ct.x.actu <- c(m.ct.x.actu,x[ind==2,par1])
}
}
print(m.ct.i.tab <- table(m.ct.i.actu,m.ct.i.pred))
numer <- 0
for (i in 1:par3) {
print(m.ct.i.tab[i,i] / sum(m.ct.i.tab[i,]))
numer <- numer + m.ct.i.tab[i,i]
}
print(m.ct.i.cp <- numer / sum(m.ct.i.tab))
print(m.ct.x.tab <- table(m.ct.x.actu,m.ct.x.pred))
numer <- 0
for (i in 1:par3) {
print(m.ct.x.tab[i,i] / sum(m.ct.x.tab[i,]))
numer <- numer + m.ct.x.tab[i,i]
}
print(m.ct.x.cp <- numer / sum(m.ct.x.tab))
for (i in 1:par3) {
a<-table.row.start(a)
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
for (jjj in 1:par3) a<-table.element(a,m.ct.i.tab[i,jjj])
a<-table.element(a,round(m.ct.i.tab[i,i]/sum(m.ct.i.tab[i,]),4))
for (jjj in 1:par3) a<-table.element(a,m.ct.x.tab[i,jjj])
a<-table.element(a,round(m.ct.x.tab[i,i]/sum(m.ct.x.tab[i,]),4))
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a,'Overall',1,TRUE)
for (jjj in 1:par3) a<-table.element(a,'-')
a<-table.element(a,round(m.ct.i.cp,4))
for (jjj in 1:par3) a<-table.element(a,'-')
a<-table.element(a,round(m.ct.x.cp,4))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
}
}
m
bitmap(file='test1.png')
plot(m)
dev.off()
bitmap(file='test1a.png')
plot(x[,par1] ~ as.factor(where(m)),main='Response by Terminal Node',xlab='Terminal Node',ylab='Response')
dev.off()
if (par2 == 'none') {
forec <- predict(m)
result <- as.data.frame(cbind(x[,par1],forec,x[,par1]-forec))
colnames(result) <- c('Actuals','Forecasts','Residuals')
print(result)
}
if (par2 != 'none') {
print(cbind(as.factor(x[,par1]),predict(m)))
myt <- table(as.factor(x[,par1]),predict(m))
print(myt)
}
bitmap(file='test2.png')
if(par2=='none') {
op <- par(mfrow=c(2,2))
plot(density(result$Actuals),main='Kernel Density Plot of Actuals')
plot(density(result$Residuals),main='Kernel Density Plot of Residuals')
plot(result$Forecasts,result$Actuals,main='Actuals versus Predictions',xlab='Predictions',ylab='Actuals')
plot(density(result$Forecasts),main='Kernel Density Plot of Predictions')
par(op)
}
if(par2!='none') {
plot(myt,main='Confusion Matrix',xlab='Actual',ylab='Predicted')
}
dev.off()
if (par2 == 'none') {
detcoef <- cor(result$Forecasts,result$Actuals)
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goodness of Fit',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Correlation',1,TRUE)
a<-table.element(a,round(detcoef,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'R-squared',1,TRUE)
a<-table.element(a,round(detcoef*detcoef,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'RMSE',1,TRUE)
a<-table.element(a,round(sqrt(mean((result$Residuals)^2)),4))
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,'Actuals, Predictions, and Residuals',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'#',header=TRUE)
a<-table.element(a,'Actuals',header=TRUE)
a<-table.element(a,'Forecasts',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(result$Actuals)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,result$Actuals[i])
a<-table.element(a,result$Forecasts[i])
a<-table.element(a,result$Residuals[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
}
if (par2 != 'none') {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Confusion Matrix (predicted in columns / actuals in rows)',par3+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',1,TRUE)
for (i in 1:par3) {
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
}
a<-table.row.end(a)
for (i in 1:par3) {
a<-table.row.start(a)
a<-table.element(a,paste('C',i,sep=''),1,TRUE)
for (j in 1:par3) {
a<-table.element(a,myt[i,j])
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.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