Statistics 板


LINE

※ 引述《qtzbbztq (阿杰)》之铭言: : 之前我分析ttest : 例如 : A B : 1 2 : 1 2 : 2 3 : 2 1 : 2 4 : 2 5 : 1 2 : 1 3 : 我想知道B变相在A组1 和 2的情况下是否平均值不一样 : 只要撰写 : proc ttest; : var b; : class a; : run; : 这样就好了 : 但是 : 假如a 和 b都是连续变项 : 我想要分析a 和 b是否平均数不同 : 我要怎麽打 : 我打proc ttest; : var a b; : run; : 发现他会单独去跑a 和 b 的单样本检定囧 : 如何才能跑a和b的双样本ttest呢?? : 指令要怎麽下 谢谢!! http://www.ats.ucla.edu/stat/sas/notes2/analyze.htm ============================================================================== t-tests This is the one-sample t-test, testing whether the sample of writing scores was drawn from a population with a mean of 50. proc ttest data='c:\sas\hs1' H0=50; var write; run; ============================================================================== This is the paired t-test, testing whether or not the mean of write equals the mean of read. proc ttest data='c:\sas\hs1'; paired write*read; run; ============================================================================== This is the two-sample independent t-test. The output includes the t-test for both equal and unequal variances. The class statement is necessary in order to indicate which groups are to be compared. proc ttest data='c:\sas\hs1'; class female; var write; run; -- 欢迎到Ptt统计学板一起讨论研究统计方面的问题! telnet://ptt.cc \(^▽^)/ (C)lass 【 分组讨论区 】 国家研究院 Academy 研究 Σ科学学术研究院 Science 理学 Σ 理学研究院 Statistics --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.129.34.115
1F:推 qtzbbztq:谢谢 但是这跟我说的例子是一样的 我现在的问题是 我要跑 10/29 13:46
2F:→ qtzbbztq:如果我用最後那个例子跑 他就会跟我前面说的一样 10/29 13:47
3F:→ qtzbbztq:用某变相分成两组来看这两组的平均值是否不一样 但是 10/29 13:48
4F:→ qtzbbztq:我是看两个变相的平均值是否一样 不能这样跑@@~~~ 10/29 13:48
5F:→ qtzbbztq:现在的问题就是 我要看两个单独的变项的平均值是否有差异 10/29 13:50
6F:→ qtzbbztq:我要打什麽程式码才能完成@@ 10/29 13:50
7F:→ jangwei:後面两个例子就是你要的呀!你有看仔细吗?看你的两组样本 10/29 14:57
8F:→ jangwei:是独立的或是配对的,写法有所不同! 10/29 14:57
9F:推 qtzbbztq:不是囧 我可能解释的不够清楚 可是真的不是囧 10/29 15:04
10F:→ qtzbbztq:我只是要看A B两个变项平均值是否有差异 10/29 15:05
11F:→ qtzbbztq:如果用最後一个 他不是看A B两个平均值是否有差异 10/29 15:05
12F:→ qtzbbztq:他看的是例如A里面分为两组 对照B是否有差异~~ 10/29 15:05
13F:→ qtzbbztq:所以A要有2个LEVEL才能够跑最後的指令 否则 SAS会说 10/29 15:06
14F:→ qtzbbztq:A没有两个LEVEL 不能跑 10/29 15:06
15F:→ qtzbbztq:我回在下面 希望能讲清楚一点ORZ 10/29 15:06
16F:推 lin15:所以是要比较 mean(A)是否等於mean(B) ? 10/29 15:07
17F:推 qtzbbztq:对的T_T 10/29 15:13
18F:→ sneak: 如果用最後一个 他不是 https://daxiv.com 11/09 14:31
19F:→ sneak: 我要打什麽程式码才能完 https://noxiv.com 01/02 14:46







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:Gossiping站内搜寻

TOP