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.

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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