Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

SAS problem. For WR 1 , visit the SAS/STAT(R) 9.2 User\'s Guide webpage at https

ID: 3362239 • Letter: S

Question

SAS problem.

For WR 1 , visit the SAS/STAT(R) 9.2 User's Guide webpage at

https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm

WR 1) Using the contents panel on the left (the search field is unreliable), find the syntax pages for the GLM procedure and answer the following questions.

            - What are all the multiple comparison ADJUSTments available in an LSMEANS statement?

            - What option do you use to NOT include the results of LSMEANS in the output?

            - What option do you use to include a t-test to test each hypothesis that there is no difference between each pair of means?

Contents Topics About Introductions Shared Concepts and Topics Using the Output Delivery System Statistical Graphics Using ODS Procedures Previous Page | Next Page The ACEC LUS Procedure The ANOVA Procedure The BOXPLOT Procedure The CALIS Procedure The CANCORR Procedure The CAN DISC Procedure The CATMOD Procedure The CLUSTER Procedure The COR RESP Procedure The DISCRIM Procedure The DISTANCE Procedure The FACTOR Procedure The FASTCLUS Procedure The FREQ Procedure The GAM Procedure The GENMOD Procedure The GLIMMIX Procedure The GLM Procedure he GLM Procedure view: GLM Procedure PROC GLM Features PROC GLM Contrasted with Other SAS Proced . Over . Getting Started: G LM Procedure PROC GLM for Unbalanced ANOVA PROC GLM for Quadratic Least Squares Regre . Syntax: GLM Procedure .PROC GLM Statement ABSORB Statement BY Statement . CLASS Statement .CONTRAST Statement ESTIMATE Statement FREQ Statement ID Statement LSMEANS Statement MANOVA Statement MEANS Statement MODEL Statement Overview: GLM Procedure -PROC GLM Features -PROC GLM Contrasted with Other SAS Getting Started: GLM · OUTPUT Statement RANDOM Statement REPEATED Statement Syntax: GLM Procedure Details: GLM Procedure Examples: GLM Procedure . TEST Statement WEIGHT Statement tails: GLM Procedure . Statistical Assumptions for Using PROC GLM The GLMMOD Procedure The GLMPOWER Procedure

Explanation / Answer

Multiple effects can be specified in one LSMEANS statement, or multiple LSMEANS statements can be used, but they must all appear after the MODEL statement. For example:
proc glm;
class A B;
model Y=A B A*B;
lsmeans A B A*B;
run;
LS-means are displayed for each level of the A, B, and A*B effects.
You can specify the following options in the LSMEANS statement after a slash (/):
ADJUST=BON
ADJUST=DUNNETT
ADJUST=NELSON
ADJUST=SCHEFFE
ADJUST=SIDAK
ADJUST=SIMULATE <(simoptions)>
ADJUST=SMM | GT2
ADJUST=TUKEY
ADJUST=T

b) Use NOPRINT

c) use pdiff = all that gives differences of all pairs


lsmeans Treatment / pdiff=All;