楼主: sausau
4876 9

[原创博文] 有没有可能改t test 的h0 呢? [推广有奖]

  • 0关注
  • 0粉丝

已卖:470份资源

本科生

54%

还不是VIP/贵宾

-

威望
0
论坛币
218 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
3019 点
帖子
100
精华
0
在线时间
72 小时
注册时间
2009-3-7
最后登录
2022-12-20

楼主
sausau 发表于 2010-2-27 13:35:57 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
这个问题比较愚蠢。但是我实在搜不到答案,就只有发帖了

默认的是h0=0, 但是有没有可能改成h0<0呢?  我写过  h0<0    或 h0 le 0 , 都不能执行。难道sas 的ttest不能做单侧检验啊?


要是我想看看均值是不是显著大于5,怎么办呢?

是不是有什么其他方法啊?

谢谢各位牛牛!!!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:test Est 有没有

沙发
yncxhz 发表于 2010-2-27 13:46:02
要包含等号
不抛弃、不放弃。继续坚持!

藤椅
sausau 发表于 2010-2-27 14:03:39
51   proc ttest data=c h0<=0; var avgret sprtrn;run;
                         --
                         73
                         200

ERROR 73-322: Expecting an =.

ERROR 200-322: The symbol is not recognized and will be ignored.

板凳
Isscaliu 发表于 2010-2-27 14:38:40
印象中 SAS做t检验都是two-sided,要做one-sided简单的就用ttest的output手动算P-value。如果统计功底过关,这应该没有什么问题!!!
It was the best of times, it was the worst of times.

报纸
Isscaliu 发表于 2010-2-27 14:42:43
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.
It was the best of times, it was the worst of times.

地板
爱萌 发表于 2010-2-27 17:46:53
SAS默认是检验two-side, 你需要修改语句就可以做单边检验
但是单边检验SAS9.1.3没有,不过其计算的p-value乘2就是单边的了
最恨对我说谎或欺骗我的人

7
Isscaliu 发表于 2010-2-27 19:05:05
爱萌 发表于 2010-2-27 17:46
SAS默认是检验two-side, 你需要修改语句就可以做单边检验
但是单边检验SAS9.1.3没有,不过其计算的p-value乘2就是单边的了
那就对了,我记得以前学9.1的时候好像是没有one-sided检验的!!!但是9.2已经有了!!
It was the best of times, it was the worst of times.

8
crackman 发表于 2010-2-28 12:34:49
其实问题是你知道零假设和备择假设的确切含义吗?
不同的研究问题,你先理解之后再看看改,如何改

9
爱萌 发表于 2010-2-28 12:59:10
crackman 发表于 2010-2-28 12:34
其实问题是你知道零假设和备择假设的确切含义吗?
不同的研究问题,你先理解之后再看看改,如何改
同意
最恨对我说谎或欺骗我的人

10
Isscaliu 发表于 2010-2-28 13:37:45
爱萌 发表于 2010-2-28 12:59
crackman 发表于 2010-2-28 12:34
其实问题是你知道零假设和备择假设的确切含义吗?
不同的研究问题,你先理解之后再看看改,如何改
同意
有同感,其实可以延续讨论一下“零假设和备择假设的确切含义”这个问题
另外,软件只是一个辅助工具而已,能够融会贯通才是根本。
It was the best of times, it was the worst of times.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-9 11:16