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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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