LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (October 2002, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 30 Oct 2002 21:07:49 +0100
Reply-To:     Jones John <John.Jones@UCB-GROUP.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jones John <John.Jones@UCB-GROUP.COM>
Subject:      Re: Calculating a p-value for a varibles average
Comments: To: Ellen <erains@NERI.ORG>
Content-Type: text/plain; charset="iso-8859-1"

Assuming the p-value is under the null hypothesis that means are zero try the following... jj

data a; input id group var1 @@; cards; 101 1 3 102 1 5 103 2 0 104 1 1 105 2 4 106 2 3 107 1 0 ;; run;

proc sort data=a; by group; run; proc means data=a n mean stddev stderr t probt; var var1; by group; run;

-----Original Message----- From: Ellen [mailto:erains@NERI.ORG] Sent: Wednesday, October 30, 2002 3:03 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Calculating a p-value for a varibles average

I need to calculate an average value and p-value of var1 based a pt's group. The data is set up in the following manner.

id group var1 101 1 3 102 1 5 103 2 0 104 1 1 105 2 4 106 2 3 107 1 0

How is this calculated in SAS?

--------------------------------------------------------- Legal Notice: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose they are intended to. Dissemination, distribution, or reproduction by anyone other than their intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and send him/her back the present e-mail and its attachments and destroy any copies which may be in your possession. ---------------------------------------------------------


Back to: Top of message | Previous page | Main SAS-L page