由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - SAS question,thanks!
相关主题
SAS question: count non-missing value for different variables哪个SAS function可以读这样的variable
SAS 新手的一个弱智问题:如何DELETE 一个VECTOR 的MISSING VALUE(in IML)请教如何这样保存数据 SAS
请教做过Multiple Imputation 的牛牛们A SAS question
请教做过Multiple Imputation 的牛牛们请教SAS LABEL问题。
真心请教: data cleaningSAS question - baozi
在SAS里面如何进行数组操作?SAS question (紧急求助,在线等)
[合集] How to specify a variable as missingSAS question(ergent)
SAS里面怎么设置vectorask for help (urgent): A SAS question
相关话题的讨论汇总
话题: missing话题: sas话题: delete话题: want
进入Statistics版参与讨论
1 (共1页)
H**********1
发帖数: 3056
1
I want to select all the 40 variables from data set
but, I want to delete all the missing value for any of the variable.
how to do this?
I don't want to use 4O TIMES "if VAR1 IS NOT MISSING OR...."
THANKS!
H**********1
发帖数: 3056
2
I am working on PROC IML
FOR MEDIAN. However, how to deal the missing values in almost all of the
variables.
thanks
p*******r
发帖数: 1951
3
用个array
...
totalmissing = 0;
array countmissing(40) _all_;
do i=1 to 40;
if missing(countmissing(i)) = 1 then totalmissing + 1;
end;
if totalmissing > 0 then delete;
...


【在 H**********1 的大作中提到】
: I want to select all the 40 variables from data set
: but, I want to delete all the missing value for any of the variable.
: how to do this?
: I don't want to use 4O TIMES "if VAR1 IS NOT MISSING OR...."
: THANKS!

H**********1
发帖数: 3056
4
thanks, it was said the median function will ignore the missing value, but i
did get error due to the missing.
the array will delete the total column ?
thanks!

【在 p*******r 的大作中提到】
: 用个array
: ...
: totalmissing = 0;
: array countmissing(40) _all_;
: do i=1 to 40;
: if missing(countmissing(i)) = 1 then totalmissing + 1;
: end;
: if totalmissing > 0 then delete;
: ...
:

p*******r
发帖数: 1951
5
不是删column, 这个是把所有有missing value的row 都删除。

i

【在 H**********1 的大作中提到】
: thanks, it was said the median function will ignore the missing value, but i
: did get error due to the missing.
: the array will delete the total column ?
: thanks!

H**********1
发帖数: 3056
6
then, it will delete no-missing values of other variable, right?

【在 p*******r 的大作中提到】
: 不是删column, 这个是把所有有missing value的row 都删除。
:
: i

w*******n
发帖数: 469
7
if nmiss(of _numeric_) or cmiss( of _character_) then delete;
t*******t
发帖数: 633
8
这个我真要试试。
我之前一直是写macro来做imputation的

【在 w*******n 的大作中提到】
: if nmiss(of _numeric_) or cmiss( of _character_) then delete;
H**********1
发帖数: 3056
9
wow, this maybe the answer, thanks!

【在 w*******n 的大作中提到】
: if nmiss(of _numeric_) or cmiss( of _character_) then delete;
1 (共1页)
进入Statistics版参与讨论
相关主题
ask for help (urgent): A SAS question真心请教: data cleaning
弱问一个SAS里面求adjusted means的问题在SAS里面如何进行数组操作?
关于 Risk model[合集] How to specify a variable as missing
求助SAS CODE:如何同时对90个variables进行log transformation?SAS里面怎么设置vector
SAS question: count non-missing value for different variables哪个SAS function可以读这样的variable
SAS 新手的一个弱智问题:如何DELETE 一个VECTOR 的MISSING VALUE(in IML)请教如何这样保存数据 SAS
请教做过Multiple Imputation 的牛牛们A SAS question
请教做过Multiple Imputation 的牛牛们请教SAS LABEL问题。
相关话题的讨论汇总
话题: missing话题: sas话题: delete话题: want