BookmarkSubscribeRSS Feed
diwang
Calcite | Level 5

 

data Fitness1;
   input Oxygen RunTime  @@;
   datalines;
44.609   .
54.297   .     
49.874   .   
  .      .    
39.442   .   
50.541   .   
44.754   .     

;
run;

proc mi data=Fitness1 seed=1518971 simple nimpute=0;
   em itprint outem=outem;
   var Oxygen RunTime;
run;

 

 

here log says: WARNING: All observations are missing for variable RunTime. This variable will be excluded from the analysis.

 

I want to ask if a variable is all missing, the EM algorithm can't estimate the parameter? Why?

 

 

2 REPLIES 2
ballardw
Super User

@diwang wrote:

 

data Fitness1;
   input Oxygen RunTime  @@;
   datalines;
44.609   .
54.297   .     
49.874   .   
  .      .    
39.442   .   
50.541   .   
44.754   .     

;
run;

proc mi data=Fitness1 seed=1518971 simple nimpute=0;
   em itprint outem=outem;
   var Oxygen RunTime;
run;

 

 

here log says: WARNING: All observations are missing for variable RunTime. This variable will be excluded from the analysis.

 

I want to ask if a variable is all missing, the EM algorithm can't estimate the parameter? Why?

 

 


What do I have my pocket? (to quote a famous hobbit)

 

The procedure is attempting to make a "reasonable" estimate to replace missing values using information from records with non-missing values to build the rules. If there are no non-missing values then their is nothing to build a rule from.

diwang
Calcite | Level 5

Thanks for your answer.

 

But the EM algorithm can estimate the parameter with variables unobserved. Such as the Oxygen is all observed and RunTime  is all unobserved. Here assume (Oxygen, RunTime ) ~ Normal (mu,sigma) ,and we use EM algorithm  can estimate (mu,sigma). Is this wrong ?

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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