由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sas base question
相关主题
Sample Size 请教[合集] 问个R里面diff函数的问题?
SAS Code question? How to understand this output?R: how to refer function arguments within function?
问个SAS regression问题R xlsReadWrite package
could anybody please help check why my codes don't work? Thanks!有人对doomsday argument有研究吗?
再一次请教apply function 在R中的应用【急】一个基本的R的问题,求助。谢谢!大包子答谢
round问题请教call execute
R 问题急求R问题
[合集] how to calculate chisq value in R[R] How to apply "apply" here?
相关话题的讨论汇总
话题: run话题: data话题: sas话题: round话题: proc
进入Statistics版参与讨论
1 (共1页)
h****9
发帖数: 26
1
data a;
input e;
cards;
-32.66
;
run;
proc print data=a;run;
data b;
set a;
e=round(e, .2);
run;
proc print data=b;run;
结果是-32.6
如果e=round(e, .1);
结果是-32.7
为什么呢?
l********e
发帖数: 193
2
-32.7 is understandable, but for -32.6... why not -32.66

【在 h****9 的大作中提到】
: data a;
: input e;
: cards;
: -32.66
: ;
: run;
: proc print data=a;run;
: data b;
: set a;
: e=round(e, .2);

h****9
发帖数: 26
3
this is the result when I run these procedures in SAS.
I couldn't figure it out.
Y**********8
发帖数: 67
4
是length的问题?
就是说,variable的length定义了4位,所以最后一位给去掉了
我猜想的
呵呵

【在 h****9 的大作中提到】
: this is the result when I run these procedures in SAS.
: I couldn't figure it out.

D******n
发帖数: 2836
5
u guys just too lazy to check the documentation
"Basic Concepts
The ROUND function rounds the first argument to a value that is very close t
o a multiple of the second argument. The results might not be an exact multi
ple of the second argument. "

【在 h****9 的大作中提到】
: data a;
: input e;
: cards;
: -32.66
: ;
: run;
: proc print data=a;run;
: data b;
: set a;
: e=round(e, .2);

1 (共1页)
进入Statistics版参与讨论
相关主题
[R] How to apply "apply" here?再一次请教apply function 在R中的应用
问一个关于R 的问题round问题
pass arguments by reference in RR 问题
请教一个R的问题(function)[合集] how to calculate chisq value in R
Sample Size 请教[合集] 问个R里面diff函数的问题?
SAS Code question? How to understand this output?R: how to refer function arguments within function?
问个SAS regression问题R xlsReadWrite package
could anybody please help check why my codes don't work? Thanks!有人对doomsday argument有研究吗?
相关话题的讨论汇总
话题: run话题: data话题: sas话题: round话题: proc