Date: Thu, 3 Mar 2011 08:08:49 -0800
Reply-To: hua gang <hg448@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: hua gang <hg448@YAHOO.COM>
Subject: a function or quick way to compute average with min number of
non-missing data points
In-Reply-To: <201103031531.p23BleZf005376@waikiki.cc.uga.edu>
Content-Type: text/plain; charset=us-ascii
I wanted the average for each subject as long as they have 3 non-missing data
points (id 03 should be dropped because he only has two non-missing data
points). Is there any quick way to do it?
Thanks,
Jian
datalines;
01 1 3 4 .
02 1 2 1 2
03 1 . 2 .
;
|