l*********s 发帖数: 5409 | 1 many procedures have output option; or use ods instead. |
|
T*******I 发帖数: 5138 | 2 这是一个原始工作档案,记录了你的工作日程和结果,理论上不可随意编辑.当然,你还
是可以用copy+paste到word或任何其它文档编辑器进行编辑,但如果你的老板要求你存
储原始的sas output结果,你最好不要随意编辑,除非你是为了节省纸张的缘故。 |
|
b**********i 发帖数: 1059 | 3 /* ids and time points */
data temp_id;
ndat = 1;
id = 1;
time = 1;
do while (ndat LE &ndats);
do while (id LE &nobs);
do while (time LE &niobs);
output temp_id;
time + 1;
end;
id + 1;
end;
ndat + 1;
end;
run;
proc print data = temp_id;
run;
用下面这个就没有问题
/* ids and time points */
data temp_id;
do ndat = 1 to &ndats;
do id= 1 to &nobs;
do time = 1 to &niobs;
|
|
b*******r 发帖数: 152 | 4 'coz you put the 'output' stmt within the most inner loop. it only gets
executed in THAT loop. |
|
b******e 发帖数: 539 | 5 yeah, you need an output statement for every do while loop, and it's more
complicated than that.
the second approach is better. |
|
o****o 发帖数: 8077 | 6 should be like this, note the arrows:
/* ids and time points */
data temp_id;
ndat = 1;
id = 1;
time = 1;
do while (ndat LE &ndats);
do while (id LE &nobs);
do while (time LE &niobs);
output temp_id;
time + 1;
end;
id + 1; time=1; /*<--------*/
end;
ndat + 1; id=1; /*<---------*/
end;
run; |
|
h******e 发帖数: 1791 | 7 比如sas output里有一个table,如何将该table读入,生成一个sas dataset?谢谢。 |
|
h******e 发帖数: 1791 | 8 我的意思是sas output里已经有一个table了,要把它读进来生成sas dataset。 |
|
c******n 发帖数: 380 | 9 还是不太明白,具体用什么proc,要output什么table? |
|
|
h******e 发帖数: 1791 | 11 比如,已经用proc report 生成了一个table,不用ods的话,这个table是在sas
output这个窗口中的。那么如何把sas 窗口中的这个table 重新读入到sas中去,生成
一个新的dataset,这个dataset只有一个variable,原table中的每一行在这个新的
dataset里是一个observation。 |
|
h******e 发帖数: 1791 | 12 假设如下table已经输出到了sas output窗口里:
Table 1
Study XXXX
var1 var2 var3 .................................
... ... ... .................................
... ... ... ..................................
现在需要加上总页码生成以下table:
Table 1
1 of 3 Study XXXX
var1 var2 var3 .................................
... ... ... .................................
... ... ... ..................................
其思想是将第一个table作为只有一个变量的sas dataset重新读入,然后计算study出现的次数得到总页码。加入总页码后再输出为文本得到第二个table。
一般的做法是第一个tabl |
|
c******n 发帖数: 380 | 13
你就是想要一个带页码的table output成文本出来?在dataset里加个页码的variable
不就行了 |
|
m**********n 发帖数: 34 | 14 Hope it helps.
You need to use PROC PRINTTO before PROC REPORT,
then put your PROC REPORT code as it is, followed by PROC PRINTTO.
After that is done, you use DATA step to read in this OUTFILE,which would be
your original OUTPUT file if you only use PROC REPORT.
Let me know if you have any questions.
proc printto new print=outfile; run;
PROC REPORT DATA=final_date NOWD HEADLINE HEADSKIP MISSING SPLIT='|' SPACING
=1;
COLUMN ("| | MY TITLE HERE |With ALL Available Sites | |-- "
|
|
M*******g 发帖数: 38 | 15 For the text output, you might only need to do copy+paste in exporting. For
graphs, you may want to save each graph as a file and insert them into a MS
office document. |
|
n******0 发帖数: 298 | 16 I am trying to output a table from SAS to Word. This is the code I wrote:
ods listing close;
ods rtf file = "Z:\univ.rtf" ;
proc report data = univ nowd split = '*';
run;
ods rtf close;
ods listing;
The table I got looks like this:
Variable format HR
________________________
Age <=45 1.00
________________________
46-60 0.65
________________________
>60 0.81
________________________
Stage II 1.00
_________________________
III ... 阅读全帖 |
|
j*z 发帖数: 620 | 17 谢谢你的答复!我大概知道你的意思,但是我不太会用macro,能不能在具体介绍一下
啊?
例如
proc mean data=x;
var aa;
output out=a mean_aa=mean;
......
随后如何把你介绍的方法用上?
我实在是菜鸟,还请你多指教,谢谢! |
|
A*******s 发帖数: 3942 | 18 proc printto print="./output.lst";
run; |
|
s*****p 发帖数: 299 | 19 Y X
Y 1.00000 0.20725
Y 0.1622
X 0.20725 1.00000
X 0.1622
请教这个SAS OUTPUT怎么理解啊?我是用了PROC CORR VAR X Y
CORR BETWEEN X Y到底是 0.20725还是0.1622
问题比较白痴,但我是真的不明白,大家不要砸我啊 |
|
c*****r 发帖数: 2608 | 20 想看 random effects,譬如time 和 int
用什么code 可以 output 出来
多谢 |
|
c******d 发帖数: 98 | 21 i think he needs the following:
keep var1 var2 var3;
* var is the variable you want to keep in output |
|
h******3 发帖数: 190 | 22 I found the following online, but realize "loglogs=logh" that is supposed to
give log cumulative hazard output does not work...
"proc phreg data='c:\alda\rearrest' noprint;
strata personal;
model months*censor(1)= /ties=efron;
baseline out=strata covariates=null logsurv=lsurv loglogs=logh /method=pl
nomean;
run;
"
??
thanks for help~ |
|
w*******9 发帖数: 1433 | 23 Right. An additional dot to end the macro reference. But this method only
gives me the last plot. The previous plots have not been outputted. |
|
p********1 发帖数: 1011 | 24 一共6个independent variables。从这个output上看,哪些variables是好的
predictors?
开始的那些note“!= 0 predicts failure perfectly”
是什么意思? 怎么解决?
logistic y i.var1 i.var2 i.var3 i.expect i.pwar i.open
note: 1.var1 != 0 predicts failure perfectly
1.var1 dropped and 14539 obs not used
note: 2.var1 != 0 predicts failure perfectly
2.var1 dropped and 4903 obs not used
note: 4.var2 != 0 predicts failure perfectly
4.var2 dropped and 96 obs not used
note: 4.var3 != 0 predicts failure perfectly
4.var3 dro... 阅读全帖 |
|
D*G 发帖数: 471 | 25 不太熟悉spss的output。。 我觉得你需要先解决complete separation的问题再看结果。 |
|
p********1 发帖数: 1011 | 26 这是stata的output,不是spss的。
我的问题还是:当sample size大的时候,到底是看哪个参数:odds ratio, p,
confidence interval?
分别怎么看(eg. cutoff)?
果。 |
|
w*******n 发帖数: 469 | 27 This output is obviously different. Have you run the coding?
the |
|
w*******n 发帖数: 469 | 28 Is there any logic for the output here? Hard to understand.
But I accept your interpretation. |
|
q**t 发帖数: 36 | 29 Hi All,
I am using lme in R to estimate standard error the random effect.
The output of the StdDev of lme is the SE of the random effects?
lme(y~1, random = ~1| s/p/k )
Random effects:
Formula: ~1 | s
(Intercept)
StdDev: 0.02100801
Formula: ~1 | p %in% s
(Intercept)
StdDev: 0.001980935
Formula: ~1 | k %in% p %in% s
(Intercept) Residual
StdDev: 0.01581869 0.006076241
Number of Observations: 240
Number of Groups:
s
5
p %in% s
... 阅读全帖 |
|
d******9 发帖数: 404 | 30 Below code may be not a perfect method, but it works.
Use the SASHELP Class data set to create a sample data set.
data A;
retain X Name Y Sex Z Age Height Weight;
set sashelp.class;
if ranuni(7546)<0.3 then X='Yes';
else if ranuni(7546)<0.5 then X='No';
else X=' ';
if ranuni(32681)<0.4 then Y='Yes';
else if ranuni(32681)<0.8 then Y='No';
else Y='***';
if ranuni(510)<0.6 then Z='Yes';
else if ranuni(33201)<0.8 then Z='No';
else Z='N/A';
run;
*******************************
Use array, find all the... 阅读全帖 |
|
c*******r 发帖数: 323 | 31 不是用output = 那个,要在result window 里那个table
我想做的是对任意一个table列出所有variables的min max mean n nmiss std |
|
|
|
w*******y 发帖数: 60932 | 34 Satellite L640-BT2N13 Laptop:
http://www.toshibadirect.com/td/b2c/cdetland.to?poid=495855
base laptop includes:
* IntelPentiumProcessor P6100
* Genuine Windows7 Home Premium
* 4GB memory
* 320GB hard drive
* IntelIntegrated Graphics
* DVD SuperMulti drive
* 1366x768 native screen resolution
* HDMI output
* 802.11n wireless
* Integrated webcam
|
|
|
d**********o 发帖数: 1321 | 36 简化数据
261个test文件:
完全正确的测试文件117个,占44.8%;
完全没做的测试文件 19个,占 7.3%;
其余半对的不对的,我自己也没时间去数
就让同专业的小伙伴们帮忙来数、来作鉴定、指导我吧。
compiler框架搭起来,多少也该给些分的吧~~
我不认为难,但我真的是没有足够的时间,实在是写不完这牛毛一样多的测试~~ *_^
上一贴最后总结部分重贴如下(不同专业的读者可以完全忽略上一贴):
a00 (Output OK) a00 (Output OK)
a001 (Output OK) a001 (Output OK)
a002 (Output OK) a002 (Output OK)
a009 (Output OK) a009 (Output OK)
a01 (Output OK) ... 阅读全帖 |
|
d**********o 发帖数: 1321 | 37 简化数据
261个test文件:
完全正确的测试文件117个,占44.8%;
完全没做的测试文件 19个,占 7.3%;
其余半对的不对的,我自己也没时间去数
就让同专业的小伙伴们帮忙来数、来作鉴定、指导我吧。
compiler框架搭起来,多少也该给些分的吧~~
我不认为难,但我真的是没有足够的时间,实在是写不完这牛毛一样多的测试~~ *_^
上一贴最后总结部分重贴如下(不同专业的读者可以完全忽略上一贴):
a00 (Output OK) a00 (Output OK)
a001 (Output OK) a001 (Output OK)
a002 (Output OK) a002 (Output OK)
a009 (Output OK) a009 (Output OK)
a01 (Output OK) ... 阅读全帖 |
|
c*********s 发帖数: 63 | 38 终于弄好了。把下面的存成.bst文件,和Tex文件放在同一个文件夹就可以了。
%%
%% This is file `cellnew.bst',
%% generated with the docstrip utility, by HJ, 03/03/2013.
%%
%% The original source files were:
%%
%% merlin.mbs (with options: `ay,nat,nm-rvvc,nmlm,x10,x0,m10,m0,mcite,mct-1
,mct-x2,keyxyr,blkyear,dt-beg,yr-par,note-yr,atit-u,jttl-rm,thtit-a,vol-it,
vnum-x,volp-com,pp-last,num-xser,jnm-x,btit-rm,bt-rm,add-pub,pub-par,pre-pub
,edby,edbyy,blk-tit,ppx,ed,abr,ednx,xedn,jabr,url,url-blk,em-it,nfss,')
%% ----------------------... 阅读全帖 |
|
c*********s 发帖数: 63 | 39 终于弄好了。把下面的存成.bst文件,和Tex文件放在同一个文件夹就可以了。
%%
%% This is file `cellnew.bst',
%% generated with the docstrip utility, by HJ, 03/03/2013.
%%
%% The original source files were:
%%
%% merlin.mbs (with options: `ay,nat,nm-rvvc,nmlm,x10,x0,m10,m0,mcite,mct-1
,mct-x2,keyxyr,blkyear,dt-beg,yr-par,note-yr,atit-u,jttl-rm,thtit-a,vol-it,
vnum-x,volp-com,pp-last,num-xser,jnm-x,btit-rm,bt-rm,add-pub,pub-par,pre-pub
,edby,edbyy,blk-tit,ppx,ed,abr,ednx,xedn,jabr,url,url-blk,em-it,nfss,')
%% ----------------------... 阅读全帖 |
|
f**d 发帖数: 768 | 40 这是一本计算神经科学的优秀著作,全文拷贝这里(图和公式缺),有兴趣的同学可以
阅读
如需要,我可以分享PDF文件(--仅供个人学习,无商业用途)
From Computer to Brain
William W. Lytton
From Computer to Brain
Foundations of Computational Neuroscience
Springer
William W. Lytton, M.D.
Associate Professor, State University of New York, Downstato, Brooklyn, NY
Visiting Associate Professor, University of Wisconsin, Madison
Visiting Associate Professor, Polytechnic University, Brooklyn, NY
Staff Neurologist., Kings County Hospital, Brooklyn, NY
In From Computer to Brain: ... 阅读全帖 |
|
d**********o 发帖数: 1321 | 41 最终版本的compiler测试结果
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
scanType.h
makefile
symtab.h
symtab.cpp
emitCode.h
emitCode.cpp
20131214164956-huang-CS445-F13-A5.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
emitCode.cpp: ASCII C++ program text
emitCode.h: ... 阅读全帖 |
|
d**********o 发帖数: 1321 | 42 最终版本的compiler测试结果
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
scanType.h
makefile
symtab.h
symtab.cpp
emitCode.h
emitCode.cpp
20131214164956-huang-CS445-F13-A5.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
emitCode.cpp: ASCII C++ program text
emitCode.h: ... 阅读全帖 |
|
s**********8 发帖数: 25265 | 43 Design Controls
INTRODUCTION
Coverage
QUALITY SYSTEM
Personnel Training
DESIGN AND DEVELOPMENT PLANNING
Interface
Structure of Plans
DESIGN INPUT
Input Checklists
DESIGN REVIEW
Combination Devices
Preparation For Reviews
Why Design Reviews
Types Of Design Review Meetings
Design Review Requirements
End Of Initial Design
DESIGN OUTPUT
Documenting Design Output
Acceptance Criteria
Design Output Approval
DESIGN VERIFICATION AND VA... 阅读全帖 |
|
d**********o 发帖数: 279 | 44 没想出怎么用stack, 大牛讲解一下?
"""
Write a iterator to iterate a nested array.
For example, for given array: [1, 2, [3, [4, 5], [6, 7], 8], 9, 10]
call iterator.next() 10 times should return 1,2,3,4,5,6,7,8,9,10.
"""
def traverse(l):
if not l:
return
for i in l:
if isinstance(i, list):
traverse(i)
else:
print i
class NestIterator(object):
def __init__(self, l):
self.l = l
self.cur = -1
self.iterator = None
def next(self):
if self.iterator and s... 阅读全帖 |
|
w*******l 发帖数: 14 | 45 code assessment是我自己面的。
aptitude paper是从老印论坛扒的。
PROBLEM ONE: TRAINS
Problem: The local commuter railroad services a number of towns in Kiwiland
. Because of monetary concerns, all of the tracks are 'one-way.' That is,
a route from Kaitaia to Invercargill does not imply the existence of a route
from Invercargill to Kaitaia. In fact, even if both of these routes do
happen to exist, they are distinct and are not necessarily the same distance!
The purpose of this problem is to help the railroad p... 阅读全帖 |
|
m*********a 发帖数: 3299 | 46 第一题是用递归么?
#include
#include
typedef struct output_string{
char string[20];
struct output_string *next; }output_string;
void stringCopy(char *str_source,char *str_dest,int no_char){
while (no_char--) *str_dest++=*str_source++;
}
void allString(char *str,output_string *output,int char_position){
output_string *tmp;
while ((*str!='?')&(*str!='\0'))
output->string[char_position++]=*str++;
if (*str=='\0') {output->string[char_position]='\0';return;... 阅读全帖 |
|
D**********s 发帖数: 3139 | 47 音量控制对音质的影响,以前有一篇note写得不错,我找了半天才找到,其实还有用变
压器的方法,不过dac这块最保真的方法就是保持位深和标准输出电平,音量控制交给
前级和功放去管就好了,终究绕不过模拟放大这一关的。
Volume Control Technologies
Newsletter Edition:
July 2009 Issue
With the introduction of Benchmark’s HDR-VC™ (High Dynamic Range
Volume Control), many audio enthusiasts are taking another look at volume
control methods. What are the differences between the different volume
control topologies? Is one sonically superior, and why?
The important qualities to consider with respect to volum... 阅读全帖 |
|
R****a 发帖数: 6858 | 48
中国工业产值超美国26% 取代其成头号制造国
2013年09月04日10:49 来源:国际金融报 手机看新闻
打印网摘纠错商城分享推荐 字号
原标题:中国工业产值超美国26% 取代其成头号制造国
2007年6月以来工业产值比较(%)
●一个世纪以来,美国第一次失去了世界头号工业制造国的地位,让位给中国
●全球金融危机以来,中国工业产值翻了一番,而美国没有增长
●现在,中国的工业产值是美国的126%
目前在世的人们,一生从未经历过这样一件事——美国竟然不是世界工业的领头羊
。世界最新数据表明,中国已经取代美国,成为世界头号工业生产国,而且,是“远远
”超过。这结束了美国长达一个世纪在该领域的领袖历史,因此,清晰记录这其中究竟
发生了什么,并仔细分析它代表了中国经济发展的含义,具有重大意义。
联合国日前发布的数据显示,在金融危机前的2007年,中国工业生产总值只有美国
的62%,而到了2011年,中国工业生产总值就已经是美国的120%——2011年,中国工业
生产总值达2.9万亿美元,美国为2.4万亿美元。
联合国2012年数据目前尚未发布,所以笔者... 阅读全帖 |
|
p*****2 发帖数: 21240 | 49 练了练。
static int Convert(string s)
{
int output=0;
for (int i = 0; i < s.Length; i++)
{
output *= 2;
if (s[i] == '1')
output += 1;
}
return output;
}
static string[] GrayCode(int n)
{
if (n <= 0)
throw new ArgumentNullException();
string[] output = new string[(int)Math.Pow(2, n)];
if (n == 1)
... 阅读全帖 |
|
x*******5 发帖数: 152 | 50 请教各位大牛一个问题:
Problem: Output all subsets of size of m from an array
Solution Hints: String permutation Problem variant
Python Codes:
def Subset_m(v,l,m,output):
"Find all subsets of an array v of size m, need fixing"
if l==m:
print output
return
for i in range(l,len(v)):
output[l]=v[i]
Subset_m(v,l+1,m,output)
C++ Codes:
/*Description: output all the subset of size m
Input:vector v, int m,int l, vector& output
Output: void
*/
... 阅读全帖 |
|