/************************************
Calculate Descriptive Statistics ************************************/ *- Call unistats to calculate descriptive statistics with -; *- a transposed-by-statistic output dataset produced. -; %unistats(dsin=_laball4,print=no,varlist=&labval, trtvar=&trtvar,trtfmt=$atrfmt.,leftstr=yes, byvars=tp labnm labparmstr,dpvar=_dplaces, nfmt=5.,stdfmt=5.,minfmt=5.,maxfmt=5.,meanfmt=5., descstats=&descstat,dstranstat=_transtat); /************************
|
The list of numeric statistics variables will be the list of "keywords"
held in &_statkeys_ and the corresponding character variables
will have the same name but ending in "STR". A little later in the code
I list these character variables that I need to use in a "proc report"
step. Look carefully at the way I refer to them. Look for %suffix(STR,&_statkeys_)
and %scan(&_statkeys_,&i,%str( ))STR
/*******************************
Produce report *******************************/ %let ncolw=8; %if %words(&_statkeys_) GT 6 %then %let ncolw=6; *- style=2 (XLAB 2) report with treatment arm as the across
variable -;
|
Use the "Back" button of your browser to return to the previous page.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.