BookmarkSubscribeRSS Feed
HuangR89
Calcite | Level 5

Hello,

 

I want to run a MI under MNAR framework using monotone regression model. as for the MNAR, I want to impute all the missing values based on observations from TRT='3' group using the NCMV method with K=2.

Attached is my test code. However, it cannot work out, with ERROR ' if the sepcified identification variable W12 in the MODELOBS= option is in the VAR list, it must be completed observed'.

Can anyone help to explain this error or sovle this error? thanks.

Does it work to specify 2 modelobs options like this?

 

1 REPLY 1
SAS_Rob
SAS Employee

If you are using a variable as an indentification variable then it cannot also be one of the variables you are imputing.  If you remove w12 from both the VAR and MNAR statements then it should run without issue.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 992 views
  • 0 likes
  • 2 in conversation