BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ValeriaRodz
Fluorite | Level 6

Hi everyone! I have a quick question. I'm using this code to check for if there is a correlation between edad*musc, edad*sexo, musc*sexo and edad*musc*sexo. My question is, in the random statement, is it correct to write toro(edad) like I'm doing? My only random would be toro, which is my independent variable, but edad, as well as musc and sexo are all dependent variables.  

 

 

proc glimmix data=cruza;
class edad musc sexo toro;
model tern_co = edad | musc| sexo;
random toro(edad);
lsmeans edad | musc | sexo / pdiff lines;
proc glimmix data=cruza;
class edad musc sexo toro;
model Tern_cr = edad | musc| sexo;
random Toro(Edad);
lsmeans edad | musc| sexo / pdiff lines;
run;

 

 

Thanks. 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

One concern is that you may be running low on degrees of freedom for error, and possibly eliminating the three-way interaction might help. Generally, I don't put three-way interactions into a model without having some subject matter reason for thinking it belongs. Other than that, it seems like the right model.

--
Paige Miller

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

Impossible to answer

 

We don't know what the variables edad musc sexo and toro represent.

 

We don't know the design of your study either, which would also inform us about what the proper model and random statements are.

--
Paige Miller
ValeriaRodz
Fluorite | Level 6
Hi! Sorry for not being specific. I'm studying the effect of castration
(sexo) and slaughter age (edad) in meat quality in two different muscles
(musc). We used 30 animals in total, 15 of them were castrated and 15
remained intact. So each animal is represented by the (toro) variable.
Reeza
Super User

That's a fairly complex model for only 30 observations...

PaigeMiller
Diamond | Level 26

One concern is that you may be running low on degrees of freedom for error, and possibly eliminating the three-way interaction might help. Generally, I don't put three-way interactions into a model without having some subject matter reason for thinking it belongs. Other than that, it seems like the right model.

--
Paige Miller

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 627 views
  • 2 likes
  • 3 in conversation