BookmarkSubscribeRSS Feed
Kastchei
Pyrite | Level 9
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.
1 REPLY 1
GertNissen
Barite | Level 11
Have you looked at proc means ?

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 563 views
  • 0 likes
  • 2 in conversation