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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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