BookmarkSubscribeRSS Feed
jescam05
Calcite | Level 5

Hi, I runed this invocation, and run very well, just I want to obtain the Tukey's results with literals and not like appear. 

data CEN; 
DO PG=1 to 2;
DO PCH= 1 to 4;
DO BLOQ=1 to 4;
INPUT Y@@;
COMPGPCH= PG*10+PCH;
output;
end;
end;
end;
DATALINES; 
9.93	10.58	9.94	10.18
10.75	9.71	10.53	10.26
.	.	.	.
10.52	10.36	10.35	10.16
12.29	12.06	12.06	11.88
12.00	12.55	12.82	12.52
12.52	11.92	11.98	11.73
12.09	11.88	11.83	11.96
;
proc mixed data=CEN method=reml; 
class pg pch bloq; 
model y= bloq pg bloq*pg pch pg*pch/ ddfm=satterth;
random bloq; 
lsmeans pg pch pg*pch/ adjust=tukey; 
run;  
1 REPLY 1
sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

As I've suggested in another of your threads:

 

 https://communities.sas.com/t5/SAS-Statistical-Procedures/LSMEANS-LINES-option-in-PROC-GLM/m-p/46694...

 

"you really, really need to read SAS® for Mixed Models, Second Edition"

 

In GLM, random effects are included in the MODEL statement. In MIXED, random effects are not included in MODEL; instead random effects are specified in RANDOM or REPEATED statements. Even if your model runs apparently well in MIXED, your specification is not correct, and neither are the results. Mixed models are complex, and you must devote effort to learning enough to apply them correctly.

 

 

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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