Date: Tue, 6 May 2008 18:35:28 -0400
Reply-To: Arthur Tabachneck <art297@NETSCAPE.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Arthur Tabachneck <art297@NETSCAPE.NET>
Subject: Re: calculate confidence interval for average cost
Tammy,
I think you are looking to do something like the following:
data have;
input group response cost;
cards;
1 1 10
1 0 10
2 1 20
2 1 20
2 0 20
;
proc sql noprint;
create table temp as
select sum(cost)/sum(response) as cost_per_response
from have
group by group;
;
quit;
proc means data=temp alpha=.05 clm;
var cost_per_response;
run;
HTH,
Art
---------
On Tue, 6 May 2008 12:18:38 -0700, tammy1207@YAHOO.COM.TW wrote:
>Hi,
>
>I have a data like this:
>
>group response cost
>1 1 $10
>1 0 10
>2 1 20
>2 1 20
>2 0 20
>
>The cost per response for group 1 is $20 and group 2 is $30. How can I
>calculate the 95% confidence interval for cost per response?
>
>Thanks for any assistance you can lend.
>
>
>Tammy