As far as i understand to create Ttest we need to use Proc Ttest procedure but i need to generate exactly the same output which i posted above. I tried the code as below.
proc ttest data=Rmsaslib.TtestCombine sides=2 alpha=0.01 h0=0;
title "Two sample t-test example";
class Formulas;
var G1THK;
ods output statistics = outputdf ; ods output equality=outputeq; ods output TTESTS = PVAL; ods output ConfLimits = PVAL2;
run;
I investigate deeply the Cohens d Test and i didn't find. I guess SAS does not have any procedure related to Cohens d test report. I calculated the columns by writing SAS Code but as i said it before my real purpose is to create exactly the same output. Are there any easiest way to generate it.
proc sql;
Create table CohenMerge as
select *
,SQRT(sum(SSDF1,SSDF2)/sum(countBacktest,CountTahminUretim)) as S
,((MeanTahminT-MeanTahminB)/calculated S) as Omega
,ABS(calculated omega) AS AbsOmega
,SQRT(((CountTahminUretim+countBacktest)/(CountTahminUretim*countBacktest))+((calculated Omega)**2/(2*(CountTahminUretim+countBacktest)))) as Stddev
,(calculated omega)-1.96*SQRT(calculated Stddev) as ConfInf95G1THK
,(calculated omega)+1.96*SQRT(calculated Stddev) as ConfInf95G2THK
from SumSDFG1Table T1
Left Join SumSDFG2Table T2
on T2.obs=T1.obs;
quit;
Lastly, Did somebody understand my Confidence Level(%95.0) ?
Thank you.
... View more