turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS Procedures
- /
- Variance of Difference of Ratio Means

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

12-22-2008 04:56 PM

I have gotten a request from our statistician to compute the ratio mean, variance of the ratio mean, difference between ratio means, and variance of the difference between ratio means for our clinical trial. The goal is to examine rates of different events (e.g. headache) occurring between our clinics and between our studies. The statistical documentation I received deals with stratified unequal clusters and provides some simple, yet cumbersome formulas for these statistics. I have been searching for a SAS procedure that will calculate these values, but I haven't found anything, or perhaps I simply am not recognizing the right thing.

Here are the forumlas given in case this illustrates what I need better (there are other more computational formulas I have as well):

ratio mean: r = y/x

var(r) = (1/x^2)(sum(var(y)) + r^2*sum(var(x)) - 2r*sum(cov(y,x))), sums over the strata

difference: r - r' = y/x - y'/x'

var(r - r') = var(r) + var(r') - 2cov(r,r')

Any help would be appreciated, even if that I have to write code to compute these. Thanks.

Here are the forumlas given in case this illustrates what I need better (there are other more computational formulas I have as well):

ratio mean: r = y/x

var(r) = (1/x^2)(sum(var(y)) + r^2*sum(var(x)) - 2r*sum(cov(y,x))), sums over the strata

difference: r - r' = y/x - y'/x'

var(r - r') = var(r) + var(r') - 2cov(r,r')

Any help would be appreciated, even if that I have to write code to compute these. Thanks.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

12-22-2008 05:36 PM

Have you looked at proc means ?