Programming the statistical procedures from SAS

Why am I getting "non-est" in an lsmeans tables?

Accepted Solution Solved
Reply
New Contributor keh
New Contributor
Posts: 2
Accepted Solution

Why am I getting "non-est" in an lsmeans tables?

Hi

I'm running Proc Mixed, using a Random statement for repeated measures. Have a bunch of variables, so run each one separately using the same code. Most have run just fine, but 3 variables all from a second database are giving me "non-est" for the means. I've tried a bunch of random changes to no avail. Rather than this hit-or-miss process, can someone tell me what things cause non-estimable means? Thank you!


Accepted Solutions
Solution
‎07-06-2017 08:50 AM
Trusted Advisor
Posts: 2,114

Re: Why am I getting "non-est" in an lsmeans tables?

There are a number of possible causes.  A couple that I would look for:

is the new variable a linear combination of others in the data.  Sometimes that may be linear in just this dataset (akin to autocorrelation) or a design issue (like having pre, post, and delta variables in the model together).

one of your repeats may not have any variability in the predictor.

Doc Muhlbaier

Duke

View solution in original post


All Replies
Solution
‎07-06-2017 08:50 AM
Trusted Advisor
Posts: 2,114

Re: Why am I getting "non-est" in an lsmeans tables?

There are a number of possible causes.  A couple that I would look for:

is the new variable a linear combination of others in the data.  Sometimes that may be linear in just this dataset (akin to autocorrelation) or a design issue (like having pre, post, and delta variables in the model together).

one of your repeats may not have any variability in the predictor.

Doc Muhlbaier

Duke

New Contributor keh
New Contributor
Posts: 2

Re: Why am I getting "non-est" in an lsmeans tables?

Thank you both! I think I figured it out from your comments. My model was y = treatment trial day, but day essentially equals treatment in this database, whereas it didn't in the other one. I removed it and voila! Means!

K

Respected Advisor
Posts: 2,655

Re: Why am I getting "non-est" in an lsmeans tables?

Can you share the code you are using?  Besides the issues that Doc mentioned, I would be concerned about missing cells, such that the interaction term could be estimated, but main effects could not.  If this is the case, you may have to address everything using a means model.

Steve Denham

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 2979 views
  • 0 likes
  • 3 in conversation