
10-09-2023
mohamed_zaki
Barite | Level 11
Member since
08-11-2014
- 490 Posts
- 85 Likes Given
- 60 Solutions
- 194 Likes Received
This widget could not be displayed.
-
Latest posts by mohamed_zaki
Subject Views Posted 1727 08-26-2016 08:39 PM 1961 08-26-2016 08:36 PM 2415 08-25-2016 06:35 PM 1390 08-24-2016 11:57 AM 4841 08-07-2016 07:20 PM 1605 04-07-2016 08:52 PM 2464 03-20-2016 02:32 AM 5701 03-01-2016 06:19 AM 3014 02-29-2016 09:13 AM 7175 02-28-2016 05:38 PM -
Activity Feed for mohamed_zaki
- Got a Like for Re: Multiple conditions in one if statement. 11-24-2024 10:53 AM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 10-28-2023 05:00 PM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 03-17-2022 03:19 PM
- Got a Like for Re: Is there a procedure to check whether missing data are missing completely at random or missing at random?. 09-21-2021 06:33 PM
- Got a Like for Re: Multiple conditions in one if statement. 11-28-2020 01:39 AM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 08-20-2020 01:15 PM
- Got a Like for Re: functions. 10-29-2019 08:18 AM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 08-28-2019 11:06 PM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 05-14-2019 05:44 AM
- Got a Like for Re: Filling gap in a panel data. 04-28-2019 07:48 AM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 03-01-2019 02:11 PM
- Got a Like for Re: Sum Statement. 02-14-2019 04:57 PM
- Got a Like for Re: PROC Export: Replacing sheet error. 11-22-2018 09:04 AM
- Got a Like for Re: proc glm: class vs. absorb. 06-18-2018 09:57 PM
- Got a Like for Re: SAS Miner: export train cluster results. 06-18-2018 03:02 AM
- Got a Like for Re: proc glm: class vs. absorb. 10-29-2017 10:35 PM
- Got a Like for Re: Grand total in proc report not working. 10-16-2017 04:54 PM
- Got a Like for Re: You can only BREAK on GROUPing or ORDERing variables when doing PROC REPORT. 09-18-2017 11:42 AM
- Got a Like for Re: Find Week within a Month. 09-13-2017 09:03 AM
- Got a Like for Re: How to assign a unique ID number to each group of identical values in a column?. 05-28-2017 11:56 AM
-
Posts I Liked
Subject Likes Author Latest Post 3 2 1 3 3 -
My Liked Posts
Subject Likes Posted 1 01-22-2016 05:32 AM 1 09-16-2014 10:27 AM 1 02-25-2016 01:09 PM 1 12-12-2015 09:41 AM 1 12-13-2015 07:32 PM
09-29-2014
10:38 AM
ijn=input(ij, 2.0);
... View more
09-29-2014
05:00 AM
use input statment like: num = input('56',6.); Check: Converting a Character Variable to a Numeric Variable
... View more
09-29-2014
04:39 AM
I am running it in your sample data and it give me the desired output. Without giving C across all observation. Even your data sample in the post is not starting with C and there is no way the code will give C for all the observation except for case when your data starting with C and not having V in any observation! the code is simple and you can trace it easily? If you could share your entire code or upload the file you are reading from the data. in order to help you further.
... View more
09-29-2014
03:25 AM
Solution ---- (Repost): data want (drop=newV ); retain newV ' '; set have; if _n_=1 and STATUS = ' ' then Do ; STATUS = 'V'; newV=STATUS; End; Else if STATUS in ('C','V') then newV=STATUS; Else if STATUS=' ' then STATUS=newV; run; Could you run this code on the data you have ? And let us know how it is difference from what you want. keeping in mind that the 'O' values for the STATUS is typo as you clarified in your previous post.
... View more
09-28-2014
03:34 PM
i think his last post contain typo it should be TABLE C: id source _a _b number 1 a re 123 . 2 b ba 53 14 3 a ag 679 . 3 b 45 78 2 as based on the original post.
... View more
09-28-2014
07:23 AM
You should be aware of : That different problems may arises when MERGE, IF-THEN statement used within one data step. Kindly check: Be Careful When You Merge SAS Datasets! So use two data step instead of one, as one work around for your case. mohamed zaki
... View more
09-28-2014
06:17 AM
the previous one to see the change but the final code should be like the following" data newC (drop=newV ); retain newV ' '; set new; if _n_=1 and STATUS = ' ' then Do ; STATUS = 'V'; newV=STATUS; End; Else if STATUS in ('C','V') then newV=STATUS; Else if STATUS=' ' then STATUS=newV; run;
... View more
09-28-2014
06:00 AM
Check this *** Not tested Data new ; infile datalines dlm=','; input STATUS $; datalines; C, C, , V, V, , , V, , C, , , ; run; data newC; retain newV ' '; set new; if _n_=1 and STATUS = ' ' then Do ; *STATUS = 'V'; newV='V'; End; Else if STATUS in ('C','V') then newV=STATUS; *Else if STATUS=' ' then STATUS=newV; run;
... View more
09-27-2014
11:20 AM
3 Likes
When i checked his paper i did not find any reference to the code " A Rake-Trim SAS® Macro and Its Uses at Westat ", you may want to ask him. You can find his mail at the end of the paper. Although i think it is in the property of Westat
... View more
09-26-2014
02:34 PM
could you please clarify what you want to do more? with example of data even with three observation
... View more
09-26-2014
09:23 AM
3 Likes
What is your version of EM ? I have found other people to refer to the lack of the cross validation in EM with neural network, so they repeat the test several time with different data partition seeds and taking the average. Check this: http://www.kms.pwr.wroc.pl/staff/trawinski/wp-content/uploads/2013/09/2009-Comparative-Analysis-of-Neural-Network-Models1.pdf Hope other to tell us if that possible.
... View more
09-25-2014
06:02 PM
Although i think your code is typo but this mean that you specify that your data is nested check this for more clarification http://www.thejuliagroup.com/documents/procmixed1.pdf
... View more
09-25-2014
04:54 PM
use nodupkey with sort while you keep only data that matter that could help you. data test ; input specie $ ID Gender $ Biopsy_letter $ Step; cards; G 122 M A 1 G 122 M A 2 G 122 M A 3 G 122 M A 4 G 132 F A 1 G 132 F A 2 G 132 F A 3 G 132 F A 4 S 546 F A 1 S 546 F A 2 S 546 F A 3 S 546 F A 4 S 546 F B 1 S 546 F B 2 S 546 F B 3 S 546 F B 4 ; run; proc sort data=test(keep=specie ID Gender) out=new nodupkey ; by specie ID Gender ; run ; proc freq ; tables specie*gender ; run ;
... View more
09-25-2014
08:26 AM
If your week data set is only incremented integer you can use this also without SQL: data test1; input x y$; datalines; 23 A 23 B 24 A 24 B ; data all; set test1; do week = 1 to 5 by 1; output; end; run; proc sort data=all; by week; run;
... View more
09-25-2014
07:10 AM
Could you provide sample data, or describe your question more. What do you mean by "I want to retain the value in next week"?
... View more
- « Previous
- Next »