由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sas sql proc问题请教
相关主题
请教一个SAS选择性输出数据的问题,急,有包子SAS daily tips - PROC FREQ
Prevalence Ratio in Proc SurveylogisticSAS daily tips - PROC GPLOT
odds ratio p-value 和 95% CI 矛盾 in proc nlmixedRe: 请问SAS如何学起?
求教一个统计学问题,拜谢了~~~SIGSTAT Meeting on Jan 21 - PROC MIXED
这个应该用什么test?Re: sas help 再问
请问个odds ratio 和 CI的问题申请SAS PROGRAMMER职位,要懂哪些东西?
请教一个简单的SQL问题[合集] 请教个关于odds ratio的问题
问个统计问题Top Ten Reasons to Use PROC SQL(zt)
相关话题的讨论汇总
话题: sas话题: when话题: sd话题: ratio话题: avg
进入Statistics版参与讨论
1 (共1页)
a******6
发帖数: 78
1
*********************************************
proc sql;
create table ratio_anl as
select a.day, a.gel, a.cond as cond1, b.cond as cond2,
a.cond || ':' || b.cond as comp,
case b.cond when 'A' then 0.25
when 'B' then 0.5
when 'C' then 1
when 'D' then 1.5
when 'E' then 2
end as pr_ratio,
a.sas_avg as sas_avg1, a.sas_sd as sas_sd1,
b.sas_avg as sas_avg2, b.sas_sd as sas_sd2,
a.ratio, ( a.sas_sd**2 + (a.ratio*b.
l***a
发帖数: 12410
2
imagine you make the ratio data set a duplicate copy, say named ratio1. then
re-write code as from ratio as a, ratio1 as b

【在 a******6 的大作中提到】
: *********************************************
: proc sql;
: create table ratio_anl as
: select a.day, a.gel, a.cond as cond1, b.cond as cond2,
: a.cond || ':' || b.cond as comp,
: case b.cond when 'A' then 0.25
: when 'B' then 0.5
: when 'C' then 1
: when 'D' then 1.5
: when 'E' then 2

a******6
发帖数: 78
3
I c
Thanks a lot~~

then

【在 l***a 的大作中提到】
: imagine you make the ratio data set a duplicate copy, say named ratio1. then
: re-write code as from ratio as a, ratio1 as b

1 (共1页)
进入Statistics版参与讨论
相关主题
Top Ten Reasons to Use PROC SQL(zt)这个应该用什么test?
昨天考了SAS ADVANCED,不难请问个odds ratio 和 CI的问题
[合集] 如何检验normality??请教一个简单的SQL问题
[合集] 不是统计专业的, 问个excel的问题问个统计问题
请教一个SAS选择性输出数据的问题,急,有包子SAS daily tips - PROC FREQ
Prevalence Ratio in Proc SurveylogisticSAS daily tips - PROC GPLOT
odds ratio p-value 和 95% CI 矛盾 in proc nlmixedRe: 请问SAS如何学起?
求教一个统计学问题,拜谢了~~~SIGSTAT Meeting on Jan 21 - PROC MIXED
相关话题的讨论汇总
话题: sas话题: when话题: sd话题: ratio话题: avg