BookmarkSubscribeRSS Feed
PK247
Calcite | Level 5

Hi,

Is there somebody who can explain how %mkt merge (choice modelling) handles missing data? It seems that missing data are replaced by zero, indicating that the option is "not choosen", however there is an important difference between "not chosen" and "missing". I would prefer to omit observations where the "choice" is missing, is this possible whithin %mkt merge?

Thank you in advance!

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

I have no idea what this macro is or where it comes from, are you sure you posted in the right forum?  If you want to be sure that missing data is not used in this macro, why not just drop it from the dataset *before* calling that macro e.g.:

data work.inter;
  set have (where=(your_variable ne .));
run;

%mktmerge (dataset=inter...);
PK247
Calcite | Level 5
Hi,

This macro is used in choice design and analysis. It is not possible to drop the missing observations before, the macro is used to merge the choice design and the data. In the data itself, single missing observations can not be removed as they are part of a choice set.


Reeza
Super User

Have you checked the documentation?

https://support.sas.com/techsup/technote/mr2010f.pdf

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 3 replies
  • 1194 views
  • 0 likes
  • 3 in conversation