Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
rmn0008
Fluorite | Level 6

Hello. 

I'm having trouble with the estimates of LS-means from PROC GLIMMIX. Why are they negative?

 

PROC GLIMMIX data = COTreniform_1 plots = residualpanel;
class CULTIVAR NEMATICIDE NEMATODE REP;
model KG_HA = NEMATICIDE|NEMATODE / ddfm = satterth;
random YEAR|CULTIVAR;
lsmeans NEMATICIDE|NEMATODE / cl lines adjust = Tukey alpha = 0.05;
run;

2 REPLIES 2
PaigeMiller
Diamond | Level 26

They are negative because the fitted model says that the estimated least squares mean KG_HA for at least one of the levels of NEMATICIDE is negative (or similarly for estimated mean KG_HA for at least one of the levels of NEMATODE)

 

Why shouldn't they be negative?

--
Paige Miller
rmn0008
Fluorite | Level 6

PaigeMiller, 

Thank you for your input but I think that I found out what was the problem. 

 

I was not counting YEAR in the class statement. Now it's working!

 

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