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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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