由买买提看人间百态

topics

全部话题 - 话题: proc
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)
s******r
发帖数: 1524
1
not exactly.
proc sql; most time handle sas dataset unless use connection.
sql query over database. To get better performance, the code need to be
optimized by database. Specially large database, the difference must be huge
. However it would be not difference for HR.
i*********e
发帖数: 783
2
does the recruiter mean sql server?Where can I get some entry level books?
I know how to use proc sql in SAS,but not experienced.
r**********d
发帖数: 510
3
proc sql is a tiny subset of the standard SQL. it is just for data
manipulation.
SAS is not a RDMS, so it doesnt have a lot of db features.
different RDMSes have their own variations of SQL.
this doesn’t even include their stored procedures, such as pl/sql, t-sql.
sas doesn’t have triggers, cursors etc.
d**********2
发帖数: 14
4
Hi,
在用SAS做ANOVA analysis的时候(我用的是proc glm), 怎么样specify哪些variable是
within-subject effect, 哪些variable是between-subject effect? 我知道所有
repeated measures variables都是within-subject effect, 可是我的data不属于这种
情况啊, 而且如果有多于两个viariables属于within-subject effects, 这个repeated
option很不好用啊, 没办法specify两个或者两个以上的repeated measures
variables.
万分感激!
Laomao
a**j
发帖数: 60
5
你要知道是random effect 还是fixed effect, 用factorial model 还是nested model
between-subject effect
within-subject effect
with group, between group?
如果是的话, 用nested model
一个women right 的题 的部分SAS code 及解释
/*Conduct anova specifies that both ciri and wecon are categorial variable,
nest model ciri is nested with wecon specifies that ciri is random variable
. Conduct model diagnostics by plots=diagnostics option*/
ods graphics on;
proc glm data=torture1 PLOTS=DIAGNOSTICS ;
class ciri wecon;
model physint1=weco... 阅读全帖
c***i
发帖数: 45
6
来自主题: Statistics版 - 关于proc varmax 的VECM model
用proc varmax fit VECM model 时如果估计的参数不significant。有办法将其
restrain to 0 吗? 我知道如果是VAR model,可以用RESTRICT statement. 但是这个
不使用于VECM model. Thanks.
G*****9
发帖数: 3225
7
来自主题: Statistics版 - Problems about SAS Proc MDC
I got a problem: suppose that we are dealing with a multi-nomial logit
regression analysis, with response variable values as: 1, 2, 3, 4. Suppose
there are 1K observations, each containing the following columns:
1) Time tag
2) Property A
3) Property B
4) Property C
5) Choice: valued at one of the following 1, 2, 3, 4
6) Number of people making the choice: 1-2000.
How I should convert the data to apply Proc MDC?
Thank you.
p***7
发帖数: 535
8
来自主题: Statistics版 - SAS -PROC sql updat
proc sql;
update AcSL
set tt='Y' where tt=1
tt='N' where tt=0
sagety='Y' where sagety=1
sagety='N' where sagety=0
PPt='Y' where PPt=1
PPt='N' where PPt=0
compaete='Y' where compaete=1
compaete='N' where compaete=0;
quit;
Can anyone tell me what wrong with this code?
S******6
发帖数: 752
9
来自主题: Statistics版 - question about proc format
I think you misunderstand the lecture.
It should be "
When assigning a character label in a
dataset, the length of the first evaluation of the
label will be applied to all labels."
However, if you use the proc format, their is no truncation problem now.
P****D
发帖数: 11146
c***i
发帖数: 45
11
来自主题: Statistics版 - proc x11
向大家请教一个问题。 如果用proc x11 remove Seasonality, 那么如何forecast未来
的Seasonality factors呢? thanks。
t******g
发帖数: 2253
12
来自主题: Statistics版 - proc x11
这个用proc x12可以做到。x12的output里面有未来一年predicted的seasonality
factor
z*********i
发帖数: 146
13
来自主题: Statistics版 - SAS proc import excel file 紧急求助
The maximum length of any character value in SAS is 32,767 bytes.
You should add a statement to PROC IMPORT when reading CSV, TXT or EXCEL.
The Statement: GUESSINGROWS=MAX;
x*******u
发帖数: 500
14
来自主题: Statistics版 - SAS proc import excel file 紧急求助
Thanks. But there is an error message.
1040 PROC IMPORT OUT= WORK.US_pre
1041 DATAFILE= "G:\mydata.xlsx"
1042 DBMS=EXCEL REPLACE;
1043 GETNAMES=YES;
NOTE: The previous statement has been deleted.
1044 MIXED=YES;
1045 SCANTEXT=YES;
1046 USEDATE=YES;
1047 SCANTIME=YES;
1048 GUESSINGROWS=MAX;
------------
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
1049 RUN;
而且那个variable value有长有短。
f*******m
发帖数: 94
15
来自主题: Statistics版 - 问个SAS proc univariate 的问题
请问在SAS里面我有100多个变量,需用计算出这100多个变量的percentile,请问怎么用
SAS proc univariate 输出表格结果,row 是变量, column 是percentile。平时用R
比较多,用SAS真是不习惯。
l***q
发帖数: 208
16
来自主题: Statistics版 - 问个SAS proc univariate 的问题
use PROC MEANS instead

用R
t*****a
发帖数: 459
17
来自主题: Statistics版 - 问个SAS proc univariate 的问题
这个一般可以用ods trace on/off 在log里查一下输出的表格名字,然后output一下就
行了。
ods trace on;
proc univariate data=all;
var v;
run;
ods trace off;
那么楼主,这类东西如果用R怎么输出呢?
e*****i
发帖数: 46
18
来自主题: Statistics版 - 请教 macro variable 和 PROC SQL的问题
A table里有一个column 叫作state,里面有 50个states。现在我想写一个macro,用
这个macro我可以把感兴趣的一个或者很多个州的内容调出来,创建一个新的table。比
如我感兴趣 15个州,那我把这15个州的名字列出来(AK,AL,FL,PA,NJ~~~~~),相关的
信息就写进一个新的table了。
proc sql;
select *
from A
group by state
having state in (“某一个state”);
quit;
这个方法太笨了,有没有什么更简便快捷的方法呢?
多谢!!
p***e
发帖数: 118
19
来自主题: Statistics版 - SAS Proc Rank 的问题急问
为什么有的proc rank 出来出来最小的rank 是1, 有什么出来的是0
真费解阿。。。
怎么样才能一致阿?
谢谢
p***e
发帖数: 118
20
来自主题: Statistics版 - SAS Proc Rank 的问题急问
proc rank data=a1 out=a2 groups=50 descending ties=dense;
by variable1 variable2 ;
var variable3;
ranks variable4;
run;quit;
出来结果,有的最小是0,有的最小是1。。。。
c****6
发帖数: 758
21
我用proc surveyselect method=srs samplerate=.5 和ranuni()>.5 都选过sample,
发现surveyselect 每次选的都是都刚刚好50%,而ranuni选的就会没那么刚好。
我查不到太多信息,那位高手知道surveyslect用的什么random number generator and
selection algorithm 选的? 谢谢!
i***m
发帖数: 148
22
proc mianalyze
t*****w
发帖数: 254
23
来自主题: Statistics版 - PROC SQL运行速度问题.
SAS is not good to handle large datasets,just use Sql server management
studio to output a small dataset for SAS proc data step.
s*r
发帖数: 2757
24
来自主题: Statistics版 - PROC SQL运行速度问题.
there are 2 places to put where under proc sql
m***c
发帖数: 118
25
来自主题: Statistics版 - PROC SQL运行速度问题.
proc sql首先产生笛卡尔,然后在其中寻找match,如果没有很好的filter,运行自然比
较慢,而且容易死机。
w*******n
发帖数: 469
26
来自主题: Statistics版 - sas proc means 问题
proc univariate
t*****w
发帖数: 254
27
来自主题: Statistics版 - 求推荐学习sas proc sql , macro的资料
I was going in the opposite way. I was proficient at SAS proc sql at the
moment. But I was required to master on SQL programming in order to query a
database in a short time window.
z********1
发帖数: 997
28
来自主题: Statistics版 - 求推荐学习sas proc sql , macro的资料
should not be too hard...if you already know proc sql..

a
h*******n
发帖数: 458
29
来自主题: Statistics版 - 求推荐学习sas proc sql , macro的资料
proc sql and sql have no much difference, any introduction to sql will do.
It only takes a few days to learn it. As to SAS macro, I think reading SAS
macro documentation is enough. It's also easy to learn basics of macro, but
it's not easy to be very good at it.
f*********3
发帖数: 313
30
用Proc Glimmix建立3-level random effect logistic regression后需要 predicted
probability,用output 命令只能给出每个样本对应的概率,但我需要自变量不同取值
的概率。请问大家有什么好的建议么?谢谢了。
m*******g
发帖数: 6
31
来自主题: Statistics版 - 问个Proc ARIMA的问题
请问该如何code能得到这个model形式呢?十分感谢!
X1D = a + b*X1_MA_LAG;
where:
X1D = X1t - (X1t-1)
X1_MA = 0.5*(X1t + X1t-1)
X1_MA_LAG = X1_MAt-1
试了
Proc ARIMA;
identify var=X1(1);
estimate p=(1 4) ar = (0.5 0.5) ;
run;
似乎不对
w*******9
发帖数: 1433
32
来自主题: Statistics版 - SAS proc power question
In SAS proc power, it seems I cant calculate the power associated with the
following test of relative risk (for two independent samples with binary
outcome):
H0: p1/p2 >= phi vs Ha: p1/p2 < phi
Any suggestions inside or outside of SAS are welcome.
d*********d
发帖数: 239
33
针对同一组数据,在PROC GENMOD里用不同的working matrix patterns(
Autoregressive, compound symmetry, and Banded),最终得到的empirical
covariance matrix of parametes是一样的。
这个是巧合吗? 还是本来用什么样的working matrix pattern本来就不重要?
R******d
发帖数: 1436
34
来自主题: Statistics版 - 请问一个SAS proc sql的写法
某个数据集有很多变量,其中一个叫id。第二个数据集就一个id变量,而且是前一个数
据集id变量的子集。
我的问题是:能否用proc sql在第一个数据集里产生一个新的变量,如果第二个数据集
中的id变量包含于第一个数据集中的id变量中,则标记为1,否则标记为0。
谢谢。
s*****e
发帖数: 422
35
来自主题: Statistics版 - 请问一个SAS proc sql的写法
这个可以吗?
proc sql;
select id, (case when dataset1.id=dataset2.id2 then 1 else 0 end) as dummy
from dataset1,dataset2(rename=(id=id2))
quit;
p******p
发帖数: 13
36
来自主题: Statistics版 - 请问一个SAS proc sql的写法
亲测可用,想覆盖data1的话把最后的new_data1改成data1就好,虽然覆盖源dataset习
惯很不好。
data data1;
input id t1 t2;
datalines;
1 2 3
2 4 5
3 4 5
;
run;
data data2;
input id;
datalines;
1
2
;
run;
proc sql noprint;
create table new_data1 as
select data1.*,coalesce(flag,0) as flag from
data1 left join (select data2.*,1 as flag from data2)
on data1.id=data2.id
;
quit;
a******n
发帖数: 11246
37
经常碰到这种情况,为了简单查看Y和X的关系,把X按照大小分成size相等的N份,然后
每份上算Y均值。
以前用sas很习惯,proc rank的group=N选项自动把数据分为N等分。
那hql里有类似功能么?
a**w
发帖数: 60
38
如何避免?
例如, 在下例中, 抽取的总样本数1400中, 可以有大概1/3的样本是1次,或2次,3次,...
, 重复的.
proc surveyselect data=s /* 10000 个数据 */
method=sys
n=200
reps=7
seed=37652
out=s1
;
control var1 var2 var3;
run;
如果设置 seed=0, 那么样本重复数会小一些, 但是重复率仍然很大.
请大家帮忙看看该怎么处理. 谢谢!
u*h
发帖数: 397
39
GOOGLE: proc surveyselect no replacement
get: without replacement (METHOD=PPS)
is this what you need?
a**w
发帖数: 60
40
No. What I need to do is to make sure there are no any replicates in the
output
data set when reps is greater or equal to 2. Example is like this:
proc surveyselect data=s method=sys
n=1000
reps=7
seed=354545
out=s1;
control var1 var2 var3;
run;
S******6
发帖数: 752
41
来自主题: Statistics版 - proc glimmix 问题请教
用SAS run proc glimmix multilevel model (3 levels). 数据大, 13 hours
processing without result.
请教有什么好办法替代。
xiexie
t**********h
发帖数: 100
42
来自主题: Statistics版 - SAS proc print 长 table 不要折头
我没有说清楚。我要制图和表格 用PDF格式。
ods pdf file = "";
proc print .....
a very long tables, many columms
run;
ods pdf close;
既然是打表格,肯定不能折头, 而且我的column也不是很多,就是名字长,挤着没有
地方了。
谢谢
r*********0
发帖数: 3
43
来自主题: Statistics版 - SAS proc print 长 table 不要折头
A simple way would be to rename the columns with shorter names.
Alternatively, try "proc report" with "split" option that displays long
column names in multiple rows.

发帖数: 1
44
mysql和proc sql的语法差别不是很大咯?
N**N
发帖数: 1713
45
我对proc sql知道到不多,不过都是SQL,差别不会很大。
下面这个网页比较了各个SQL实现的不同,可以看到大部分差别都很细微:
http://troels.arvin.dk/db/rdbms/
d*********d
发帖数: 239
46
来自主题: Statistics版 - 求教proc nlin
想让proc nlin里的
model = lognormal 的hazard function. 不知道如何写model=的表达式。
哪位大神帮着写一下?
谢谢!!!!
w*****1
发帖数: 473
47
来自主题: Statistics版 - 请教proc transpose 问题
我想用proc transpose 把long data 转化为wide data,但是转化以后的column name
变成了var1, var2 var3 var4....,而不是原来的probe_id。我用了profix=probe_id,
结果column name 变成了probe_id1, probe_id2...,而不是原来的PROBE_ID,我希望转
化以后的column name 是ILMN_1762337,ILMN_2055271......
下面是 long data的部分数据,从第三个变量开始是sample name,下面的数据是gene
expression level,一共有几百个sample, 几十万个probe.
PROBE_ID SYMBOL 5117-H471Fwk12-B3.AVG_Signal
ILMN_1762337 7A5 18.56415
ILMN_2055271 A1BG 33.11682
ILMN_1736007 A1BG -3.966002
ILMN_2383229 A1CF ... 阅读全帖
m**********a
发帖数: 370
48
来自主题: Statistics版 - 请教一个proc glimmix的问题
想对一个数据建模,预测target跟 year county Site_ID Salinity water_temp 这5个
变量的关系。
response variable是target,另5个是exloantary variables。
现在确定 year是fixed variable,而 county Site_ID这2个地点变量是random
variable。
还有2个变量Salinity,和 water_temp。这2个变量是continous variable。
现在的问题是,这Salinity,和 water_temp 应该归为 fixed 还是random的变量?
proc glimmix data=XXX method=laplace plots=residualpanel(conditional
marginal);
class Year county Site_ID ;
model target = year Salinity water_temp /dist=lognormal link
=identity ;
... 阅读全帖
E**********e
发帖数: 1736
49
来自主题: DataSciences版 - SAS PROC VARCLUS 问题求救 (转载)
【 以下文字转载自 Statistics 讨论区 】
发信人: ExpressoLove (MoneyForNothing), 信区: Statistics
标 题: SAS PROC VARCLUS 问题求救
发信站: BBS 未名空间站 (Sat Jul 18 09:29:27 2015, 美东)
假设数据已经是correlation matrix, 有人知道怎么具体算R-squared with Own
Cluser and next closest吗? 就是那个自带的phiscal variable 例子。
从correlation matrix 怎么算 correlation R square啊。 我搜了google, 没有人给
出具体的例子怎么算? 有人可以帮忙吗?
弄明白这个问题是想理解 variable cluster是怎么工作原理,可以用来选有用的
variable, 而且这个跟PCA也有关。
l**********8
发帖数: 305
50
来自主题: Statistics版 - SAS macro Debug

************************************************************
上个完整的LOG, 谢谢大家了
****************************************************************
NOTE: PROCEDURE PRINTTO used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds

25
26 *-----------------------------------------------------;
27 %macro process(year,yr,file,first,numobs);
28
29 data cartemp;
30 set loc.carl&year.
31 (firsto... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)