Contributor
Posts: 58

# 95% CI (Confidence Interval)

[ Edited ]
Hello

I  have need the last modification in my proc programming that can also estimate the 95% CI (Confidence Interval), though my proc programming estimate 95% CL but I need 95% CI (Confidence Interval).

Best regards,

data exp;
set geumar2;
if expno=1;
run;
;

proc nlin data=exp method=marquardt;
parms B=0.5 R=0.1;
delta=0.000001;

s=sow**(1-B)-R*(1-B)*time;
if s>0 then stx=s**(1/(1-B));
else stx=0;

model stw=stx;

sb=(sow**(1-B+delta)-R*(1-B+delta)*time);
if sb>0 then sdb=(stx-sb**(1/(1-B+delta)))/delta;
else sdb=0;
der.B=sdb;

sr=(sow**(1-B)-(R-delta)*(1-B)*time);
if sr>0 then sdr=(stx-sr**(1/(1-B)))/delta;
else sdr=0;
der.R=sdr;

output out=expp p=pstw r=stw_residual;
run;
proc summary data=expp;
var stw_residual stw;
output out=stats css(stw)=sstot uss(stw_residual)=ssres N=N;
run;
data expp;
set stats;
rsquared=1-(ssres/sstot);
adjrsquared = 1-(1-rsquared)*(N-1) / (N- 2 -1);
run;
proc print data=expp;
run;

Super User
Posts: 20,731

## Re: 95% CI (Confidence Interval)

What's your formula for the 95% CI? Also, please post what you've tried.
Contributor
Posts: 58

## Re: 95% CI (Confidence Interval)

Dear Reeza
I try this one with my data info but no result

proc surveyselect data=cipop n=10 rep=1 out=ci1;
id pop1;
proc surveyselect data = cipop n=10 rep=1 out=ci2;
id pop2;
proc means data = ci1;
proc means data = ci2;
run;
Contributor
Posts: 58

Dear Reeza
Are you there?
Contributor
Posts: 58

## Re: 95% CI (Confidence Interval)

Rick_SAS colud pleaae help me in this? I need the answer
Contributor
Posts: 58