I have calculated the confidence intervals using the reference https://www.lexjansen.com/pharmasug/2003/Posters/P048.pdf and implemented the following code for my dataset; PROC MEANS DATA=data NOPRINT ;
by model reason;
VAR default;
OUTPUT OUT=xxtmp N=n MEAN=mean
STDERR=stderr LCLM=lclm Uclm=uclm ;
RUN ;
DATA xxtmp15 ;
SET xxtmp ;
lo = mean - ( TINV ( 0.9 , n-1 ) * stderr ) ;
hi = mean + ( TINV ( 0.9 , n-1 ) * stderr ) ;
RUN ; However, as a result of it, I receive a lower limit of the confidence interval as negative. I understand that I should use the log-normal distribution for avoiding the negative lower limit for confidence intervals. However, I don't exactly know how I can give this input to PROC MEANS. Any help on this is highly appreciated. Kind regards, Mari
... View more