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).
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.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 989 views
  • 0 likes
  • 2 in conversation