here,刚从SAS的网页上找到的,希望有用。按照你的意思,应该就是 Ho=5 sides=U
http://support.sas.com/documenta ... tug.ttest.tteproch0
Table 92.2 PROC TTEST Statement Options Option
Description
Basic Options
DATA=
specifies input data set
ORDER=
determines sort order of CLASS variable or CROSSOVER treatment variables
Analysis Options
ALPHA=
specifies confidence level
DIST=
specifies distributional assumption (normal or lognormal)
H0=
specifies null value
SIDES=
specifies number of sides and direction
TEST=
specifies test criterion (difference or ratio)
TOST
requests equivalence test and specifies bounds
Displayed Output
CI=
requests confidence interval for standard deviation or CV
COCHRAN
requests Cochran test
PLOTS
produces ODS statistical graphics
Output Ordering
BYVAR
groups results by PAIRED or VAR variables
NOBYVAR
groups results by tables
H0=m
requests tests against a null value of , unless the TOST option is used, in which case is merely used to derive the lower and upper equivalence bounds. For the crossover design, the value applies for both treatment and period tests. By default, PROC TTEST uses H0=0 when TEST=DIFF (or DIST=NORMAL for a one-sample design) and H0=1 when TEST=RATIO (or DIST=LOGNORMAL for a one-sample design).
SIDES=2 | L | U
SIDED=2 | L | U
SIDE=2 | L | U
specifies the number of sides (or tails) and direction of the statistical tests and test-based confidence intervals. The values are interpreted as follows:
SIDES=2
(the default) specifies two-sided tests and confidence intervals for means.
SIDES=L
specifies lower one-sided tests, in which the alternative hypothesis indicates a mean less than the null value, and lower one-sided confidence intervals between minus infinity and the upper confidence limit.
SIDES=U
specifies upper one-sided tests, in which the alternative hypothesis indicates a mean greater than the null value, and upper one-sided confidence intervals between the lower confidence limit and infinity.