由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - help sas code for choosing control group
相关主题
请教一sas codehow to trasform data.
请问 Proc Anova 里的 scheffe options 怎么解释help for a sas question
[合集] 说一个proc sort的很简单却总有人错的问题SAS help
一个sas问题SAS快捷键问题
请教一sas programmm请教这种freq 该用什么code算(sas)?Thanks!
sas问题求教 SAS数据转化
overall mean in sas for several variables帮忙看个SAS base 小问题吧
一个很疑惑的SAS日期问题请教proc freq 的chisq 分析
相关话题的讨论汇总
话题: pristine话题: vacation话题: group话题: sas话题: lake
进入Statistics版参与讨论
1 (共1页)
a********a
发帖数: 346
1
data one;
input lake $ bacteria;
datalines;
Pristine 3933
Pristine 458
Pristine 94
Vacation 862
Vacation 437
Vacation 538
Pleasant 4481
Pleasant 276
Pleasant 4208
Sardine 7456
Sardine 4394
;
I want to test the mean of different lakes. So I used the following sas code,
proc glm data=one;
class lake;
model bacteria=lake;
run;
I know sas will treat 'Vacation' lake as the control group. If I want to use
'Pristine' as control group, how do I write in sas code
S***e
发帖数: 108
2
data two;
set one;
if lake='Pristine' then group=4;
else if lake='Vacation' then group=1;
else if lake='Pleasant' then group=2;
else if lake='Sardine' then group=3;
else group=.;
run;
proc glm data=two;
class group;
model bacteria=group/solution;
run;
a********a
发帖数: 346
3
Yes, creating dummy variables is a way to it. Is there any way to write such
like reference='Pristine' in proc glm? I know we can write ref='' in proc
logistic.
Thanks
S***e
发帖数: 108
4
I don't think so.
Please read SAS help to make sure of it.
1 (共1页)
进入Statistics版参与讨论
相关主题
请教proc freq 的chisq 分析请教一sas programmm
[提问]怎样sort这个dataset?sas问题
问个比较具体的算法问题overall mean in sas for several variables
请教如何用SAS计算多个变量的missing value?一个很疑惑的SAS日期问题
请教一sas codehow to trasform data.
请问 Proc Anova 里的 scheffe options 怎么解释help for a sas question
[合集] 说一个proc sort的很简单却总有人错的问题SAS help
一个sas问题SAS快捷键问题
相关话题的讨论汇总
话题: pristine话题: vacation话题: group话题: sas话题: lake