BookmarkSubscribeRSS Feed
7 REPLIES 7
Ksharp
Super User
That means variable '_bin_' have the same value in all the obs (under that special BY group).
dsam
Fluorite | Level 6

How can i resolve this issue?

Ksharp
Super User
Make your variable '_bin_' have different values ,otherwise it is nonsense for PROC MIANAZE or PROC MI .
dsam
Fluorite | Level 6
How can I make it different value ? the problem is code is working fine generating different values for all other visits but only for one visit, it is generating same values. How can i obtain different values for this particular value?
dsam
Fluorite | Level 6

Below is the code i used to generate _bin_ values which is generating same value for a one specific visit. 

 

 

proc freq data= adeffimp01 ;
      by _imputation_ &trt. &trt.n avisitn avisit;
    tables aval/ binomial;
    exact binomial;
    output out = i_bin bin;
  run; 

Ksharp
Super User
And I think you should use only one BY :
by _imputation_ &trt. &trt.n avisitn avisit;
-->
by _imputation_ ;
since it presents the imputing ID .

Otherwise, you should include all these variables in BY statement of PROC MI .
Ksharp
Super User
Try change your PROC MI code, use other imputed method like FCS , MONOTINC,LOGISTIC ......... to make variable have different value.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 199 views
  • 0 likes
  • 2 in conversation