BookmarkSubscribeRSS Feed
cynderisingryffindor
Calcite | Level 5

Background: 30 participants, 4 tests (1,2,3,4) at 7 frequencies (125,250,500,1000,2000,4000,8000 Hz) in 2 rooms (a , b). Model: mixed effects

model compares test 1 at frequency 8000 (frequency 7) to other tests. The basic question is to compare test 1 to test 4 at all frequencies.

Code:

proc mixed data=roomb empirical method=ML;

  class  User_ID Ears;

  model Y_= Test2 Test3 Test4 Freq1 Freq2 Freq3 Freq4 Freq5 Freq6

                 Test4*Freq1 Test4*Freq2 Test4*Freq3 Test4*Freq4 Test4*Freq5 Test4*Freq6/s outpm=predict;

  random intercept /subject = User_ID;

  random intercept /subject = Ears(User_ID);

run;

I want to run bonferonni's correction test, but I am unable to. Could someone please help me?

1 REPLY 1
Haris
Lapis Lazuli | Level 10

Here's an example for SAS documentation--seems like you need an ADJUST statement in the LSMEANS commanc:

proc mixed;

  class A;

  model y = A / ddfm=satterth;

  repeated / group=A;

  lsmeans A / adjust=smm adjdfe=row;

run;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 868 views
  • 0 likes
  • 2 in conversation