Hi all,
I'm looking for someone to write this model mathematically if you don't mind.
regards
proc GLIMMIX data=herd;
class testyear time ;
model mpd = testyear / oddsratio solution;
random herd(Time);
lsmeans testyear / e cl oddsratio plots ;
ods output lsmeans = MEANS;
run;
What do you mean by " write this model mathematically"?
Are you looking for some sort of raw code to duplicate the functionality?
Or an explanation of the calculations done? Read the friendly manual, i.e. the documentation for the procedure in the DETAILS section.
Something else.
something like this:
y = A + b + e
Y is a binary
a fixed effect
b is random nested within 12 months
e is residual
You can use a CODE statement to have the code piped to a file and you can use that to help you determine your final equation if you're unsure of the format.
code file='/folders/myfolders/glimmix_score_code.sas';
Changing the path to something relevant for you, the idea is above and then check the program created for the logic.
@Barkamih wrote:
Hi all,
I'm looking for someone to write this model mathematically if you don't mind.
regards
proc GLIMMIX data=herd; class testyear time ; model mpd = testyear / oddsratio solution; random herd(Time); lsmeans testyear / e cl oddsratio plots ; ods output lsmeans = MEANS; run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.