s-news
[Top] [All Lists]

weighted average method for rates

To: s-news@lists.biostat.wustl.edu
Subject: weighted average method for rates
From: duo wan <duo_wan@yahoo.com>
Date: Mon, 15 Nov 2004 09:43:20 -0800 (PST)
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=zQpsWU/4vmkc3EhfooVn6s7Law3ElJ3LbXa/Id2jSHM/qHEJXfQSDope2xboutJ4QVYrlGc4b5Sk0aT0lsGG78c/h46d8Jio2PK1hyRjMKPRh5RIJLWEZzbkhl+wAK16RG9xapBoSDVS9exp9RqJK5x095RDShi06Z/QOf64Txw= ;

Dear S-users:

I am trying to combine the rates using common weighted average methods. is anyone who knows how to use S to do it or assist me with formulaes?

thanks!!!

duowan

num_im=num of improved patients;

num_pat=number of patients.

rate=num_im/num_pat

Obs num_im num_pat RATE

1 16.0 17 0.94118

2 10.0 12 0.83333

3 4.0 8 0.50000

4 43.0 58 0.74138

5 9.5 10 0.95000

6 25.0 42 0.59524

7 13.0 14 0.92857

8 11.5 12 0.95833

9 22.0 41 0.53659

10 4.0 5 0.80000

11 5.0 6 0.83333

12 18.0 23 0.78261

13 58.0 68 0.85294

14 6.0 10 0.60000


Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com
<Prev in Thread] Current Thread [Next in Thread>