Dear fellows !
I want to add a new column right beside f values :
# from first row to 20th row I want to divide f - value through 10
# from 21th row to 29th row I want to divide f-value through 23
and so on .........................
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I use until now :
. contract z1,freq(n) ' z1 is a variable which is to be scrutinized very
exactly
* z1 is the counted value in dosis interval
. gen N = sum(n)
. gen f = n/N[_N] * 100 f.... percentage
. gen F = sum(f) F... cumulative
. gen F100 = 100 - F F100 ... 100 -cumulative
. tabdisp z1,cellvar(n f F F100)
--------------------------------------------------------------
z1 | Frequency f F F100
--------------+-----------------------------------------------
1.1 * 10 | 290 .0726235 .0726235 99.92738
1.2 * 20 | 1796 .4497646 .5223881 99.47762
1.3 * 30 | 8313 2.081789 2.604177 97.39582
1.4 * 40 | 24454 6.12391 8.728087 91.27191
1.5 * 50 | 45556 11.40839 20.13648 79.86352
1.6 * 60 | 59682 14.94591 35.08239 64.91761
1.7 * 70 | 64314 16.10588 51.18827 48.81173
1.8 * 80 | 58278 14.59431 65.78258 34.21742
1.9 * 90 | 45689 11.4417 77.22428 22.77572
2.1 * 100 | 31367 7.855103 85.07938 14.92062
2.2 * 110 | 19871 4.97621 90.0556 9.944405
2.3 * 120 | 11701 2.930231 92.98582 7.014175
2.4 * 130 | 7277 1.822348 94.80817 5.191826
2.5 * 140 | 4349 1.089101 95.89728 4.102722
2.6 * 150 | 2859 .7159671 96.61324 3.386757
2.7 * 160 | 1849 .4630372 97.07628 2.923721
2.8 * 170 | 1244 .3115296 97.38781 2.61219
2.9 * 180 | 839 .2101072 97.59792 2.402084
3.1 * 190 | 694 .1737954 97.77171 2.228287
3.2 * 200 | 525 .1314735 97.90318 2.096817
3.3 * 250 | 1450 .3631173 98.2663 1.733696
3.4 * 300 | 850 .2128619 98.47916 1.520836
3.5 * 400 | 1048 .2624462 98.74161 1.258392
3.6 * 500 | 665 .1665331 98.90814 1.091858
3.7 * 650 | 737 .1845638 99.0927 .9072952
3.8 * 800 | 502 .1257137 99.21842 .7815781
3.9 * 1000 | 455 .1139437 99.33237 .6676331
4.1 * 1200 | 369 .0924071 99.42477 .5752258
4.2 * 1500 | 437 .109436 99.53421 .4657898
4.3 * 2000 | 436 .1091856 99.64339 .3566055
4.4 * 2500 | 283 .0708705 99.71426 .2857361
4.5 * 3000 | 174 .0435741 99.75784 .2421646
4.6 * 4000 | 241 .0603526 99.81819 .1818085
4.7 * 5000 | 136 .0340579 99.85225 .1477509
4.8 * 6500 | 132 .0330562 99.88531 .1146927
4.9 * 8000 | 86 .0215366 99.90685 .0931549
5.1 * 10000 | 71 .0177802 99.92462 .0753784
5.2 * 10000 | 301 .0753781 100 0
--------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
each help will be appreciated very much
andreas
--
+++ GMX - die erste Adresse f�r Mail, Message, More +++
Bis 31.1.: TopMail + Digicam f�r nur 29 EUR http://www.gmx.net/topmail
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/