BookmarkSubscribeRSS Feed
Beatrice
Calcite | Level 5

I have 2 missing values. when i have no missing values i dont have that problem.

how can i resolve it? 

 

proc mixed data=data;
class a b bloc
model y=a|b
random bloc bloc*b;
lsmeans a|b;
run;
 
thank you!
7 REPLIES 7
PaigeMiller
Diamond | Level 26

One of the most common reasons is that you don't have any data in one of the cells of the interaction. 

--
Paige Miller
Education
Obsidian | Level 7
@PaigeMiller, so is it good to leave out the interactions and just run the fixed effects only?
PaigeMiller
Diamond | Level 26

@Education wrote:
@PaigeMiller, so is it good to leave out the interactions and just run the fixed effects only?

This is such a vague question, divorced from any real application or data, that it is impossible to answer. 

 

Sometimes you should leave the interaction in the model, and other times you should remove the interaction. It depends on a lot of things.

 

If you want a more specific answer, provide details of what you are doing.

--
Paige Miller
Education
Obsidian | Level 7

I conducted a seasonal experiment over a period of 4 seasons from animals of different age, where within each season data was collected once a day for 5 consecutive days (so my fixed effects are: season (4 levels), age (4 levels) and days (5 levels). Sometimes some animals worked and sometimes they did not. when i run a model y= season|age|days  using the GLMM the lsmeans of some FE are non-est, but when i reduce the interactions everything is fine. Can you help please.

 

Thank you.

Education

PaigeMiller
Diamond | Level 26

If there are some cells where there is no data, then you cannot really estimate interactions.

 

Is that the situation you have?

--
Paige Miller
Education
Obsidian | Level 7

Yes, thats exactly my situation and i do not feel like it is a good idea to drop some obs in order to remain with equal or no missing obs in some cells. There should be a model to run rather complicated to my knowledge for now. i think i need to get a book or do you have any articles that you can refer me to?

 

Regards,

 

Education

PaigeMiller
Diamond | Level 26

I am not aware of a specific book or article that deals with what to do in the presence of a cell with zero data.

 

i do not feel like it is a good idea to drop some obs in order to remain with equal or no missing obs in some cells.

 

As far as I know, those are your choices. It isn't really a matter of it being a "good idea" or not, it is a limitation of your data.

--
Paige Miller

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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