/* This file produces a confidence interval for the noncentrality parameter of a noncentral t distribution. The required input rows must contain the t value, df, and desired confidence level. An example input row is given in the line below "cards;". The last two parameters in the output are the lower limit (ncplow) and upper limit (ncpupp) of the noncentrality parameter. */ SYNTAX: data x; input t df conf; prlow = 1-(1-conf)/2; prupp = (1-conf)/2; ncplow = tnonct (t,df,prlow); ncpupp = tnonct (t,df,prupp); cards; 2.65 11 .950 ; proc print; run; /* Output looks like this: Obs t df conf prlow prupp ncplow ncpupp 1 2.65 11 0.95 0.975 0.025 0.36012 4.84933 */